diff options
author | Zack Hall <zackhall@outlook.com> | 2016-01-21 16:24:42 -0800 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2016-01-27 12:14:04 +0100 |
commit | 28f0329a02c453ae26b6bc028b6aaeec578bef6f (patch) | |
tree | 72027ed0692382cb7675ba554386d73ee1799b1d /test | |
parent | 0b0d4c634ab8a953a58bf531dd93e0ea4d632fdd (diff) | |
download | jquery-28f0329a02c453ae26b6bc028b6aaeec578bef6f.tar.gz jquery-28f0329a02c453ae26b6bc028b6aaeec578bef6f.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.
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 6a51ccb8a..f51c53502 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, |