Skip to content
Permalink
Browse files

Ref 71b2ac5: Disallow 2.x bypass of environmental helper methods

  • Loading branch information...
gibson042 committed Nov 12, 2013
1 parent 71b2ac5 commit b7f62abb87dd200129fb2a781d008fc19d26115a
Showing with 0 additions and 13 deletions.
  1. +0 −13 test/jquery.js
@@ -7,19 +7,6 @@
QUnit = window.QUnit || parent.QUnit,
require = window.require || parent.require;

// Config parameter to force basic code paths
QUnit.config.urlConfig.push({
id: "basic",
label: "Bypass optimizations",
tooltip: "Force use of the most basic code by disabling native querySelectorAll; contains; compareDocumentPosition; JSON.parse"
});
if ( QUnit.urlParams.basic ) {
document.querySelectorAll = null;
document.documentElement.contains = null;
document.documentElement.compareDocumentPosition = null;
window.JSON = null;
}

// iFrames won't load AMD (the iframe tests synchronously expect jQuery to be there)
QUnit.config.urlConfig.push({
id: "amd",

0 comments on commit b7f62ab

Please sign in to comment.
You can’t perform that action at this time.