aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-03-26 16:17:00 +0100
committerGitHub <noreply@github.com>2024-03-26 16:17:00 +0100
commit802642c37323d5fc05bfa4cee90a900953f9a98d (patch)
tree8ab5bffdf4d5d878f9b440b596fd0b26c6ad277f
parent0318a27e199f4a7d9996b9d73f75d483592c5e7e (diff)
downloadjquery-ui-802642c37323d5fc05bfa4cee90a900953f9a98d.tar.gz
jquery-ui-802642c37323d5fc05bfa4cee90a900953f9a98d.zip
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
-rw-r--r--tests/unit/selectmenu/methods.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/selectmenu/methods.js b/tests/unit/selectmenu/methods.js
index 31c2a2a2b..f2506f2d3 100644
--- a/tests/unit/selectmenu/methods.js
+++ b/tests/unit/selectmenu/methods.js
@@ -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" );