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(() => |
{ |