Skip to content

Commit 546593b

Browse files
committed
Tests: Add Microsoft Edge results (from Windows 10 build 10130)
The Microsoft Edge user agent contains "Chrome" so it needs to be checked before Chrome. Refs 8e111df
1 parent ef332c7 commit 546593b

File tree

1 file changed

+36
-4
lines changed

1 file changed

+36
-4
lines changed

test/unit/support.js

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,15 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
6868
var expected,
6969
userAgent = window.navigator.userAgent;
7070

71-
if ( /chrome/i.test( userAgent ) ) {
72-
// Catches Chrome on Android as well (i.e. the default
73-
// Android browser on Android >= 4.4).
71+
if ( /edge\/12/i.test( userAgent ) ) {
7472
expected = {
7573
"ajax": true,
7674
"attributes": true,
7775
"boxSizingReliable": true,
7876
"change": true,
7977
"checkClone": true,
8078
"checkOn": true,
81-
"clearCloneStyle": true,
79+
"clearCloneStyle": false,
8280
"cors": true,
8381
"createHTMLDocument": true,
8482
"cssFloat": true,
@@ -198,6 +196,40 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
198196
"style": false,
199197
"submit": false
200198
};
199+
} else if ( /chrome/i.test( userAgent ) ) {
200+
// Catches Chrome on Android as well (i.e. the default
201+
// Android browser on Android >= 4.4).
202+
expected = {
203+
"ajax": true,
204+
"attributes": true,
205+
"boxSizingReliable": true,
206+
"change": true,
207+
"checkClone": true,
208+
"checkOn": true,
209+
"clearCloneStyle": true,
210+
"cors": true,
211+
"createHTMLDocument": true,
212+
"cssFloat": true,
213+
"deleteExpando": true,
214+
"focusin": false,
215+
"html5Clone": true,
216+
"htmlSerialize": true,
217+
"input": true,
218+
"leadingWhitespace": true,
219+
"noCloneChecked": true,
220+
"noCloneEvent": true,
221+
"opacity": true,
222+
"optDisabled": true,
223+
"optSelected": true,
224+
"ownLast": false,
225+
"pixelMarginRight": true,
226+
"pixelPosition": true,
227+
"radioValue": true,
228+
"reliableHiddenOffsets": true,
229+
"reliableMarginRight": true,
230+
"style": true,
231+
"submit": true
232+
};
201233
} else if ( /8\.0(\.\d+|) safari/i.test( userAgent ) ) {
202234
expected = {
203235
"ajax": true,

0 commit comments

Comments
 (0)