Prevents firefox from hanging on the test (could it be that firefox passes the delay to start?).

This commit is contained in:
jaubourg
2012-03-07 17:55:07 +01:00
parent d30859eb6b
commit c5712a24bd

View File

@@ -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 );
});
});