Commit f55fb36e authored by Jörn Zaefferer's avatar Jörn Zaefferer

remove globals in tests for compability with ?noglobals, to be enabled by default

parent 0b36b262
...@@ -763,6 +763,9 @@ test("jQuery.getJSON - Using Native JSON", function() { ...@@ -763,6 +763,9 @@ test("jQuery.getJSON - Using Native JSON", function() {
stop(); stop();
jQuery.getJSON(url("data/json.php"), function(json) { jQuery.getJSON(url("data/json.php"), function(json) {
if (!old)
delete window.JSON
else
window.JSON = old; window.JSON = old;
equals( json, true, "Verifying return value" ); equals( json, true, "Verifying return value" );
start(); start();
......
...@@ -626,7 +626,7 @@ var testHtml = function(valueObj) { ...@@ -626,7 +626,7 @@ var testHtml = function(valueObj) {
} }
ok( pass, "Set HTML" ); ok( pass, "Set HTML" );
window.debug = false; delete window.debug;
reset(); reset();
// using contents will get comments regular, text, and comment nodes // using contents will get comments regular, text, and comment nodes
......
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