mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 05:38:00 -05:00
remove globals in tests for compability with ?noglobals, to be enabled by default
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
@@ -626,7 +626,7 @@ var testHtml = function(valueObj) {
|
||||
}
|
||||
ok( pass, "Set HTML" );
|
||||
|
||||
window.debug = false;
|
||||
delete window.debug;
|
||||
|
||||
reset();
|
||||
// using contents will get comments regular, text, and comment nodes
|
||||
|
||||
Reference in New Issue
Block a user