]> 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>
Wed, 27 Jan 2016 11:14:04 +0000 (12:14 +0100)
This is done for a version 13 or newer as the bug still exists in Edge 12.

Closes gh-2857

test/unit/support.js

index 6a51ccb8abed8775ae478e3c8990685f6c79aa83..f51c535025fd82e57612c9cd6a7f7dd70724f70f 100644 (file)
@@ -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,