diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2020-01-27 18:54:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-27 18:54:47 +0100 |
commit | d525ae3416417186330bb3d14133df84509803a0 (patch) | |
tree | 7f6920f6228a5d8934f539abba28f8f8ed756191 /test/unit/deferred.js | |
parent | 7a3cf9c03cc34d5493383852f94d96fe4a3486ef (diff) | |
download | jquery-d525ae3416417186330bb3d14133df84509803a0.tar.gz jquery-d525ae3416417186330bb3d14133df84509803a0.zip |
Build:Tests: Fix custom build tests, verify on Travis; name Travis jobs
This commit fixes unit tests for the following builds:
1. The no-deprecated build: `custom:-deprecated`
2. The current slim build: `custom:-ajax,-effects`
3. The 4.0 (#4553) slim build: `custom:-ajax,-callbacks,-deferred,-effects`
It also adds separate Travis jobs for the no-deprecated & slim builds.
Apart from that, add intuitive names to Travis jobs. Otherwise it's hard to see
at a glance that a particular job is running on Firefox ESR, for example.
Ref gh-4577
Ref gh-4596
Closes gh-4600
Diffstat (limited to 'test/unit/deferred.js')
-rw-r--r-- | test/unit/deferred.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/deferred.js b/test/unit/deferred.js index c704f905f..0132a0129 100644 --- a/test/unit/deferred.js +++ b/test/unit/deferred.js @@ -2,6 +2,12 @@ QUnit.module( "deferred", { afterEach: moduleTeardown } ); +( function() { + +if ( !jQuery.Deferred ) { + return; +} + jQuery.each( [ "", " - new operator" ], function( _, withNew ) { function createDeferred( fn ) { @@ -1154,3 +1160,5 @@ QUnit.test( "jQuery.when(...) - opportunistically synchronous", function( assert when = "after"; } ); + +} )(); |