diff --git a/tests/unit/dialog/core.js b/tests/unit/dialog/core.js index 4ebbf78086..5b63227e01 100644 --- a/tests/unit/dialog/core.js +++ b/tests/unit/dialog/core.js @@ -87,20 +87,20 @@ QUnit.test( "ARIA", function( assert ) { QUnit.test( "aria-modal", function( assert ) { assert.expect( 3 ); - var element = $( "
" ).dialog(), - wrapper = element.dialog( "option", "modal", true ); - assert.equal( wrapper.attr( "aria-modal" ), "true", "aria-modal attribute set to true" ); + var element = $( "
" ).dialog( "option", "modal", true ), + wrapper = element.dialog( "widget" ); + assert.equal( wrapper.attr( "aria-modal" ), "true", "aria-modal attribute set to true" ); element.remove(); - var element = $( "
" ).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(); - } );