Skip to content

Commit 729c6d0

Browse files
committed
Add a test if aria-modal attribute is there and true
1 parent a8a6e26 commit 729c6d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/unit/dialog/core.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ QUnit.test( "ARIA", function( assert ) {
7575
var element = $( "<div>" ).dialog(),
7676
wrapper = element.dialog( "widget" );
7777
assert.equal( wrapper.attr( "role" ), "dialog", "dialog role" );
78+
assert.equal( wrapper.attr( "aria-modal" ), "true", "aria-modal attribute" );
7879
assert.equal( wrapper.attr( "aria-labelledby" ), wrapper.find( ".ui-dialog-title" ).attr( "id" ) );
7980
assert.equal( wrapper.attr( "aria-describedby" ), element.attr( "id" ), "aria-describedby added" );
8081
element.remove();

0 commit comments

Comments
 (0)