From 228808bd70a032ee9f20ad5bdd00f2b79578a84b Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Thu, 14 Sep 2017 10:56:49 +0200 Subject: 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= with host set to the IP address of the machine running ./allTests.py Fixes ICE-8366 --- js/bin/HttpServer.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'js/bin/HttpServer.js') 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; -- cgit v1.2.3