aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-03-02 02:39:29 -0800
committerChris Rebert <[email protected]>2015-03-02 02:39:29 -0800
commit46f5a8f478afb2f2089f1fc886d72ecf4d55955c (patch)
tree98b580764a38684b1d7e04e1c066cf87ff3166c7 /js
parentf8e34ff48bf5107268d86bf050e1a1ed8299b399 (diff)
parentc291c12cb1331e27c26a567eee8189d1837f969c (diff)
downloadbootstrap-46f5a8f478afb2f2089f1fc886d72ecf4d55955c.tar.xz
bootstrap-46f5a8f478afb2f2089f1fc886d72ecf4d55955c.zip
Merge pull request #15970 from twbs/the-future-is-now-qunit
Disable deprecated QUnit global methods
Diffstat (limited to 'js')
-rw-r--r--js/tests/index.html28
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 -->