diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2018-08-01 15:12:30 +0200 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2018-08-01 15:12:30 +0200 |
commit | c9aae3565edc840961ecbeee77fb0cb367c46702 (patch) | |
tree | 446f1fb36584d706940df17a703055802e873a77 /test/unit | |
parent | ae82e85e64b0a06d585934d8f2d2859ce3e755b6 (diff) | |
download | jquery-c9aae3565edc840961ecbeee77fb0cb367c46702.tar.gz jquery-c9aae3565edc840961ecbeee77fb0cb367c46702.zip |
Tests: Account for the iPad with iOS 11.3 user agent
The user agent of the iPad with iOS 11.3 on BrowserStack is missing the "iPhone"
part in the "iPhone OS 11_3" part. This commit makes the iOS regex accept such
(probably?) malformed UAs.
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/support.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/support.js b/test/unit/support.js index 0ed77a932..0983d2295 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -300,7 +300,7 @@ testIframe( expected = expectedMap.firefox_60; } else if ( /firefox/i.test( userAgent ) ) { expected = expectedMap.firefox; - } else if ( /iphone os 11_/i.test( userAgent ) ) { + } else if ( /(?:iphone|ipad);.*(?:iphone)? os 11_/i.test( userAgent ) ) { expected = expectedMap.ios_11; } else if ( /iphone os (?:9|10)_/i.test( userAgent ) ) { expected = expectedMap.ios_9_10; |