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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 path.dirname(require.resolve("nodeunit")), 68 path.dirname(require.resolve("nodeunit")),
69 "examples", "browser", "nodeunit.js" 69 "examples", "browser", "nodeunit.js"
70 ); 70 );
71 browserFiles.unshift(nodeunitPath); 71 browserFiles.unshift(nodeunitPath);
72 72
73 let urls = browserFiles.map(file => 73 let urls = browserFiles.map(file =>
74 { 74 {
75 return url.format({ 75 return url.format({
76 protocol: "file", 76 protocol: "file",
77 slashes: "true", 77 slashes: "true",
78 pathname: path.resolve(process.cwd, file).split(path.sep).join("/") 78 pathname: path.resolve(process.cwd(), file).split(path.sep).join("/")
79 }); 79 });
80 }); 80 });
81 let args = [path.join(__dirname, "browsertests.js")].concat(urls); 81 let args = [path.join(__dirname, "browsertests.js")].concat(urls);
82 childProcess.execFileSync(phantomjs.path, args, {stdio: "inherit"}); 82 childProcess.execFileSync(phantomjs.path, args, {stdio: "inherit"});
83 } 83 }
84 if (unitFiles.length) 84 if (unitFiles.length)
85 nodeunit.reporters.default.run(unitFiles); 85 nodeunit.reporters.default.run(unitFiles);
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld