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

Unified Diff: test/runners/chromium_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/browser/_bootstrap.js ('k') | test/runners/chromium_remote_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
===================================================================
--- a/test/runners/chromium_process.js
+++ b/test/runners/chromium_process.js
@@ -46,18 +46,11 @@
.build();
return executeScript(driver, "Chromium (WebDriver)",
script, scriptName, scriptArgs);
}
module.exports = function(script, scriptName, ...scriptArgs)
{
- return ensureChromium(CHROMIUM_REVISION).then(chromiumPath =>
- {
- return runScript(chromiumPath, script, scriptName, scriptArgs)
- .then(result => result)
- .catch(error =>
- {
- throw error;
- });
- });
+ return ensureChromium(CHROMIUM_REVISION)
+ .then(chromiumPath => runScript(chromiumPath, script, scriptName, scriptArgs));
};
« no previous file with comments | « test/browser/_bootstrap.js ('k') | test/runners/chromium_remote_process.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld