Support: Re-organize browser order, add Safari 8

Most browsers were put in order newest to oldest, Android was
treated differently; this has been fixed.

Also, browsers that share test results between different versions were
grouped together.

(refs 43faf6d1f9)
This commit is contained in:
Michał Gołębiowski 2014-12-09 21:08:25 +01:00
parent 4cc4e54298
commit 7e70867805

View File

@ -99,36 +99,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"style": true,
"submitBubbles": true
};
} else if ( /trident\/7\.0/i.test( userAgent ) ) {
expected = {
"ajax": true,
"boxSizingReliable": false,
"changeBubbles": true,
"checkClone": true,
"checkOn": true,
"clearCloneStyle": false,
"cors": true,
"cssFloat": true,
"deleteExpando": true,
"focusinBubbles": true,
"html5Clone": true,
"htmlSerialize": true,
"input": true,
"leadingWhitespace": true,
"noCloneChecked": false,
"noCloneEvent": true,
"opacity": true,
"optDisabled": true,
"optSelected": false,
"ownLast": false,
"pixelPosition": true,
"radioValue": false,
"reliableHiddenOffsets": true,
"reliableMarginRight": true,
"style": true,
"submitBubbles": true
};
} else if ( /msie 10\.0/i.test( userAgent ) ) {
} else if ( /(msie 10\.0|trident\/7\.0)/i.test( userAgent ) ) {
expected = {
"ajax": true,
"boxSizingReliable": false,
@ -215,36 +186,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"style": false,
"submitBubbles": false
};
} else if ( /7\.0(\.\d+|) safari/i.test( userAgent ) ) {
expected = {
"ajax": true,
"boxSizingReliable": true,
"changeBubbles": true,
"checkClone": true,
"checkOn": true,
"clearCloneStyle": true,
"cors": true,
"cssFloat": true,
"deleteExpando": true,
"focusinBubbles": false,
"html5Clone": true,
"htmlSerialize": true,
"input": true,
"leadingWhitespace": true,
"noCloneChecked": true,
"noCloneEvent": true,
"opacity": true,
"optDisabled": true,
"optSelected": true,
"ownLast": false,
"pixelPosition": false,
"radioValue": true,
"reliableHiddenOffsets": true,
"reliableMarginRight": true,
"style": true,
"submitBubbles": true
};
} else if ( /6\.0(\.\d+|) safari/i.test( userAgent ) ) {
} else if ( /(6|7|8)\.0(\.\d+|) safari/i.test( userAgent ) ) {
expected = {
"ajax": true,
"boxSizingReliable": true,
@ -331,35 +273,6 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"style": true,
"submitBubbles": true
};
} else if ( /android 2\.3/i.test( userAgent ) ) {
expected = {
"ajax": true,
"boxSizingReliable": true,
"changeBubbles": true,
"checkClone": true,
"checkOn": false,
"clearCloneStyle": false,
"cors": true,
"cssFloat": true,
"deleteExpando": true,
"focusinBubbles": false,
"html5Clone": true,
"htmlSerialize": true,
"input": true,
"leadingWhitespace": true,
"noCloneChecked": true,
"noCloneEvent": true,
"opacity": true,
"optDisabled": false,
"optSelected": true,
"ownLast": false,
"pixelPosition": false,
"radioValue": true,
"reliableHiddenOffsets": true,
"reliableMarginRight": false,
"style": true,
"submitBubbles": true
};
} else if ( /android 4\.[0-3]/i.test( userAgent ) ) {
expected = {
"ajax": true,
@ -389,6 +302,35 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"style": true,
"submitBubbles": true
};
} else if ( /android 2\.3/i.test( userAgent ) ) {
expected = {
"ajax": true,
"boxSizingReliable": true,
"changeBubbles": true,
"checkClone": true,
"checkOn": false,
"clearCloneStyle": false,
"cors": true,
"cssFloat": true,
"deleteExpando": true,
"focusinBubbles": false,
"html5Clone": true,
"htmlSerialize": true,
"input": true,
"leadingWhitespace": true,
"noCloneChecked": true,
"noCloneEvent": true,
"opacity": true,
"optDisabled": false,
"optSelected": true,
"ownLast": false,
"pixelPosition": false,
"radioValue": true,
"reliableHiddenOffsets": true,
"reliableMarginRight": false,
"style": true,
"submitBubbles": true
};
}
if ( expected ) {