From c291c12cb1331e27c26a567eee8189d1837f969c Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Sun, 1 Mar 2015 19:48:06 -0800 Subject: [PATCH] Disable deprecated global QUnit method aliases to prevent backsliding on QUnit v2 readiness --- js/tests/index.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/js/tests/index.html b/js/tests/index.html index 6f94e415d6..66ab2635af 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; + } + })();