mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
No ticket. Remove version sniffing from test/unit/support.js, browsers got updated.
This commit is contained in:
parent
7d5a12376d
commit
2ace149f48
@ -48,11 +48,10 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
|
|||||||
);
|
);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var expected, version,
|
var expected,
|
||||||
userAgent = window.navigator.userAgent;
|
userAgent = window.navigator.userAgent;
|
||||||
|
|
||||||
if ( /chrome/i.test( userAgent ) ) {
|
if ( /chrome/i.test( userAgent ) ) {
|
||||||
version = userAgent.match( /chrome\/(\d+)/i )[ 1 ];
|
|
||||||
expected = {
|
expected = {
|
||||||
"ajax": true,
|
"ajax": true,
|
||||||
"boxSizingReliable": true,
|
"boxSizingReliable": true,
|
||||||
@ -64,7 +63,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
|
|||||||
"noCloneChecked": true,
|
"noCloneChecked": true,
|
||||||
"optDisabled": true,
|
"optDisabled": true,
|
||||||
"optSelected": true,
|
"optSelected": true,
|
||||||
"pixelPosition": version >= 28,
|
"pixelPosition": true,
|
||||||
"radioValue": true,
|
"radioValue": true,
|
||||||
"reliableMarginRight": true
|
"reliableMarginRight": true
|
||||||
};
|
};
|
||||||
@ -149,10 +148,9 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
|
|||||||
"reliableMarginRight":true
|
"reliableMarginRight":true
|
||||||
};
|
};
|
||||||
} else if ( /firefox/i.test( userAgent ) ) {
|
} else if ( /firefox/i.test( userAgent ) ) {
|
||||||
version = userAgent.match( /firefox\/(\d+)/i )[ 1 ];
|
|
||||||
expected = {
|
expected = {
|
||||||
"ajax": true,
|
"ajax": true,
|
||||||
"boxSizingReliable": version >= 23,
|
"boxSizingReliable": true,
|
||||||
"checkClone": true,
|
"checkClone": true,
|
||||||
"checkOn": true,
|
"checkOn": true,
|
||||||
"clearCloneStyle": true,
|
"clearCloneStyle": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user