Skip to content

Commit 3ac9078

Browse files
committed
Tests: Add Safari 12 & iOS 12 results
1 parent bc8aedf commit 3ac9078

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/unit/support.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ testIframe(
126126
"reliableMarginLeft": true,
127127
"scrollboxSize": true
128128
},
129-
safari_11: {
129+
safari: {
130130
"ajax": true,
131131
"boxSizingReliable": true,
132132
"checkClone": true,
@@ -194,7 +194,7 @@ testIframe(
194194
"reliableMarginLeft": false,
195195
"scrollboxSize": true
196196
},
197-
ios_11: {
197+
ios: {
198198
"ajax": true,
199199
"boxSizingReliable": true,
200200
"checkClone": true,
@@ -292,16 +292,16 @@ testIframe(
292292
// Catches Chrome on Android as well (i.e. the default
293293
// Android browser on Android >= 4.4).
294294
expected = expectedMap.chrome;
295-
} else if ( /\b11\.\d(\.\d+)* safari/i.test( userAgent ) ) {
296-
expected = expectedMap.safari_11;
295+
} else if ( /\b(?:11|12)\.\d(\.\d+)* safari/i.test( userAgent ) ) {
296+
expected = expectedMap.safari;
297297
} else if ( /\b(?:9|10)\.\d(\.\d+)* safari/i.test( userAgent ) ) {
298298
expected = expectedMap.safari_9_10;
299299
} else if ( /firefox\/(?:52|60)/i.test( userAgent ) ) {
300300
expected = expectedMap.firefox_60;
301301
} else if ( /firefox/i.test( userAgent ) ) {
302302
expected = expectedMap.firefox;
303-
} else if ( /(?:iphone|ipad);.*(?:iphone)? os 11_/i.test( userAgent ) ) {
304-
expected = expectedMap.ios_11;
303+
} else if ( /(?:iphone|ipad);.*(?:iphone)? os (?:11|12)_/i.test( userAgent ) ) {
304+
expected = expectedMap.ios;
305305
} else if ( /iphone os (?:9|10)_/i.test( userAgent ) ) {
306306
expected = expectedMap.ios_9_10;
307307
} else if ( /iphone os 8_/i.test( userAgent ) ) {

0 commit comments

Comments
 (0)