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}) => |