" ).dialog(),
- wrapper = element.dialog( "option", "modal", false );
- assert.equal( wrapper.attr( "aria-modal" ), "false", "aria-modal attribute set to false" );
+ var element = $( "
" ).dialog( "option", "modal", false ),
+ wrapper = element.dialog( "widget" );
+ assert.equal( wrapper.attr( "aria-modal" ), "false", "aria-modal attribute set to false" );
element.remove();
- var element = $( "
" ).dialog();
- assert.equal( element.dialog( "widget" ).attr( "aria-describedby" ), null, "no aria-modal attribute added" );
+ var element = $( "
" ).dialog( "option", "modal", null ),
+ wrapper = element.dialog( "widget" );
+ assert.equal( wrapper.attr( "aria-modal" ), null, "no aria-modal attribute added" );
element.remove();
-
} );