Skip to content

Commit 8f583cb

Browse files
committed
add another assertion for the dialog title heading lvl with option foo
1 parent c70786d commit 8f583cb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/unit/dialog/core.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ QUnit.test( "aria-modal", function( assert ) {
118118
} );
119119

120120
QUnit.test( "ui dialog title heading level", function( assert ) {
121-
assert.expect( 7 );
121+
assert.expect( 8 );
122122

123123
var element, nodeName;
124124

@@ -149,6 +149,10 @@ QUnit.test( "ui dialog title heading level", function( assert ) {
149149
element = $( "<div>" ).dialog( { modal: true, uiDialogTitleHeadingLevel: 2.3 } );
150150
nodeName = element.dialog( "widget" ).find( ".ui-dialog-title" ).get( 0 ).nodeName.toLowerCase();
151151
assert.equal( nodeName, "span", "Element wrapping the dialog title is span" );
152+
153+
element = $( "<div>" ).dialog( { modal: true, uiDialogTitleHeadingLevel: "foo" } );
154+
nodeName = element.dialog( "widget" ).find( ".ui-dialog-title" ).get( 0 ).nodeName.toLowerCase();
155+
assert.equal( nodeName, "span", "Element wrapping the dialog title is span" );
152156
} );
153157

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

0 commit comments

Comments
 (0)