summaryrefslogtreecommitdiff
path: root/js/bin/HttpServer.js
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-09-14 10:56:49 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-09-14 10:56:49 +0200
commit228808bd70a032ee9f20ad5bdd00f2b79578a84b (patch)
tree58f456e2c2b5625a26cac2d698cc664166ff1a32 /js/bin/HttpServer.js
parentAdditional fixes to allow building mappings against C++ binary distribution (diff)
downloadice-228808bd70a032ee9f20ad5bdd00f2b79578a84b.tar.bz2
ice-228808bd70a032ee9f20ad5bdd00f2b79578a84b.tar.xz
ice-228808bd70a032ee9f20ad5bdd00f2b79578a84b.zip
Allow running JS tests with browser started manually (eventually
from remote host). Use --browser=Manual with ./allTests.py and connect to the given URL with the browser. If browser is running on a different host, you'll need to start ./allTests.py --host=<host> with host set to the IP address of the machine running ./allTests.py Fixes ICE-8366
Diffstat (limited to 'js/bin/HttpServer.js')
-rw-r--r--js/bin/HttpServer.js8
1 files changed, 8 insertions, 0 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;