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

Delta Between Two Patch Sets: test_runner.js

Issue 29375915: Issue 4878 - Start using ESLint for adblockpluscore (Closed)
Left Patch Set: Fixed valid-jsdoc failures and addressed nits Created March 10, 2017, 6:54 a.m.
Right Patch Set: Removed unused imports Created March 15, 2017, 3:11 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « test/synchronizer.js ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 path.dirname(require.resolve("nodeunit")), 70 path.dirname(require.resolve("nodeunit")),
71 "examples", "browser", "nodeunit.js" 71 "examples", "browser", "nodeunit.js"
72 ); 72 );
73 browserFiles.unshift(nodeunitPath); 73 browserFiles.unshift(nodeunitPath);
74 74
75 let urls = browserFiles.map(file => 75 let urls = browserFiles.map(file =>
76 { 76 {
77 return url.format({ 77 return url.format({
78 protocol: "file", 78 protocol: "file",
79 slashes: "true", 79 slashes: "true",
80 pathname: path.resolve(process.cwd, file).split(path.sep).join("/") 80 pathname: path.resolve(process.cwd(), file).split(path.sep).join("/")
81 }); 81 });
82 }); 82 });
83 let args = [path.join(__dirname, "browsertests.js")].concat(urls); 83 let args = [path.join(__dirname, "browsertests.js")].concat(urls);
84 childProcess.execFileSync(phantomjs.path, args, {stdio: "inherit"}); 84 childProcess.execFileSync(phantomjs.path, args, {stdio: "inherit"});
85 } 85 }
86 if (unitFiles.length) 86 if (unitFiles.length)
87 nodeunit.reporters.default.run(unitFiles); 87 nodeunit.reporters.default.run(unitFiles);
LEFTRIGHT

Powered by Google App Engine
This is Rietveld