diff --git a/js/test/Common/ControllerI.js b/js/test/Common/ControllerI.js index 7c0ecd35cd4..cca9656209b 100644 --- a/js/test/Common/ControllerI.js +++ b/js/test/Common/ControllerI.js @@ -52,12 +52,11 @@ class ProcessI extends Test.Common.Process { } class ProcessControllerI extends Test.Common.BrowserProcessController { - constructor(clientOutput, serverOutput, useWorker, scripts) { + constructor(clientOutput, serverOutput, useWorker) { super(); this._clientOutput = clientOutput; this._serverOutput = serverOutput; this._useWorker = useWorker; - this._scripts = scripts; } async start(testSuite, exe, args, current) { @@ -114,12 +113,12 @@ class ProcessControllerI extends Test.Common.BrowserProcessController { } redirect(url, current) { - current.con.close(Ice.ConnectionClose.Gracefully); + current.con.close(); window.location.href = url; } } -export async function runController(clientOutput, serverOutput, scripts) { +export async function runController(clientOutput, serverOutput) { class Output { constructor(output) { this.output = output; @@ -181,7 +180,7 @@ export async function runController(clientOutput, serverOutput, scripts) { const registry = Test.Common.ProcessControllerRegistryPrx.uncheckedCast(comm.stringToProxy(str)); const adapter = await comm.createObjectAdapter(""); const ident = new Ice.Identity("ProcessController", "Browser"); - const processController = adapter.add(new ProcessControllerI(out, serverOut, worker, scripts), ident); + const processController = adapter.add(new ProcessControllerI(out, serverOut, worker), ident); registerProcessController(adapter, registry, processController); } catch (ex) { out.writeLine("unexpected exception while creating controller:\n" + ex.toString());