File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,20 @@ QUnit.test( "Keyboard handling: input", function( assert ) {
123
123
"Picker updated as user types into input" ) ;
124
124
} ) ;
125
125
126
- // TODO: implement
127
126
QUnit . test ( "ARIA" , function ( assert ) {
128
- assert . expect ( 0 ) ;
127
+ assert . expect ( 4 ) ;
128
+
129
+ var widget = this . element . datepicker ( "widget" ) ,
130
+ id = widget . attr ( "id" ) ;
131
+
132
+ assert . equal ( this . element . attr ( "aria-haspopup" ) , "true" ,
133
+ "Input aria-haspopup attribute" ) ;
134
+ assert . equal ( this . element . attr ( "aria-owns" ) , id , "ARIA owns attribute" ) ;
135
+
136
+ assert . equal ( widget . attr ( "aria-hidden" ) , "true" ,
137
+ "Widget ARIA hidden attribute" ) ;
138
+ assert . equal ( widget . attr ( "aria-expanded" ) , "false" ,
139
+ "Widget ARIA expanded attribute" ) ;
129
140
} ) ;
130
141
131
142
QUnit . test ( "mouse" , function ( assert ) {
You can’t perform that action at this time.
0 commit comments