From: Michał Gołębiowski Date: Wed, 22 Jan 2014 20:49:10 +0000 (+0100) Subject: Tests: fix Safari userAgent detection X-Git-Tag: 2.1.0~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3f3f458974fe0bdccfe9042c9503fd2d03e2f6ff;p=jquery.git Tests: fix Safari userAgent detection --- diff --git a/test/unit/support.js b/test/unit/support.js index 2f171a675..efd4f820b 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -131,7 +131,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 ( /7\.0(\.\d+|) safari/i.test( userAgent ) ) { expected = { "ajax": true, "boxSizingReliable": true, @@ -147,7 +147,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 ( /6\.0(\.\d+|) safari/i.test( userAgent ) ) { expected = { "ajax": true, "boxSizingReliable": true, @@ -163,7 +163,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "radioValue": true, "reliableMarginRight": true }; - } else if ( /5\.1\.\d+ safari/i.test( userAgent ) ) { + } else if ( /5\.1(\.\d+|) safari/i.test( userAgent ) ) { expected = { "ajax":true, "boxSizingReliable": true,