mirror of
https://github.com/twbs/bootstrap.git
synced 2025-04-06 23:57:36 +02:00
Disable deprecated global QUnit method aliases to prevent backsliding on QUnit v2 readiness
This commit is contained in:
parent
c80872235f
commit
c291c12cb1
@ -57,6 +57,34 @@
|
|||||||
$('#qunit-fixture').css({ top: '', left: '' })
|
$('#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>
|
</script>
|
||||||
|
|
||||||
<!-- Plugin sources -->
|
<!-- Plugin sources -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user