From d230d51731869827e00202c7850680a5c438e678 Mon Sep 17 00:00:00 2001 From: Zack Hall Date: Thu, 21 Jan 2016 16:24:42 -0800 Subject: [PATCH] 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 28f0329a02c453ae26b6bc028b6aaeec578bef6f) Closes gh-2857 --- test/unit/support.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unit/support.js b/test/unit/support.js index 9f0937a93..5d3e38a4b 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -53,16 +53,17 @@ testIframeWithCallback( ); ( function() { - var expected, + var expected, version, userAgent = window.navigator.userAgent; if ( /edge\//i.test( userAgent ) ) { + version = userAgent.match( /edge\/(\d+)/i )[ 1 ]; expected = { "ajax": true, "boxSizingReliable": true, "checkClone": true, "checkOn": true, - "clearCloneStyle": false, + "clearCloneStyle": version >= 13, "cors": true, "createHTMLDocument": true, "focusin": false, -- 2.39.5