mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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.
This commit is contained in:
parent
ae82e85e64
commit
c9aae3565e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user