Skip to content

Instantly share code, notes, and snippets.

@xenophy
xenophy / test.js
Created May 3, 2011 04:47
Jasmin Driver for hantomjs support Jasmine 1.0.2
if (phantom.state.length === 0) {
if (phantom.args.length !== 1) {
console.log('Usage: run-jasmine.js URL');
phantom.exit();
} else {
phantom.state = 'run-jasmine';
phantom.open(phantom.args[0]);
}
} else {
window.setInterval(function () {