@@ -87,26 +87,28 @@ QUnit.test( "ARIA", function( assert ) {
87
87
QUnit . test ( "aria-modal" , function ( assert ) {
88
88
assert . expect ( 9 ) ;
89
89
90
- var element = $ ( "<div>" ) . dialog ( { modal : true } ) ,
91
- wrapper = element . dialog ( "widget" ) ;
90
+ var element , wrapper ;
91
+
92
+ element = $ ( "<div>" ) . dialog ( { modal : true } ) ;
93
+ wrapper = element . dialog ( "widget" ) ;
92
94
assert . equal ( wrapper . attr ( "aria-modal" ) , "true" , "modal option set to true, aria-modal attribute added" ) ;
93
95
element . dialog ( "option" , "modal" , false ) ;
94
96
assert . equal ( wrapper . attr ( "aria-modal" ) , undefined , "modal option set to false, aria-modal attribute not added" ) ;
95
97
element . dialog ( "option" , "modal" , true ) ;
96
98
assert . equal ( wrapper . attr ( "aria-modal" ) , "true" , "modal option set to true, aria-modal attribute added" ) ;
97
99
element . remove ( ) ;
98
100
99
- var element = $ ( "<div>" ) . dialog ( { modal : false } ) ,
100
- wrapper = element . dialog ( "widget" ) ;
101
+ element = $ ( "<div>" ) . dialog ( { modal : false } ) ;
102
+ wrapper = element . dialog ( "widget" ) ;
101
103
assert . equal ( wrapper . attr ( "aria-modal" ) , undefined , "modal option set to false, aria-modal attribute not added" ) ;
102
104
element . dialog ( "option" , "modal" , true ) ;
103
105
assert . equal ( wrapper . attr ( "aria-modal" ) , "true" , "modal option set to true, aria-modal attribute added" ) ;
104
106
element . dialog ( "option" , "modal" , false ) ;
105
107
assert . equal ( wrapper . attr ( "aria-modal" ) , undefined , "modal option set to false, aria-modal attribute not added" ) ;
106
108
element . remove ( ) ;
107
109
108
- var element = $ ( "<div>" ) . dialog ( ) ,
109
- wrapper = element . dialog ( "widget" ) ;
110
+ element = $ ( "<div>" ) . dialog ( ) ;
111
+ wrapper = element . dialog ( "widget" ) ;
110
112
assert . equal ( wrapper . attr ( "aria-modal" ) , undefined , "modal option not set, aria-modal attribute not added" ) ;
111
113
element . dialog ( "option" , "modal" , true ) ;
112
114
assert . equal ( wrapper . attr ( "aria-modal" ) , "true" , "modal option set to true, aria-modal attribute added" ) ;
0 commit comments