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

Unified Diff: test/runners/webdriver.js

Issue 29999578: Issue 7262 - Allow more than one test (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created Feb. 5, 2019, 10:47 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runners/webdriver.js
===================================================================
--- a/test/runners/webdriver.js
+++ b/test/runners/webdriver.js
@@ -24,17 +24,17 @@
return Promise.resolve()
.then(() => f(...arguments))
.then(() => callback());`;
return driver.executeScript(`let oldLog = console.log;
console.log = msg => {
window._consoleLogs.log.push(msg);
oldLog.call(this, msg);
};`)
- .then(() => driver.executeAsyncScript(realScript, scriptArgs))
+ .then(() => driver.executeAsyncScript(realScript, ...scriptArgs))
.then(() => driver.executeScript("return window._consoleLogs;"))
.then(result =>
{
console.log(`\nBrowser tests in ${name}\n`);
for (let item of result.log)
console.log(item);
return driver.quit().then(() =>
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld