Skip to content

Commit 28f0329

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. Closes gh-2857
1 parent 0b0d4c6 commit 28f0329

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
@@ -53,16 +53,17 @@ testIframeWithCallback(
5353
);
5454

5555
( function() {
56-
var expected,
56+
var expected, version,
5757
userAgent = window.navigator.userAgent;
5858

5959
if ( /edge\//i.test( userAgent ) ) {
60+
version = userAgent.match( /edge\/(\d+)/i )[ 1 ];
6061
expected = {
6162
"ajax": true,
6263
"boxSizingReliable": true,
6364
"checkClone": true,
6465
"checkOn": true,
65-
"clearCloneStyle": false,
66+
"clearCloneStyle": version >= 13,
6667
"cors": true,
6768
"createHTMLDocument": true,
6869
"focusin": false,

0 commit comments

Comments
 (0)