diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2014-12-29 14:14:13 -0500 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2015-03-20 02:00:17 -0400 |
commit | 555a50d340706e3e1e0de09231050493d0ad841e (patch) | |
tree | 2348f102acac1694287133bf7bdedbdf47d55dc9 /build/tasks | |
parent | e22ef5d9017c44cad97ae541fefce76cc455edcb (diff) | |
download | jquery-555a50d340706e3e1e0de09231050493d0ad841e.tar.gz jquery-555a50d340706e3e1e0de09231050493d0ad841e.zip |
Deferred: Backwards-compatible standards interoperability
Fixes gh-1722
Closes gh-1996
Diffstat (limited to 'build/tasks')
-rw-r--r-- | build/tasks/promises-aplus-tests.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/build/tasks/promises-aplus-tests.js b/build/tasks/promises-aplus-tests.js new file mode 100644 index 000000000..458ae1be0 --- /dev/null +++ b/build/tasks/promises-aplus-tests.js @@ -0,0 +1,20 @@ +module.exports = function( grunt ) { + + "use strict"; + + var spawn = require( "child_process" ).spawn; + + grunt.registerTask( "promises-aplus-tests", function() { + var done = this.async(); + spawn( + "node", + [ + "./node_modules/.bin/promises-aplus-tests", + "test/promises-aplus-adapter.js" + ], + { stdio: "inherit" } + ).on( "close", function( code ) { + done( code === 0 ); + }); + }); +}; |