]> source.dussan.org Git - jquery.git/commitdiff
Tests: fix Safari userAgent detection
authorMichał Gołębiowski <m.goleb@gmail.com>
Wed, 22 Jan 2014 20:49:10 +0000 (21:49 +0100)
committerMichał Gołębiowski <m.goleb@gmail.com>
Wed, 22 Jan 2014 20:49:10 +0000 (21:49 +0100)
test/unit/support.js

index 2f171a675a7ea0823e863cdce2845c1e6e860dbd..efd4f820bc3e82f31eb8ee2712d26a6628c822c2 100644 (file)
@@ -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,