summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/bin/HttpServer.js8
-rw-r--r--js/test/Common/ControllerI.js10
-rw-r--r--js/test/Ice/objects/Client.js1
-rw-r--r--js/test/Ice/objects/Server.js1
4 files changed, 18 insertions, 2 deletions
diff --git a/js/bin/HttpServer.js b/js/bin/HttpServer.js
index b08bb4bca33..e432f7a09e7 100644
--- a/js/bin/HttpServer.js
+++ b/js/bin/HttpServer.js
@@ -232,6 +232,14 @@ function Init()
res.end(controller.render(TestData))
console.log("HTTP/200 (Ok) " + req.method + " " + req.url.pathname);
}
+ else if(req.url.pathname === '/start')
+ {
+ res.writeHead(302,
+ {
+ "Location": "/test/Ice/acm/controller.html&port=15002"
+ });
+ res.end();
+ }
else
{
var iceLib = libraries.indexOf(req.url.pathname) !== -1;
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 =>
diff --git a/js/test/Ice/objects/Client.js b/js/test/Ice/objects/Client.js
index 1ecf83e6e02..6c463e380cd 100644
--- a/js/test/Ice/objects/Client.js
+++ b/js/test/Ice/objects/Client.js
@@ -526,6 +526,7 @@
var run = function(out, id)
{
+ id.properties.setProperty("Ice.Warn.Connections", "0");
var c = Ice.initialize(id);
return Ice.Promise.try(() => allTests(out, c)).finally(() => c.destroy());
};
diff --git a/js/test/Ice/objects/Server.js b/js/test/Ice/objects/Server.js
index 526bdd4a66e..8928e715f67 100644
--- a/js/test/Ice/objects/Server.js
+++ b/js/test/Ice/objects/Server.js
@@ -24,6 +24,7 @@
var run = function(out, id, ready)
{
id.properties.setProperty("Ice.Warn.Dispatch", "0");
+ id.properties.setProperty("Ice.Warn.Connections", "0");
var communicator = Ice.initialize(id);
var adapter;
var echo = Test.EchoPrx.uncheckedCast(communicator.stringToProxy("__echo:default -p 12010"));