mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
revert to 1.4.1 qunit runner.
This commit is contained in:
parent
02ef26ec6b
commit
0e1b9f6f18
@ -1,5 +1,3 @@
|
|||||||
var system = require('system');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wait until the test condition is true or a timeout occurs. Useful for waiting
|
* Wait until the test condition is true or a timeout occurs. Useful for waiting
|
||||||
* on a server response or for a ui change (fadeIn, etc.) to occur.
|
* on a server response or for a ui change (fadeIn, etc.) to occur.
|
||||||
@ -36,7 +34,7 @@ function waitFor(testFx, onReady, timeOutMillis) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
if (system.args.length !== 2) {
|
if (phantom.args.length === 0 || phantom.args.length > 2) {
|
||||||
console.log('Usage: run-qunit.js URL');
|
console.log('Usage: run-qunit.js URL');
|
||||||
phantom.exit(1);
|
phantom.exit(1);
|
||||||
}
|
}
|
||||||
@ -48,7 +46,7 @@ page.onConsoleMessage = function(msg) {
|
|||||||
console.log(msg);
|
console.log(msg);
|
||||||
};
|
};
|
||||||
|
|
||||||
page.open(system.args[1], function(status){
|
page.open(phantom.args[0], function(status){
|
||||||
if (status !== "success") {
|
if (status !== "success") {
|
||||||
console.log("Unable to access network");
|
console.log("Unable to access network");
|
||||||
phantom.exit(1);
|
phantom.exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user