diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2014-12-09 21:05:31 +0100 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2014-12-09 21:05:45 +0100 |
commit | 43faf6d1f922ba44a84c93f4ff2461d208b2bf48 (patch) | |
tree | 3b87e74df0b53836788d416d767ffa4a243f7f1c /test/unit/support.js | |
parent | eeda11cdd6a69ec2ef4e9c1ed12b82a79910fda5 (diff) | |
download | jquery-43faf6d1f922ba44a84c93f4ff2461d208b2bf48.tar.gz jquery-43faf6d1f922ba44a84c93f4ff2461d208b2bf48.zip |
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.
Diffstat (limited to 'test/unit/support.js')
-rw-r--r-- | test/unit/support.js | 50 |
1 files changed, 9 insertions, 41 deletions
diff --git a/test/unit/support.js b/test/unit/support.js index 80ce287d8..11f15a33b 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -69,23 +69,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "radioValue": true, "reliableMarginRight": true }; - } else if ( /trident\/7\.0/i.test( userAgent ) ) { - expected = { - "ajax": true, - "boxSizingReliable": false, - "checkClone": true, - "checkOn": true, - "clearCloneStyle": false, - "cors": true, - "focusinBubbles": true, - "noCloneChecked": false, - "optDisabled": true, - "optSelected": false, - "pixelPosition": true, - "radioValue": false, - "reliableMarginRight": 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, @@ -117,7 +101,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "radioValue": false, "reliableMarginRight": true }; - } else if ( /7\.0(\.\d+|) safari/i.test( userAgent ) ) { + } else if ( /(6|7|8)\.0(\.\d+|) safari/i.test( userAgent ) ) { expected = { "ajax": true, "boxSizingReliable": true, @@ -133,7 +117,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "radioValue": true, "reliableMarginRight": true }; - } else if ( /6\.0(\.\d+|) safari/i.test( userAgent ) ) { + } else if ( /firefox/i.test( userAgent ) ) { expected = { "ajax": true, "boxSizingReliable": true, @@ -145,11 +129,11 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "noCloneChecked": true, "optDisabled": true, "optSelected": true, - "pixelPosition": false, + "pixelPosition": true, "radioValue": true, "reliableMarginRight": true }; - } else if ( /firefox/i.test( userAgent ) ) { + } else if ( /iphone os/i.test( userAgent ) ) { expected = { "ajax": true, "boxSizingReliable": true, @@ -161,16 +145,16 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "noCloneChecked": true, "optDisabled": true, "optSelected": true, - "pixelPosition": true, + "pixelPosition": false, "radioValue": true, "reliableMarginRight": true }; - } else if ( /iphone os/i.test( userAgent ) ) { + } else if ( /android 4\.[0-3]/i.test( userAgent ) ) { expected = { "ajax": true, "boxSizingReliable": true, - "checkClone": true, - "checkOn": true, + "checkClone": false, + "checkOn": false, "clearCloneStyle": true, "cors": true, "focusinBubbles": false, @@ -197,22 +181,6 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "radioValue": true, "reliableMarginRight": false }; - } else if ( /android 4\.[0-3]/i.test( userAgent ) ) { - expected = { - "ajax": true, - "boxSizingReliable": true, - "checkClone": false, - "checkOn": false, - "clearCloneStyle": true, - "cors": true, - "focusinBubbles": false, - "noCloneChecked": true, - "optDisabled": true, - "optSelected": true, - "pixelPosition": false, - "radioValue": true, - "reliableMarginRight": true - }; } if ( expected ) { |