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

Unified Diff: test/runners/firefox_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_remote_process.js ('k') | test/runners/webdriver.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runners/firefox_process.js
===================================================================
--- a/test/runners/firefox_process.js
+++ b/test/runners/firefox_process.js
@@ -41,18 +41,12 @@
.setFirefoxOptions(options)
.build();
return executeScript(driver, "Firefox", script, scriptName, scriptArgs);
}
module.exports = function(script, scriptName, ...scriptArgs)
{
- return ensureFirefox(FIREFOX_VERSION).then(firefoxPath =>
- {
- return runScript(firefoxPath, script, scriptName, scriptArgs)
- .then(result => result)
- .catch(error =>
- {
- throw error;
- });
- });
+ return ensureFirefox(FIREFOX_VERSION)
+ .then(firefoxPath =>
+ runScript(firefoxPath, script, scriptName, scriptArgs));
};
« no previous file with comments | « test/runners/chromium_remote_process.js ('k') | test/runners/webdriver.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld