Skip to content

Commit bea0431

Browse files
committed
chore: Use absolute path and file:// for testing with the new phantomjs version
1 parent 5ee505c commit bea0431

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/vendor/runner.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@
1717
(function() {
1818
'use strict';
1919

20-
var args = require('system').args;
20+
var args = require('system').args,
21+
fs = require('fs');
2122

2223
// arg[0]: scriptName, args[1...]: arguments
2324
if (args.length !== 2) {
2425
console.error('Usage:\n phantomjs runner.js [url-of-your-qunit-testsuite]');
2526
phantom.exit(1);
2627
}
2728

28-
var url = args[1],
29+
var url = 'file://' + fs.absolute(args[1]),
2930
page = require('webpage').create();
3031

3132
// Route `console.log()` calls from within the Page context to the main Phantom context (i.e. current `this`)

0 commit comments

Comments
 (0)