diff options
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r-- | test/unit/ajax.js | 4 |
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 ); }); }); |