From 4f490e55adaf4c2b141f41c846e04a36eb0626ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Mon, 31 Mar 2014 23:05:49 +0200 Subject: [PATCH] Support: Add Android support tests results --- test/unit/support.js | 54 +++++++++++++++++++++++++++++++++++--------- 1 file 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; -- 2.39.5