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: Fix error reporting Created Sept. 20, 2018, 12:18 a.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
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));
};

Powered by Google App Engine
This is Rietveld