diff options
author | Zack Hall <zackhall@outlook.com> | 2016-01-21 16:24:42 -0800 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2016-02-13 20:45:58 +0100 |
commit | e456c30a2d3ba55b100002dea97889cf96abd294 (patch) | |
tree | 90bf91cc5fc65f74587027c8b5848096697ec797 /test | |
parent | f6257b2b3f3e22b301c641103f15f16a22f17bcb (diff) | |
download | jquery-e456c30a2d3ba55b100002dea97889cf96abd294.tar.gz jquery-e456c30a2d3ba55b100002dea97889cf96abd294.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/support.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/support.js b/test/unit/support.js index cae3c1eee..49c32318d 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -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, |