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

Unified Diff: test/runners/chromium_remote_process.js

Issue 29874649: Issue 6822 - Report browser test errors (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: throw instead of Promise.reject() Created Sept. 21, 2018, 3:39 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 | « test/runners/chromium_process.js ('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_remote_process.js
===================================================================
--- a/test/runners/chromium_remote_process.js
+++ b/test/runners/chromium_remote_process.js
@@ -174,16 +174,25 @@
if (callResult.exceptionDetails)
throwException(callResult.exceptionDetails, scriptName);
let promiseResult = await Runtime.awaitPromise({
promiseObjectId: callResult.result.objectId
});
if (promiseResult.exceptionDetails)
throwException(promiseResult.exceptionDetails, scriptName);
+
+ return Runtime.evaluate({
+ expression: "window._consoleLogs",
+ returnByValue: true
+ }).then(result =>
+ {
+ if (result.result.value.failures != 0)
+ throw "Chromium (Remote Interface)";
+ });
}
finally
{
client.close();
}
});
}
« no previous file with comments | « test/runners/chromium_process.js ('k') | test/runners/firefox_process.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld