mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Tests: Add Safari 12 & iOS 12 results
This commit is contained in:
parent
bc8aedf042
commit
3ac907864c
@ -126,7 +126,7 @@ testIframe(
|
|||||||
"reliableMarginLeft": true,
|
"reliableMarginLeft": true,
|
||||||
"scrollboxSize": true
|
"scrollboxSize": true
|
||||||
},
|
},
|
||||||
safari_11: {
|
safari: {
|
||||||
"ajax": true,
|
"ajax": true,
|
||||||
"boxSizingReliable": true,
|
"boxSizingReliable": true,
|
||||||
"checkClone": true,
|
"checkClone": true,
|
||||||
@ -194,7 +194,7 @@ testIframe(
|
|||||||
"reliableMarginLeft": false,
|
"reliableMarginLeft": false,
|
||||||
"scrollboxSize": true
|
"scrollboxSize": true
|
||||||
},
|
},
|
||||||
ios_11: {
|
ios: {
|
||||||
"ajax": true,
|
"ajax": true,
|
||||||
"boxSizingReliable": true,
|
"boxSizingReliable": true,
|
||||||
"checkClone": true,
|
"checkClone": true,
|
||||||
@ -292,16 +292,16 @@ testIframe(
|
|||||||
// Catches Chrome on Android as well (i.e. the default
|
// Catches Chrome on Android as well (i.e. the default
|
||||||
// Android browser on Android >= 4.4).
|
// Android browser on Android >= 4.4).
|
||||||
expected = expectedMap.chrome;
|
expected = expectedMap.chrome;
|
||||||
} else if ( /\b11\.\d(\.\d+)* safari/i.test( userAgent ) ) {
|
} else if ( /\b(?:11|12)\.\d(\.\d+)* safari/i.test( userAgent ) ) {
|
||||||
expected = expectedMap.safari_11;
|
expected = expectedMap.safari;
|
||||||
} else if ( /\b(?:9|10)\.\d(\.\d+)* safari/i.test( userAgent ) ) {
|
} else if ( /\b(?:9|10)\.\d(\.\d+)* safari/i.test( userAgent ) ) {
|
||||||
expected = expectedMap.safari_9_10;
|
expected = expectedMap.safari_9_10;
|
||||||
} else if ( /firefox\/(?:52|60)/i.test( userAgent ) ) {
|
} else if ( /firefox\/(?:52|60)/i.test( userAgent ) ) {
|
||||||
expected = expectedMap.firefox_60;
|
expected = expectedMap.firefox_60;
|
||||||
} else if ( /firefox/i.test( userAgent ) ) {
|
} else if ( /firefox/i.test( userAgent ) ) {
|
||||||
expected = expectedMap.firefox;
|
expected = expectedMap.firefox;
|
||||||
} else if ( /(?:iphone|ipad);.*(?:iphone)? os 11_/i.test( userAgent ) ) {
|
} else if ( /(?:iphone|ipad);.*(?:iphone)? os (?:11|12)_/i.test( userAgent ) ) {
|
||||||
expected = expectedMap.ios_11;
|
expected = expectedMap.ios;
|
||||||
} else if ( /iphone os (?:9|10)_/i.test( userAgent ) ) {
|
} else if ( /iphone os (?:9|10)_/i.test( userAgent ) ) {
|
||||||
expected = expectedMap.ios_9_10;
|
expected = expectedMap.ios_9_10;
|
||||||
} else if ( /iphone os 8_/i.test( userAgent ) ) {
|
} else if ( /iphone os 8_/i.test( userAgent ) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user