| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-present eyeo GmbH | 3 * Copyright (C) 2006-present eyeo GmbH |
| 4 * | 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
| 8 * | 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 } | 249 } |
| 250 | 250 |
| 251 function runScript(script, scriptName, scriptArgs) | 251 function runScript(script, scriptName, scriptArgs) |
| 252 { | 252 { |
| 253 return connectRemoteInterface().then(async client => | 253 return connectRemoteInterface().then(async client => |
| 254 { | 254 { |
| 255 try | 255 try |
| 256 { | 256 { |
| 257 let {Runtime, Log, Console} = client; | 257 let {Runtime, Log, Console} = client; |
| 258 | 258 |
| 259 console.log("\nTest in Chromium\n"); |
| 260 |
| 259 await Log.enable(); | 261 await Log.enable(); |
| 260 Log.entryAdded(({entry}) => | 262 Log.entryAdded(({entry}) => |
| 261 { | 263 { |
| 262 reportMessage(entry.text, entry.level); | 264 reportMessage(entry.text, entry.level); |
| 263 }); | 265 }); |
| 264 | 266 |
| 265 await Console.enable(); | 267 await Console.enable(); |
| 266 Console.messageAdded(({message}) => | 268 Console.messageAdded(({message}) => |
| 267 { | 269 { |
| 268 reportMessage(message.text, message.level); | 270 reportMessage(message.text, message.level); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 { | 318 { |
| 317 child.kill(); | 319 child.kill(); |
| 318 return result; | 320 return result; |
| 319 }).catch(error => | 321 }).catch(error => |
| 320 { | 322 { |
| 321 child.kill(); | 323 child.kill(); |
| 322 throw error; | 324 throw error; |
| 323 }); | 325 }); |
| 324 }); | 326 }); |
| 325 }; | 327 }; |
| OLD | NEW |