File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ QUnit.test( "aria-modal", function( assert ) {
118
118
} ) ;
119
119
120
120
QUnit . test ( "ui dialog title heading level" , function ( assert ) {
121
- assert . expect ( 7 ) ;
121
+ assert . expect ( 8 ) ;
122
122
123
123
var element , nodeName ;
124
124
@@ -149,6 +149,10 @@ QUnit.test( "ui dialog title heading level", function( assert ) {
149
149
element = $ ( "<div>" ) . dialog ( { modal : true , uiDialogTitleHeadingLevel : 2.3 } ) ;
150
150
nodeName = element . dialog ( "widget" ) . find ( ".ui-dialog-title" ) . get ( 0 ) . nodeName . toLowerCase ( ) ;
151
151
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" ) ;
152
156
} ) ;
153
157
154
158
QUnit . test ( "widget method" , function ( assert ) {
You can’t perform that action at this time.
0 commit comments