]> source.dussan.org Git - jquery.git/commitdiff
Tests: Set Edge's expected support for clearCloneStyle to true
authorZack Hall <zackhall@outlook.com>
Fri, 22 Jan 2016 00:24:42 +0000 (16:24 -0800)
committerMichał Gołębiowski <m.goleb@gmail.com>
Sat, 13 Feb 2016 19:45:58 +0000 (20:45 +0100)
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

index cae3c1eee41bd1d1d8ae6b3770dd8778107dc98c..49c32318d358400d71d934352db5aea46c66becd 100644 (file)
@@ -89,10 +89,11 @@ 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,
                        "appendChecked": true,
@@ -102,7 +103,7 @@ testIframeWithCallback(
                        "change": true,
                        "checkClone": true,
                        "checkOn": true,
-                       "clearCloneStyle": false,
+                       "clearCloneStyle": version >= 13,
                        "cors": true,
                        "createHTMLDocument": true,
                        "cssFloat": true,