diff options
Diffstat (limited to 'js/bin/HttpServer.js')
-rw-r--r-- | js/bin/HttpServer.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/bin/HttpServer.js b/js/bin/HttpServer.js index ad8a4bc0e1b..844d07aa2b1 100644 --- a/js/bin/HttpServer.js +++ b/js/bin/HttpServer.js @@ -202,7 +202,7 @@ function Init() var testSuite = TestSuites[m]; if(testSuite) { - scripts = scripts.concat(TestSuites[m].files.map(function(f) { + TestData.scripts = scripts.concat(TestSuites[m].files.map(function(f) { if(f.indexOf("/") === -1) { return "/test/" + matchController[1] + "/" + f; @@ -219,10 +219,10 @@ function Init() } else { - scripts = scripts.concat(fs.readdirSync(testpath).filter(function(f) { return path.extname(f) === ".js"; })) + TestData.scripts = scripts.concat(fs.readdirSync(testpath).filter(function(f) { return path.extname(f) === ".js"; })) } res.writeHead(200, {"Content-Type": "text/html"}); - res.end(controller.render({ "scripts" : scripts })) + res.end(controller.render(TestData)) console.log("HTTP/200 (Ok) " + req.method + " " + req.url.pathname); } else |