Skip to content

Commit e456c30

Browse files
zackhallmgol
authored andcommitted
Tests: Set Edge's expected support for clearCloneStyle to true
This is done for a version 13 or newer as the bug still exists in Edge 12. (cherry-picked from 28f0329) Closes jquerygh-2857
1 parent f6257b2 commit e456c30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/unit/support.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,11 @@ testIframeWithCallback(
8989
);
9090

9191
( function() {
92-
var expected,
92+
var expected, version,
9393
userAgent = window.navigator.userAgent;
9494

9595
if ( /edge\//i.test( userAgent ) ) {
96+
version = userAgent.match( /edge\/(\d+)/i )[ 1 ];
9697
expected = {
9798
"ajax": true,
9899
"appendChecked": true,
@@ -102,7 +103,7 @@ testIframeWithCallback(
102103
"change": true,
103104
"checkClone": true,
104105
"checkOn": true,
105-
"clearCloneStyle": false,
106+
"clearCloneStyle": version >= 13,
106107
"cors": true,
107108
"createHTMLDocument": true,
108109
"cssFloat": true,

0 commit comments

Comments
 (0)