We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c22ba5b commit 564b793Copy full SHA for 564b793
tests/unit/dialog/core.js
@@ -117,6 +117,16 @@ QUnit.test( "aria-modal", function( assert ) {
117
element.remove();
118
} );
119
120
+QUnit.test( "ui dialog title tagname", function( assert ) {
121
+ assert.expect( 1 );
122
+
123
+ var element, wrapper;
124
125
+ 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" );
128
+} );
129
130
QUnit.test( "widget method", function( assert ) {
131
assert.expect( 1 );
132
var dialog = $( "<div>" ).appendTo( "#qunit-fixture" ).dialog();
0 commit comments