Skip to content

Commit 802642c

Browse files
authored
Tests: Fix tests with the Git Core build
jQuery PR jquery/jquery#5452 removed special handling of boolean attributes. Thankfully, this only broke a single jQuery UI test. Closes gh-2220
1 parent 0318a27 commit 802642c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/unit/selectmenu/methods.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ QUnit.test( "enable / disable", function( assert ) {
4141

4242
element.selectmenu( "disable" );
4343
assert.ok( element.selectmenu( "option", "disabled" ), "disable: widget option" );
44-
assert.equal( element.attr( "disabled" ), "disabled", "disable: native select disabled" );
44+
assert.ok( [ "disabled", "" ].indexOf( element.attr( "disabled" ) ) !== -1,
45+
"disable: native select disabled" );
4546
assert.equal( button.attr( "aria-disabled" ), "true", "disable: button ARIA" );
4647
assert.equal( button.attr( "tabindex" ), -1, "disable: button tabindex" );
4748
assert.equal( menu.attr( "aria-disabled" ), "true", "disable: menu ARIA" );

0 commit comments

Comments
 (0)