@@ -28,7 +28,7 @@ test( "ui-accordion-heading class added to headers anchor", function() {
2828} ) ;
2929
3030test ( "accessibility" , function ( ) {
31- expect ( 9 ) ;
31+ expect ( 13 ) ;
3232 var ac = $ ( "#list1" ) . accordion ( ) . accordion ( "option" , "active" , 1 ) ;
3333 var headers = $ ( ".ui-accordion-header" ) ;
3434
@@ -39,9 +39,13 @@ test( "accessibility", function () {
3939 equals ( headers . next ( ) . attr ( "role" ) , "tabpanel" , "tabpanel roles" ) ;
4040 equals ( headers . eq ( 1 ) . attr ( "aria-expanded" ) , "true" , "active tab has aria-expanded" ) ;
4141 equals ( headers . eq ( 0 ) . attr ( "aria-expanded" ) , "false" , "inactive tab has aria-expanded" ) ;
42+ equals ( headers . eq ( 1 ) . attr ( "aria-selected" ) , "true" , "active tab has aria-selected" ) ;
43+ equals ( headers . eq ( 0 ) . attr ( "aria-selected" ) , "false" , "inactive tab has aria-selected" ) ;
4244 ac . accordion ( "option" , "active" , 0 ) ;
4345 equals ( headers . eq ( 0 ) . attr ( "aria-expanded" ) , "true" , "newly active tab has aria-expanded" ) ;
4446 equals ( headers . eq ( 1 ) . attr ( "aria-expanded" ) , "false" , "newly inactive tab has aria-expanded" ) ;
47+ equals ( headers . eq ( 0 ) . attr ( "aria-selected" ) , "true" , "active tab has aria-selected" ) ;
48+ equals ( headers . eq ( 1 ) . attr ( "aria-selected" ) , "false" , "inactive tab has aria-selected" ) ;
4549} ) ;
4650
4751} ( jQuery ) ) ;
0 commit comments