Fix #14492: More correct jQuery.parseJSON. Close gh-1419.

This commit is contained in:
Richard Gibson
2013-11-04 23:36:15 -05:00
parent ef7f8f1ead
commit 60a6178131
3 changed files with 103 additions and 30 deletions

3
test/jquery.js vendored
View File

@@ -11,12 +11,13 @@
QUnit.config.urlConfig.push({
id: "basic",
label: "Bypass optimizations",
tooltip: "Force use of the most basic code by disabling native querySelectorAll; contains; compareDocumentPosition"
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)