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
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