Commit c291c12c authored by Chris Rebert's avatar Chris Rebert
Browse files

Disable deprecated global QUnit method aliases to prevent backsliding on QUnit v2 readiness

parent c8087223
5 merge requests!28721Hot test,!16605Test pull please ignore,!22103test,!15970Disable deprecated QUnit global methods,!25326Adjust examples
Showing with 28 additions and 0 deletions
+28 -0
...@@ -57,6 +57,34 @@ ...@@ -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 -->
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment