@@ -91,31 +91,31 @@ QUnit.test( "aria-modal", function( assert ) {
91
91
wrapper = element . dialog ( "widget" ) ;
92
92
assert . equal ( wrapper . attr ( "aria-modal" ) , "true" , "modal option set to true, aria-modal attribute added" ) ;
93
93
element . dialog ( "option" , "modal" , false ) ;
94
- assert . ok ( ! wrapper . attr ( "aria-modal" ) , "modal option set to false, aria-modal attribute not added" ) ;
94
+ assert . equal ( wrapper . attr ( "aria-modal" ) , undefined , "modal option set to false, aria-modal attribute not added" ) ;
95
95
element . dialog ( "option" , "modal" , null ) ;
96
- assert . ok ( ! wrapper . attr ( "aria-modal" ) , "modal option not set, aria-modal attribute not added" ) ;
96
+ assert . equal ( wrapper . attr ( "aria-modal" ) , undefined , "modal option not set, aria-modal attribute not added" ) ;
97
97
element . dialog ( "option" , "modal" , true ) ;
98
98
assert . equal ( wrapper . attr ( "aria-modal" ) , "true" , "modal option set to true, aria-modal attribute added" ) ;
99
99
element . remove ( ) ;
100
100
101
101
var element = $ ( "<div>" ) . dialog ( { modal : false } ) ,
102
102
wrapper = element . dialog ( "widget" ) ;
103
- assert . ok ( ! wrapper . attr ( "aria-modal" ) , "modal option set to false, aria-modal attribute not added" ) ;
103
+ assert . equal ( wrapper . attr ( "aria-modal" ) , undefined , "modal option set to false, aria-modal attribute not added" ) ;
104
104
element . dialog ( "option" , "modal" , true ) ;
105
105
assert . equal ( wrapper . attr ( "aria-modal" ) , "true" , "modal option set to true, aria-modal attribute added" ) ;
106
106
element . dialog ( "option" , "modal" , null ) ;
107
- assert . ok ( ! wrapper . attr ( "aria-modal" ) , "modal option not set, aria-modal attribute not added" ) ;
107
+ assert . equal ( wrapper . attr ( "aria-modal" ) , undefined , "modal option not set, aria-modal attribute not added" ) ;
108
108
element . dialog ( "option" , "modal" , false ) ;
109
- assert . ok ( ! wrapper . attr ( "aria-modal" ) , "modal option set to false, aria-modal attribute not added" ) ;
109
+ assert . equal ( wrapper . attr ( "aria-modal" ) , undefined , "modal option set to false, aria-modal attribute not added" ) ;
110
110
element . remove ( ) ;
111
111
112
112
var element = $ ( "<div>" ) . dialog ( ) ,
113
113
wrapper = element . dialog ( "widget" ) ;
114
- assert . ok ( ! wrapper . attr ( "aria-modal" ) , "modal option not set, aria-modal attribute not added" ) ;
114
+ assert . equal ( wrapper . attr ( "aria-modal" ) , undefined , "modal option not set, aria-modal attribute not added" ) ;
115
115
element . dialog ( "option" , "modal" , true ) ;
116
116
assert . equal ( wrapper . attr ( "aria-modal" ) , "true" , "modal option set to true, aria-modal attribute added" ) ;
117
117
element . dialog ( "option" , "modal" , false ) ;
118
- assert . ok ( ! wrapper . attr ( "aria-modal" ) , "modal option set to false, aria-modal attribute not added" ) ;
118
+ assert . equal ( wrapper . attr ( "aria-modal" ) , undefined , "modal option set to false, aria-modal attribute not added" ) ;
119
119
element . dialog ( "option" , "modal" , null ) ;
120
120
assert . equal ( wrapper . attr ( "aria-modal" ) , null , "modal option not set, aria-modal attribute not added" ) ;
121
121
element . remove ( ) ;
0 commit comments