From 2506b1c82ad51f2b535cd04e55c61b53bbae14d2 Mon Sep 17 00:00:00 2001 From: Ralf Koller Date: Tue, 11 Jun 2024 23:38:57 +0200 Subject: [PATCH] Fixing initial draft that contained odd unintended changes --- tests/unit/dialog/core.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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(); - } );