diff --git a/js/tests/index.html b/js/tests/index.html index 6f94e415d6d825e908bd008e613ca26a686d9190..66ab2635afcf8519a7bb77cc125c7afcbdd67754 100644 --- a/js/tests/index.html +++ b/js/tests/index.html @@ -57,6 +57,34 @@ $('#qunit-fixture').css({ top: '', left: '' }) }) } + + // Disable deprecated global QUnit method aliases in preparation for QUnit v2 + (function () { + var methodNames = [ + 'async', + 'asyncTest', + 'deepEqual', + 'equal', + 'expect', + 'module', + 'notDeepEqual', + 'notEqual', + 'notPropEqual', + 'notStrictEqual', + 'ok', + 'propEqual', + 'push', + 'start', + 'stop', + 'strictEqual', + 'test', + 'throws' + ]; + for (var i = 0; i < methodNames.length; i++) { + var methodName = methodNames[i]; + window[methodName] = undefined; + } + })(); </script> <!-- Plugin sources -->