We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ee505c commit bea0431Copy full SHA for bea0431
test/vendor/runner.js
@@ -17,15 +17,16 @@
17
(function() {
18
'use strict';
19
20
- var args = require('system').args;
+ var args = require('system').args,
21
+ fs = require('fs');
22
23
// arg[0]: scriptName, args[1...]: arguments
24
if (args.length !== 2) {
25
console.error('Usage:\n phantomjs runner.js [url-of-your-qunit-testsuite]');
26
phantom.exit(1);
27
}
28
- var url = args[1],
29
+ var url = 'file://' + fs.absolute(args[1]),
30
page = require('webpage').create();
31
32
// Route `console.log()` calls from within the Page context to the main Phantom context (i.e. current `this`)
0 commit comments