mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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
This commit is contained in:
parent
0b0d4c634a
commit
28f0329a02
@ -53,16 +53,17 @@ testIframeWithCallback(
|
|||||||
);
|
);
|
||||||
|
|
||||||
( function() {
|
( function() {
|
||||||
var expected,
|
var expected, version,
|
||||||
userAgent = window.navigator.userAgent;
|
userAgent = window.navigator.userAgent;
|
||||||
|
|
||||||
if ( /edge\//i.test( userAgent ) ) {
|
if ( /edge\//i.test( userAgent ) ) {
|
||||||
|
version = userAgent.match( /edge\/(\d+)/i )[ 1 ];
|
||||||
expected = {
|
expected = {
|
||||||
"ajax": true,
|
"ajax": true,
|
||||||
"boxSizingReliable": true,
|
"boxSizingReliable": true,
|
||||||
"checkClone": true,
|
"checkClone": true,
|
||||||
"checkOn": true,
|
"checkOn": true,
|
||||||
"clearCloneStyle": false,
|
"clearCloneStyle": version >= 13,
|
||||||
"cors": true,
|
"cors": true,
|
||||||
"createHTMLDocument": true,
|
"createHTMLDocument": true,
|
||||||
"focusin": false,
|
"focusin": false,
|
||||||
|
Loading…
Reference in New Issue
Block a user