mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Tests: fix Safari userAgent detection
This commit is contained in:
parent
37d036a84c
commit
3f3f458974
@ -131,7 +131,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
|
|||||||
"radioValue": false,
|
"radioValue": false,
|
||||||
"reliableMarginRight": true
|
"reliableMarginRight": true
|
||||||
};
|
};
|
||||||
} else if ( /7\.0\.\d+ safari/i.test( userAgent ) ) {
|
} else if ( /7\.0(\.\d+|) safari/i.test( userAgent ) ) {
|
||||||
expected = {
|
expected = {
|
||||||
"ajax": true,
|
"ajax": true,
|
||||||
"boxSizingReliable": true,
|
"boxSizingReliable": true,
|
||||||
@ -147,7 +147,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
|
|||||||
"radioValue": true,
|
"radioValue": true,
|
||||||
"reliableMarginRight": true
|
"reliableMarginRight": true
|
||||||
};
|
};
|
||||||
} else if ( /6\.0\.\d+ safari/i.test( userAgent ) ) {
|
} else if ( /6\.0(\.\d+|) safari/i.test( userAgent ) ) {
|
||||||
expected = {
|
expected = {
|
||||||
"ajax": true,
|
"ajax": true,
|
||||||
"boxSizingReliable": true,
|
"boxSizingReliable": true,
|
||||||
@ -163,7 +163,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
|
|||||||
"radioValue": true,
|
"radioValue": true,
|
||||||
"reliableMarginRight": true
|
"reliableMarginRight": true
|
||||||
};
|
};
|
||||||
} else if ( /5\.1\.\d+ safari/i.test( userAgent ) ) {
|
} else if ( /5\.1(\.\d+|) safari/i.test( userAgent ) ) {
|
||||||
expected = {
|
expected = {
|
||||||
"ajax":true,
|
"ajax":true,
|
||||||
"boxSizingReliable": true,
|
"boxSizingReliable": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user