Skip to content

Commit

Permalink
remove globals in tests for compability with ?noglobals, to be enable…
Browse files Browse the repository at this point in the history
…d by default
  • Loading branch information
jzaefferer committed Sep 15, 2009
1 parent 0b36b26 commit f55fb36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/unit/ajax.js
Expand Up @@ -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();
});
Expand Down
2 changes: 1 addition & 1 deletion test/unit/manipulation.js
Expand Up @@ -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
Expand Down

0 comments on commit f55fb36

Please sign in to comment.