Permalink
Browse files

Prevents firefox from hanging on the test (could it be that firefox p…

…asses the delay to start?).
  • Loading branch information...
1 parent d30859e commit c5712a24bd6372761e4a8934bac5ac7d98a42191 @jaubourg jaubourg committed Mar 7, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/unit/ajax.js
View
@@ -1287,7 +1287,9 @@ test("jQuery.getScript(String, Function) - with callback", function() {
jQuery.getScript(url("data/test.js"), function( data, _, jqXHR ) {
equal( foobar, "bar", "Check if script was evaluated" );
strictEqual( data, jqXHR.responseText, "Same-domain script requests returns the source of the script (#8082)" );
- setTimeout(start, 1000);
+ setTimeout(function() {
+ start();
+ }, 1000 );
});
});

0 comments on commit c5712a2

Please sign in to comment.