]> source.dussan.org Git - jquery.git/commitdiff
Tests: take Safari 9.1 into account
authorMichał Gołębiowski <m.goleb@gmail.com>
Mon, 2 May 2016 20:49:17 +0000 (22:49 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 2 May 2016 20:49:56 +0000 (22:49 +0200)
Safari 9.1 shares its support test results with Safari 9.0 but it's been
excluded from the regex catching Safari 9.0. This has been fixed.

(cherry-picked from 234a2d828021b6eb36d83d83cc30c5a09045e781)

test/unit/support.js

index af2bd9238941ea5e16c35e7e40faa2a532a997d0..f1ad75bb35b99ba53104591439d38c2bcfbb8871 100644 (file)
@@ -150,7 +150,7 @@ testIframeWithCallback(
                        "reliableMarginLeft": true,
                        "reliableMarginRight": true
                };
-       } else if ( /9\.0(\.\d+|) safari/i.test( userAgent ) ) {
+       } else if ( /9(\.\d+|) safari/i.test( userAgent ) ) {
                expected = {
                        "ajax": true,
                        "boxSizingReliable": true,