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: 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/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));
};

Powered by Google App Engine
This is Rietveld