Skip to content

Commit 015d16c

Browse files
committed
Tests: Make regexes for iOS devices more rigid
1 parent 47e2aa6 commit 015d16c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/support.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ testIframeWithCallback(
178178
"radioValue": true,
179179
"reliableMarginLeft": false
180180
};
181-
} else if ( /iphone os 9/i.test( userAgent ) ) {
181+
} else if ( /iphone os 9_/i.test( userAgent ) ) {
182182
expected = {
183183
"ajax": true,
184184
"boxSizingReliable": true,
@@ -195,7 +195,7 @@ testIframeWithCallback(
195195
"radioValue": true,
196196
"reliableMarginLeft": true
197197
};
198-
} else if ( /iphone os 8/i.test( userAgent ) ) {
198+
} else if ( /iphone os 8_/i.test( userAgent ) ) {
199199
expected = {
200200
"ajax": true,
201201
"boxSizingReliable": true,
@@ -212,7 +212,7 @@ testIframeWithCallback(
212212
"radioValue": true,
213213
"reliableMarginLeft": true
214214
};
215-
} else if ( /iphone os 7/i.test( userAgent ) ) {
215+
} else if ( /iphone os 7_/i.test( userAgent ) ) {
216216
expected = {
217217
"ajax": true,
218218
"boxSizingReliable": true,

0 commit comments

Comments
 (0)