summaryrefslogtreecommitdiff
path: root/js/test/Common/ControllerI.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/test/Common/ControllerI.js')
-rw-r--r--js/test/Common/ControllerI.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/js/test/Common/ControllerI.js b/js/test/Common/ControllerI.js
index 9c32b492b89..49aa36ddcbb 100644
--- a/js/test/Common/ControllerI.js
+++ b/js/test/Common/ControllerI.js
@@ -97,7 +97,7 @@ class ProcessI extends Test.Common.Process
}
}
-class ProcessControllerI extends Test.Common.ProcessController
+class ProcessControllerI extends Test.Common.BrowserProcessController
{
constructor(clientOutput, serverOutput, useWorker, scripts)
{
@@ -193,6 +193,12 @@ class ProcessControllerI extends Test.Common.ProcessController
{
return "127.0.0.1";
}
+
+ redirect(url, current)
+ {
+ current.con.close(Ice.ConnectionClose.Gracefully);
+ window.location.href = url;
+ }
}
function runController(clientOutput, serverOutput, scripts)
@@ -272,7 +278,7 @@ function runController(clientOutput, serverOutput, scripts)
};
let comm = Ice.initialize(initData);
- let str = "Util/ProcessControllerRegistry:" + protocol + " -h 127.0.0.1 -p " + port;
+ let str = "Util/ProcessControllerRegistry:" + protocol + " -h " + document.location.hostname + " -p " + port;
let registry = Test.Common.ProcessControllerRegistryPrx.uncheckedCast(comm.stringToProxy(str));
comm.createObjectAdapter("").then(
adapter =>