| OLD | NEW |
| 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 Loading... |
| 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); |
| OLD | NEW |