diff options
-rwxr-xr-x | tests/embind/embind.test.js | 1 | ||||
-rwxr-xr-x | tests/embind/imvu_test_adapter.js | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js index 46b7646d..539b837f 100755 --- a/tests/embind/embind.test.js +++ b/tests/embind/embind.test.js @@ -1505,6 +1505,7 @@ module({ }); }); +/* global run_all_tests */ // If running as part of the emscripten test runner suite, and not as part of the IMVU suite, // we launch the test execution from here. IMVU suite uses its own dedicated mechanism instead of this. if (typeof run_all_tests !== "undefined") diff --git a/tests/embind/imvu_test_adapter.js b/tests/embind/imvu_test_adapter.js index 03405d08..421e86c8 100755 --- a/tests/embind/imvu_test_adapter.js +++ b/tests/embind/imvu_test_adapter.js @@ -8,6 +8,8 @@ To run the Embind tests using the Emscripten test runner, invoke 'python tests/runner.py other.test_embind' in the Emscripten root directory.
*/
+/* global Module, console, global, process */
+
//=== testing glue
function module(ignore, func) {
@@ -383,7 +385,7 @@ function module(ignore, func) { ////////////////////////////////////////////////////////////////////////////////
// EXCEPTIONS
- assert['throws'] = function(exception, fn) {
+ assert.throws = function(exception, fn) {
try {
fn();
} catch (e) {
@@ -537,7 +539,7 @@ function module(ignore, func) { fail(new AssertionError(decipherDomElement(el) + ' expected NOT to be empty'));
}
}
- }
+ };
// };
function decipherDomElement(selectorOrJQueryObject) {
@@ -603,7 +605,7 @@ function module(ignore, func) { // IMVU runner uses a separate runner & reporting mechanism.
function run_all_tests() {
function report_to_stdout(msg) {
- if (msg.type == "test-complete")
+ if (msg.type === "test-complete")
console.log(msg.name + ": " + msg.verdict);
}
run_all(report_to_stdout);
|