diff options
| author | Chris Rebert <[email protected]> | 2015-03-01 19:48:06 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-03-01 19:50:11 -0800 |
| commit | c291c12cb1331e27c26a567eee8189d1837f969c (patch) | |
| tree | 33fba867b2c3e96048c4e9cdf5301dbb899f1b41 | |
| parent | c80872235faaeaf1e8029665fb7674c2e1ba1d8c (diff) | |
| download | bootstrap-c291c12cb1331e27c26a567eee8189d1837f969c.tar.xz bootstrap-c291c12cb1331e27c26a567eee8189d1837f969c.zip | |
Disable deprecated global QUnit method aliases to prevent backsliding on QUnit v2 readiness
| -rw-r--r-- | js/tests/index.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/js/tests/index.html b/js/tests/index.html index 6f94e415d..66ab2635a 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 --> |
