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

Unified Diff: test/runners/chromium_process.js

Issue 29720661: Issue 6391 - Allow running the browser unit tests with Firefox (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Move the _process.js files. Remove the need for index.html Created March 14, 2018, 1:42 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 | « package.json ('k') | test/runners/firefox_process.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runners/chromium_process.js
===================================================================
rename from chromium_process.js
rename to test/runners/chromium_process.js
--- a/chromium_process.js
+++ b/test/runners/chromium_process.js
@@ -91,17 +91,17 @@
{
let err = new Error(`Cannot run browser tests, ${platform} is unsupported`);
return Promise.reject(err);
}
return Promise.resolve().then(() =>
{
- let snapshotsDir = path.join(__dirname, "chromium-snapshots");
+ let snapshotsDir = path.join(__dirname, "..", "..", "chromium-snapshots");
let chromiumDir = path.join(snapshotsDir,
`chromium-${platform}-${CHROMIUM_REVISION}`);
if (fs.existsSync(chromiumDir))
return chromiumDir;
if (!fs.existsSync(path.dirname(chromiumDir)))
fs.mkdirSync(path.dirname(chromiumDir));
@@ -251,16 +251,18 @@
function runScript(script, scriptName, scriptArgs)
{
return connectRemoteInterface().then(async client =>
{
try
{
let {Runtime, Log, Console} = client;
+ console.log("\nTests in Chromium\n");
+
await Log.enable();
Log.entryAdded(({entry}) =>
{
reportMessage(entry.text, entry.level);
});
await Console.enable();
Console.messageAdded(({message}) =>
« no previous file with comments | « package.json ('k') | test/runners/firefox_process.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld