Skip to content

Commit d4aa8a0

Browse files
committed
fix for the test
1 parent 9238fc0 commit d4aa8a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/dialog/core.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ QUnit.test( "aria-modal", function( assert ) {
120120
QUnit.test( "ui dialog title tagname", function( assert ) {
121121
assert.expect( 1 );
122122

123-
var element, wrapper;
123+
var element, nodeName;
124124

125125
element = $( "<div>" ).dialog( { modal: true, uiDialogTitleTagName: "<h2>" } );
126-
wrapper = document.querySelector( ".ui-dialog-title" );
127-
assert.equal( wrapper.tagName, "h2", "The dialog title element is h2" );
126+
nodeName = element.dialog( "widget" ).find( ".ui-dialog-title" ).get(0).nodeName.toLowerCase()
127+
assert.equal (nodeName, "h2", "The dialog title element is h2" );
128128
} );
129129

130130
QUnit.test( "widget method", function( assert ) {

0 commit comments

Comments
 (0)