Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test_runner.js

Issue 29377951: Issue 4956 - Fix test_runner.js (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created March 6, 2017, 9:09 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test_runner.js
===================================================================
--- a/test_runner.js
+++ b/test_runner.js
@@ -70,16 +70,16 @@ if (browserFiles.length)
);
browserFiles.unshift(nodeunitPath);
let urls = browserFiles.map(file =>
{
return url.format({
protocol: "file",
slashes: "true",
- pathname: path.resolve(process.cwd, file).split(path.sep).join("/")
+ pathname: path.resolve(process.cwd(), file).split(path.sep).join("/")
});
});
let args = [path.join(__dirname, "browsertests.js")].concat(urls);
childProcess.execFileSync(phantomjs.path, args, {stdio: "inherit"});
}
if (unitFiles.length)
nodeunit.reporters.default.run(unitFiles);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld