Skip to content

Commit

Permalink
revert the ARIA test back to its initial form per @mgols recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
rpkoller committed Jun 7, 2024
1 parent 7f88e7f commit 22ea1a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/unit/dialog/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,11 @@ QUnit.test( "title id", function( assert ) {
} );

QUnit.test( "ARIA", function( assert ) {
assert.expect( 5 );
assert.expect( 4 );

var element = $( "<div>" ).dialog(),
wrapper = element.dialog( "widget" );
assert.equal( wrapper.attr( "role" ), "dialog", "dialog role" );
assert.equal( wrapper.attr( "aria-modal" ), "true", "aria-modal attribute" );
assert.equal( wrapper.attr( "aria-labelledby" ), wrapper.find( ".ui-dialog-title" ).attr( "id" ) );
assert.equal( wrapper.attr( "aria-describedby" ), element.attr( "id" ), "aria-describedby added" );
element.remove();
Expand Down

0 comments on commit 22ea1a7

Please sign in to comment.