Skip to content

Commit 1374020

Browse files
authored
Tests: Skip a problematic keyboard test in IE with jQuery 3.6
jQuery 3.6 has issues with focus handling in IE which breaks this test. The issues were fixed in jQuery 3.7, so we just accept them here. Closes gh-2231
1 parent e7a0da6 commit 1374020

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/unit/tabs/core.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,13 @@ QUnit.test( "accessibility - ajax", function( assert ) {
180180
} );
181181
} );
182182

183-
QUnit.test( "keyboard support - LEFT, RIGHT, UP, DOWN, HOME, END, SPACE, ENTER", function( assert ) {
183+
QUnit[
184+
185+
// Support: IE 11+, jQuery 3.6 only
186+
// jQuery 3.6 has issues with focus handling in IE which breaks this test.
187+
// The issues were fixed in jQuery 3.7, so we just accept them here.
188+
jQuery.fn.jquery.indexOf( "3.6." ) === 0 && document.documentMode ? "skip" : "test"
189+
]( "keyboard support - LEFT, RIGHT, UP, DOWN, HOME, END, SPACE, ENTER", function( assert ) {
184190
var ready = assert.async();
185191
assert.expect( 92 );
186192
var element = $( "#tabs1" ).tabs( {

0 commit comments

Comments
 (0)