aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Jylanki <jjylanki@imvu.com>2013-04-02 12:48:45 +0300
committerJukka Jylänki <jujjyl@gmail.com>2013-04-12 14:27:14 +0300
commit783c443cc84ca990e181b07f2ba7f310368d9b75 (patch)
tree1053b9576a118bbbbefaca15bf5ac00378c8b02d
parent034ebb08d36e282d0cd48d31c86ce995fa432b7b (diff)
Clean up issues found with jshint.
-rwxr-xr-xtests/embind/embind.test.js1
-rwxr-xr-xtests/embind/imvu_test_adapter.js8
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);