Skip to content

Commit

Permalink
Support: Add Android support tests results
Browse files Browse the repository at this point in the history
  • Loading branch information
mgol committed Mar 31, 2014
1 parent 5265cda commit 4f490e5
Showing 1 changed file with 43 additions and 11 deletions.
54 changes: 43 additions & 11 deletions test/unit/support.js
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 4f490e5

Please sign in to comment.