Skip to content

Commit 3f3f458

Browse files
committed
Tests: fix Safari userAgent detection
1 parent 37d036a commit 3f3f458

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
@@ -131,7 +131,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
131131
"radioValue": false,
132132
"reliableMarginRight": true
133133
};
134-
} else if ( /7\.0\.\d+ safari/i.test( userAgent ) ) {
134+
} else if ( /7\.0(\.\d+|) safari/i.test( userAgent ) ) {
135135
expected = {
136136
"ajax": true,
137137
"boxSizingReliable": true,
@@ -147,7 +147,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
147147
"radioValue": true,
148148
"reliableMarginRight": true
149149
};
150-
} else if ( /6\.0\.\d+ safari/i.test( userAgent ) ) {
150+
} else if ( /6\.0(\.\d+|) safari/i.test( userAgent ) ) {
151151
expected = {
152152
"ajax": true,
153153
"boxSizingReliable": true,
@@ -163,7 +163,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
163163
"radioValue": true,
164164
"reliableMarginRight": true
165165
};
166-
} else if ( /5\.1\.\d+ safari/i.test( userAgent ) ) {
166+
} else if ( /5\.1(\.\d+|) safari/i.test( userAgent ) ) {
167167
expected = {
168168
"ajax":true,
169169
"boxSizingReliable": true,

0 commit comments

Comments
 (0)