aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-04-12 15:23:31 +0200
committerGitHub <noreply@github.com>2024-04-12 15:23:31 +0200
commit1374020009d3168d61d1188e581eee8d15623632 (patch)
treef21dde94e636ff4b1e4650b53daf96bae577d708 /tests/unit
parente7a0da63eabec24120223e947a9d14c648c52d9e (diff)
downloadjquery-ui-1374020009d3168d61d1188e581eee8d15623632.tar.gz
jquery-ui-1374020009d3168d61d1188e581eee8d15623632.zip
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
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/tabs/core.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/unit/tabs/core.js b/tests/unit/tabs/core.js
index 37dd3d4e3..7637cfb1f 100644
--- a/tests/unit/tabs/core.js
+++ b/tests/unit/tabs/core.js
@@ -180,7 +180,13 @@ QUnit.test( "accessibility - ajax", function( assert ) {
} );
} );
-QUnit.test( "keyboard support - LEFT, RIGHT, UP, DOWN, HOME, END, SPACE, ENTER", function( assert ) {
+QUnit[
+
+ // Support: IE 11+, jQuery 3.6 only
+ // 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.
+ jQuery.fn.jquery.indexOf( "3.6." ) === 0 && document.documentMode ? "skip" : "test"
+]( "keyboard support - LEFT, RIGHT, UP, DOWN, HOME, END, SPACE, ENTER", function( assert ) {
var ready = assert.async();
assert.expect( 92 );
var element = $( "#tabs1" ).tabs( {