X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fajax.js;h=f7c67b7bee2af99e0ec7d95f248c8835835e82d1;hb=daffb954e397bd5d9f8e9aaedab6c0baa9609e1e;hp=564f692670bea15b6c1642129e11247c0021c110;hpb=cf8c1249d1efbdaf4f4dd8d1a36bb803335f4ee8;p=jquery.git diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 564f692..f7c67b7 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -763,7 +763,10 @@ test("jQuery.getJSON - Using Native JSON", function() { stop(); jQuery.getJSON(url("data/json.php"), function(json) { - window.JSON = old; + if (!old) + delete window.JSON + else + window.JSON = old; equals( json, true, "Verifying return value" ); start(); });