Skip to content

Commit c5712a2

Browse files
committed
Prevents firefox from hanging on the test (could it be that firefox passes the delay to start?).
1 parent d30859e commit c5712a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/unit/ajax.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,9 @@ test("jQuery.getScript(String, Function) - with callback", function() {
12871287
jQuery.getScript(url("data/test.js"), function( data, _, jqXHR ) {
12881288
equal( foobar, "bar", "Check if script was evaluated" );
12891289
strictEqual( data, jqXHR.responseText, "Same-domain script requests returns the source of the script (#8082)" );
1290-
setTimeout(start, 1000);
1290+
setTimeout(function() {
1291+
start();
1292+
}, 1000 );
12911293
});
12921294
});
12931295

0 commit comments

Comments
 (0)