From ce308e25e57a0a040cd1ea05f00bf1cc23c1bd8a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82=C4=99biowski?= Date: Sat, 13 Dec 2014 21:41:04 +0100 Subject: [PATCH] Support: Correct iOS 8 support test results, re-arrange entries --- test/unit/support.js | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/test/unit/support.js b/test/unit/support.js index 0e58aa53b..b86aa9449 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -104,7 +104,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "radioValue": false, "reliableMarginRight": true }; - } else if ( /(6|7)\.0(\.\d+|) safari/i.test( userAgent ) ) { + } else if ( /8.0(\.\d+|) safari/i.test( userAgent ) ) { expected = { "ajax": true, "boxSizingReliable": true, @@ -112,7 +112,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "checkOn": true, "clearCloneStyle": true, "cors": true, - "createHTMLDocument": true, + "createHTMLDocument": false, "focusinBubbles": false, "noCloneChecked": true, "optDisabled": true, @@ -121,7 +121,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "radioValue": true, "reliableMarginRight": true }; - } else if ( /8.0(\.\d+|) safari/i.test( userAgent ) ) { + } else if ( /(6|7)\.0(\.\d+|) safari/i.test( userAgent ) ) { expected = { "ajax": true, "boxSizingReliable": true, @@ -129,7 +129,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "checkOn": true, "clearCloneStyle": true, "cors": true, - "createHTMLDocument": false, + "createHTMLDocument": true, "focusinBubbles": false, "noCloneChecked": true, "optDisabled": true, @@ -155,7 +155,24 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "radioValue": true, "reliableMarginRight": true }; - } else if ( /iphone os/i.test( userAgent ) ) { + } else if ( /iphone os 8/i.test( userAgent ) ) { + expected = { + "ajax": true, + "boxSizingReliable": true, + "checkClone": true, + "checkOn": true, + "clearCloneStyle": true, + "cors": true, + "createHTMLDocument": false, + "focusinBubbles": false, + "noCloneChecked": true, + "optDisabled": true, + "optSelected": true, + "pixelPosition": false, + "radioValue": true, + "reliableMarginRight": true + }; + } else if ( /iphone os (6|7)/i.test( userAgent ) ) { expected = { "ajax": true, "boxSizingReliable": true, -- 2.39.5