Commit b7f62abb authored by Richard Gibson's avatar Richard Gibson

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

parent 71b2ac52
...@@ -7,19 +7,6 @@ ...@@ -7,19 +7,6 @@
QUnit = window.QUnit || parent.QUnit, QUnit = window.QUnit || parent.QUnit,
require = window.require || parent.require; 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) // iFrames won't load AMD (the iframe tests synchronously expect jQuery to be there)
QUnit.config.urlConfig.push({ QUnit.config.urlConfig.push({
id: "amd", id: "amd",
......
Markdown is supported
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