diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2016-04-27 12:46:14 -0400 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2016-04-27 15:33:12 -0400 |
commit | 7f1e59343b1600e530472a90aa27a2bcc7b72c96 (patch) | |
tree | 7cbce73bd61d008d36931b6f7106ba0a4b9bd950 /test | |
parent | 9f268caaf43629addb9a1a2001ab341839300b14 (diff) | |
download | jquery-7f1e59343b1600e530472a90aa27a2bcc7b72c96.tar.gz jquery-7f1e59343b1600e530472a90aa27a2bcc7b72c96.zip |
Deferred: Provide explicit undefined context for jQuery.when raw casts
Fixes gh-3082
Closes gh-3084
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/deferred.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/deferred.js b/test/unit/deferred.js index af237acf4..305740fa4 100644 --- a/test/unit/deferred.js +++ b/test/unit/deferred.js @@ -843,7 +843,10 @@ QUnit.test( "jQuery.when - joined", function( assert ) { rejectedStandardPromise: true }, counter = 49, - expectedContext = (function() { "use strict"; return this; })(); + + // Support: Android 4.0 only + // Strict mode functions invoked without .call/.apply get global-object context + expectedContext = (function() { "use strict"; return this; }).call(); QUnit.stop(); |