]> source.dussan.org Git - jquery.git/commitdiff
Tests: Make regexes for iOS devices more rigid
authorMichał Gołębiowski <m.goleb@gmail.com>
Fri, 30 Oct 2015 18:19:01 +0000 (19:19 +0100)
committerMichał Gołębiowski <m.goleb@gmail.com>
Fri, 30 Oct 2015 18:19:01 +0000 (19:19 +0100)
test/unit/support.js

index 1d50c112432a9d0b62620d77d54544ee05c884c8..4cac9d96d3a65e7963868fd61dc85eaf166e437e 100644 (file)
@@ -351,7 +351,7 @@ testIframeWithCallback(
                        "style": true,
                        "submit": true
                };
-       } else if ( /iphone os 9/i.test( userAgent ) ) {
+       } else if ( /iphone os 9_/i.test( userAgent ) ) {
                expected = {
                        "ajax": true,
                        "attributes": true,
@@ -385,7 +385,7 @@ testIframeWithCallback(
                        "style": true,
                        "submit": true
                };
-       } else if ( /iphone os 8/i.test( userAgent ) ) {
+       } else if ( /iphone os 8_/i.test( userAgent ) ) {
                expected = {
                        "ajax": true,
                        "attributes": true,
@@ -419,7 +419,7 @@ testIframeWithCallback(
                        "style": true,
                        "submit": true
                };
-       } else if ( /iphone os 7/i.test( userAgent ) ) {
+       } else if ( /iphone os 7_/i.test( userAgent ) ) {
                expected = {
                        "ajax": true,
                        "attributes": true,