aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.js
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2012-03-07 17:55:07 +0100
committerjaubourg <j@ubourg.net>2012-03-07 17:55:07 +0100
commitc5712a24bd6372761e4a8934bac5ac7d98a42191 (patch)
tree26670355f2e4f049e02268a57f092c7f855f1ead /test/unit/ajax.js
parentd30859eb6bd5af9aafa9db003e17835ff594d019 (diff)
downloadjquery-c5712a24bd6372761e4a8934bac5ac7d98a42191.tar.gz
jquery-c5712a24bd6372761e4a8934bac5ac7d98a42191.zip
Prevents firefox from hanging on the test (could it be that firefox passes the delay to start?).
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r--test/unit/ajax.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index 163ba4f05..de680cb7d 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -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 );
});
});