@@ -48,31 +48,31 @@ test( "accessibility", function () {
48
48
equal ( headers . eq ( 1 ) . attr ( "aria-selected" ) , "true" , "active tab has aria-selected=true" ) ;
49
49
equal ( headers . eq ( 1 ) . next ( ) . attr ( "aria-expanded" ) , "true" , "active tabpanel has aria-expanded=true" ) ;
50
50
equal ( headers . eq ( 1 ) . next ( ) . attr ( "aria-hidden" ) , "false" , "active tabpanel has aria-hidden=false" ) ;
51
- equal ( headers . eq ( 0 ) . attr ( "tabindex" ) , - 1 , "active header has tabindex=-1" ) ;
52
- equal ( headers . eq ( 0 ) . attr ( "aria-selected" ) , "false" , "active tab has aria-selected=false" ) ;
53
- equal ( headers . eq ( 0 ) . next ( ) . attr ( "aria-expanded" ) , "false" , "active tabpanel has aria-expanded=false" ) ;
54
- equal ( headers . eq ( 0 ) . next ( ) . attr ( "aria-hidden" ) , "true" , "active tabpanel has aria-hidden=true" ) ;
55
- equal ( headers . eq ( 2 ) . attr ( "tabindex" ) , - 1 , "active header has tabindex=-1" ) ;
56
- equal ( headers . eq ( 2 ) . attr ( "aria-selected" ) , "false" , "active tab has aria-selected=false" ) ;
57
- equal ( headers . eq ( 2 ) . next ( ) . attr ( "aria-expanded" ) , "false" , "active tabpanel has aria-expanded=false" ) ;
58
- equal ( headers . eq ( 2 ) . next ( ) . attr ( "aria-hidden" ) , "true" , "active tabpanel has aria-hidden=true" ) ;
51
+ equal ( headers . eq ( 0 ) . attr ( "tabindex" ) , - 1 , "inactive header has tabindex=-1" ) ;
52
+ equal ( headers . eq ( 0 ) . attr ( "aria-selected" ) , "false" , "inactive tab has aria-selected=false" ) ;
53
+ equal ( headers . eq ( 0 ) . next ( ) . attr ( "aria-expanded" ) , "false" , "inactive tabpanel has aria-expanded=false" ) ;
54
+ equal ( headers . eq ( 0 ) . next ( ) . attr ( "aria-hidden" ) , "true" , "inactive tabpanel has aria-hidden=true" ) ;
55
+ equal ( headers . eq ( 2 ) . attr ( "tabindex" ) , - 1 , "inactive header has tabindex=-1" ) ;
56
+ equal ( headers . eq ( 2 ) . attr ( "aria-selected" ) , "false" , "inactive tab has aria-selected=false" ) ;
57
+ equal ( headers . eq ( 2 ) . next ( ) . attr ( "aria-expanded" ) , "false" , "inactive tabpanel has aria-expanded=false" ) ;
58
+ equal ( headers . eq ( 2 ) . next ( ) . attr ( "aria-hidden" ) , "true" , "inactive tabpanel has aria-hidden=true" ) ;
59
59
60
60
element . accordion ( "option" , "active" , 0 ) ;
61
61
equal ( headers . eq ( 0 ) . attr ( "tabindex" ) , 0 , "active header has tabindex=0" ) ;
62
62
equal ( headers . eq ( 0 ) . attr ( "aria-selected" ) , "true" , "active tab has aria-selected=true" ) ;
63
63
equal ( headers . eq ( 0 ) . next ( ) . attr ( "aria-expanded" ) , "true" , "active tabpanel has aria-expanded=true" ) ;
64
64
equal ( headers . eq ( 0 ) . next ( ) . attr ( "aria-hidden" ) , "false" , "active tabpanel has aria-hidden=false" ) ;
65
- equal ( headers . eq ( 1 ) . attr ( "tabindex" ) , - 1 , "active header has tabindex=-1" ) ;
66
- equal ( headers . eq ( 1 ) . attr ( "aria-selected" ) , "false" , "active tab has aria-selected=false" ) ;
67
- equal ( headers . eq ( 1 ) . next ( ) . attr ( "aria-expanded" ) , "false" , "active tabpanel has aria-expanded=false" ) ;
68
- equal ( headers . eq ( 1 ) . next ( ) . attr ( "aria-hidden" ) , "true" , "active tabpanel has aria-hidden=true" ) ;
69
- equal ( headers . eq ( 2 ) . attr ( "tabindex" ) , - 1 , "active header has tabindex=-1" ) ;
70
- equal ( headers . eq ( 2 ) . attr ( "aria-selected" ) , "false" , "active tab has aria-selected=false" ) ;
71
- equal ( headers . eq ( 2 ) . next ( ) . attr ( "aria-expanded" ) , "false" , "active tabpanel has aria-expanded=false" ) ;
72
- equal ( headers . eq ( 2 ) . next ( ) . attr ( "aria-hidden" ) , "true" , "active tabpanel has aria-hidden=true" ) ;
65
+ equal ( headers . eq ( 1 ) . attr ( "tabindex" ) , - 1 , "inactive header has tabindex=-1" ) ;
66
+ equal ( headers . eq ( 1 ) . attr ( "aria-selected" ) , "false" , "inactive tab has aria-selected=false" ) ;
67
+ equal ( headers . eq ( 1 ) . next ( ) . attr ( "aria-expanded" ) , "false" , "inactive tabpanel has aria-expanded=false" ) ;
68
+ equal ( headers . eq ( 1 ) . next ( ) . attr ( "aria-hidden" ) , "true" , "inactive tabpanel has aria-hidden=true" ) ;
69
+ equal ( headers . eq ( 2 ) . attr ( "tabindex" ) , - 1 , "inactive header has tabindex=-1" ) ;
70
+ equal ( headers . eq ( 2 ) . attr ( "aria-selected" ) , "false" , "inactive tab has aria-selected=false" ) ;
71
+ equal ( headers . eq ( 2 ) . next ( ) . attr ( "aria-expanded" ) , "false" , "inactive tabpanel has aria-expanded=false" ) ;
72
+ equal ( headers . eq ( 2 ) . next ( ) . attr ( "aria-hidden" ) , "true" , "inactive tabpanel has aria-hidden=true" ) ;
73
73
} ) ;
74
74
75
- asyncTest ( "keybaord support" , function ( ) {
75
+ asyncTest ( "keyboard support" , function ( ) {
76
76
expect ( 13 ) ;
77
77
var element = $ ( "#list1" ) . accordion ( ) ,
78
78
headers = element . find ( ".ui-accordion-header" ) ,
0 commit comments