File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 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 ) {
123123 "Picker updated as user types into input" ) ;
124124} ) ;
125125
126- // TODO: implement
127126QUnit . 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" ) ;
129140} ) ;
130141
131142QUnit . test ( "mouse" , function ( assert ) {
You can’t perform that action at this time.
0 commit comments