Skip to content

Commit

Permalink
Tests: Fix tests with the Git Core build
Browse files Browse the repository at this point in the history
jQuery PR jquery/jquery#5452 removed special handling of boolean attributes.
Thankfully, this only broke a single jQuery UI test.

Closes gh-2220
  • Loading branch information
mgol committed Mar 26, 2024
1 parent 0318a27 commit 802642c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/selectmenu/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ QUnit.test( "enable / disable", function( assert ) {

element.selectmenu( "disable" );
assert.ok( element.selectmenu( "option", "disabled" ), "disable: widget option" );
assert.equal( element.attr( "disabled" ), "disabled", "disable: native select disabled" );
assert.ok( [ "disabled", "" ].indexOf( element.attr( "disabled" ) ) !== -1,
"disable: native select disabled" );
assert.equal( button.attr( "aria-disabled" ), "true", "disable: button ARIA" );
assert.equal( button.attr( "tabindex" ), -1, "disable: button tabindex" );
assert.equal( menu.attr( "aria-disabled" ), "true", "disable: menu ARIA" );
Expand Down

0 comments on commit 802642c

Please sign in to comment.