From c5712a24bd6372761e4a8934bac5ac7d98a42191 Mon Sep 17 00:00:00 2001 From: jaubourg Date: Wed, 7 Mar 2012 17:55:07 +0100 Subject: Prevents firefox from hanging on the test (could it be that firefox passes the delay to start?). --- test/unit/ajax.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); }); }); -- cgit v1.2.3