diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-13 17:25:36 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-13 17:25:36 +0100 |
commit | 35e7e1f46474da63d49ba1a632c9f0e0b45c8e86 (patch) | |
tree | d63f7d14fbd0b4259228305eca3b93eeec3040d1 /testlib/selenium | |
parent | eb84d5747aac0de781d64fb9cdbf2da13006d85e (diff) |
fix test harness issue with emscripten
Diffstat (limited to 'testlib/selenium')
-rw-r--r-- | testlib/selenium/runtime.js | 6 | ||||
-rw-r--r-- | testlib/selenium/testhost.html | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/testlib/selenium/runtime.js b/testlib/selenium/runtime.js index d12cb04be..06597b984 100644 --- a/testlib/selenium/runtime.js +++ b/testlib/selenium/runtime.js @@ -48,16 +48,16 @@ if (argv._.length != 1) { } var testScriptName = path.resolve(argv._[0]); -var projectRoot = path.resolve(__dirname, "../../"); +var projectRoot = path.resolve(__dirname, "../../") + "/"; if (!testScriptName.startsWith(projectRoot)) { console.log("test file must be inside wallet project root"); process.exit(1); } -var testScript = "./" + testScriptName.substring(projectRoot.length); +var testScript = testScriptName.substring(projectRoot.length); try { - var stats = fs.lstatSync(path.resolve(projectRoot, testScript)); + var stats = fs.lstatSync(path.resolve(projectRoot, "./" + testScript)); if (!stats.isFile()) { throw Error("test must be a file"); } diff --git a/testlib/selenium/testhost.html b/testlib/selenium/testhost.html index 62c1a4e82..2fb9cb533 100644 --- a/testlib/selenium/testhost.html +++ b/testlib/selenium/testhost.html @@ -11,7 +11,7 @@ "lib/emscripten/taler-emscripten-lib": { format: "global", exports: "Module", - } + }, }, }); </script> |