aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2018-11-12 18:55:47 +0100
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2018-11-12 18:55:47 +0100
commit3ac907864c4d36b4fcb58826d9cb0e4ed62334b2 (patch)
tree5490ef8a1a16ed35d8158c35eeaeba593d254067
parentbc8aedf04210db9af519cdc1e947ee14f36934d6 (diff)
downloadjquery-3ac907864c4d36b4fcb58826d9cb0e4ed62334b2.tar.gz
jquery-3ac907864c4d36b4fcb58826d9cb0e4ed62334b2.zip
Tests: Add Safari 12 & iOS 12 results
-rw-r--r--test/unit/support.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/support.js b/test/unit/support.js
index abe2b66b2..24ca830e2 100644
--- a/test/unit/support.js
+++ b/test/unit/support.js
@@ -126,7 +126,7 @@ testIframe(
"reliableMarginLeft": true,
"scrollboxSize": true
},
- safari_11: {
+ safari: {
"ajax": true,
"boxSizingReliable": true,
"checkClone": true,
@@ -194,7 +194,7 @@ testIframe(
"reliableMarginLeft": false,
"scrollboxSize": true
},
- ios_11: {
+ ios: {
"ajax": true,
"boxSizingReliable": true,
"checkClone": true,
@@ -292,16 +292,16 @@ testIframe(
// Catches Chrome on Android as well (i.e. the default
// Android browser on Android >= 4.4).
expected = expectedMap.chrome;
- } else if ( /\b11\.\d(\.\d+)* safari/i.test( userAgent ) ) {
- expected = expectedMap.safari_11;
+ } else if ( /\b(?:11|12)\.\d(\.\d+)* safari/i.test( userAgent ) ) {
+ expected = expectedMap.safari;
} else if ( /\b(?:9|10)\.\d(\.\d+)* safari/i.test( userAgent ) ) {
expected = expectedMap.safari_9_10;
} else if ( /firefox\/(?:52|60)/i.test( userAgent ) ) {
expected = expectedMap.firefox_60;
} else if ( /firefox/i.test( userAgent ) ) {
expected = expectedMap.firefox;
- } else if ( /(?:iphone|ipad);.*(?:iphone)? os 11_/i.test( userAgent ) ) {
- expected = expectedMap.ios_11;
+ } else if ( /(?:iphone|ipad);.*(?:iphone)? os (?:11|12)_/i.test( userAgent ) ) {
+ expected = expectedMap.ios;
} else if ( /iphone os (?:9|10)_/i.test( userAgent ) ) {
expected = expectedMap.ios_9_10;
} else if ( /iphone os 8_/i.test( userAgent ) ) {