diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2014-03-31 23:05:49 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2014-03-31 23:05:49 +0200 |
commit | 4f490e55adaf4c2b141f41c846e04a36eb0626ef (patch) | |
tree | bcd08129c86e78293361586baa725042eb5f6af5 /test/unit/support.js | |
parent | 5265cdac3d84b7bb4f8013ef10adaa5a9968fb1c (diff) | |
download | jquery-4f490e55adaf4c2b141f41c846e04a36eb0626ef.tar.gz jquery-4f490e55adaf4c2b141f41c846e04a36eb0626ef.zip |
Support: Add Android support tests results
Diffstat (limited to 'test/unit/support.js')
-rw-r--r-- | test/unit/support.js | 54 |
1 files changed, 43 insertions, 11 deletions
diff --git a/test/unit/support.js b/test/unit/support.js index 867ba1d74..97650bdff 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -165,19 +165,19 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec }; } else if ( /5\.1(\.\d+|) safari/i.test( userAgent ) ) { expected = { - "ajax":true, + "ajax": true, "boxSizingReliable": true, - "checkClone":false, - "checkOn":false, + "checkClone": false, + "checkOn": false, "clearCloneStyle": true, - "cors":true, - "focusinBubbles":false, - "noCloneChecked":true, - "optDisabled":true, - "optSelected":true, + "cors": true, + "focusinBubbles": false, + "noCloneChecked": true, + "optDisabled": true, + "optSelected": true, "pixelPosition": false, - "radioValue":true, - "reliableMarginRight":true + "radioValue": true, + "reliableMarginRight": true }; } else if ( /firefox/i.test( userAgent ) ) { expected = { @@ -211,10 +211,42 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "radioValue": true, "reliableMarginRight": true }; + } else if ( /android 2\.3/i.test( userAgent ) ) { + expected = { + "ajax": true, + "boxSizingReliable": true, + "checkClone": true, + "checkOn": false, + "clearCloneStyle": false, + "cors": true, + "focusinBubbles": false, + "noCloneChecked": true, + "optDisabled": false, + "optSelected": true, + "pixelPosition": false, + "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 ) { - test("Verify that the support tests resolve as expected per browser", function() { + test( "Verify that the support tests resolve as expected per browser", function() { var i, prop, j = 0; |