diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-06-15 23:58:29 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-06-15 23:58:29 +0200 |
commit | c9ff92a00876b7455a641bb6e5e11d19e4dc3688 (patch) | |
tree | 997711c178fa0bc81d85acc4310d81615ca2bd9d /build | |
parent | b65747317822149ea8c9e45f4e6f2189efed7258 (diff) | |
download | jquery-ui-c9ff92a00876b7455a641bb6e5e11d19e4dc3688.tar.gz jquery-ui-c9ff92a00876b7455a641bb6e5e11d19e4dc3688.zip |
Grunt: Fix scoping issue
Diffstat (limited to 'build')
-rw-r--r-- | build/tasks/testswarm.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build/tasks/testswarm.js b/build/tasks/testswarm.js index 4c0f56652..df4e250d8 100644 --- a/build/tasks/testswarm.js +++ b/build/tasks/testswarm.js @@ -27,7 +27,7 @@ var tests = { "Widget": "widget/widget.html" }; -function submit( commit, tests, configFile ) { +function submit( commit, tests, configFile, done ) { var test, testswarm = require( "testswarm" ), config = grunt.file.readJSON( configFile ).jqueryui, @@ -40,7 +40,7 @@ function submit( commit, tests, configFile ) { url: config.swarmUrl, pollInterval: 10000, timeout: 1000 * 60 * 30, - done: this.async() + done: done }, { authUsername: config.authUsername, authToken: config.authToken, @@ -53,7 +53,7 @@ function submit( commit, tests, configFile ) { } grunt.registerTask( "testswarm", function( commit, configFile ) { - submit( commit, tests, configFile ); + submit( commit, tests, configFile, this.async() ); }); grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile ) { @@ -65,7 +65,7 @@ grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile ) { for ( test in tests ) { allTests[ test + "-1.7.2" ] = tests[ test ] + "?nojshint=true&jquery=1.7.2"; } - submit( commit, allTests, configFile ); + submit( commit, allTests, configFile, this.async() ); }); }; |