@@ -57,10 +57,10 @@ $.each([
57
57
links = menu . find ( "li.ui-menu-item a" ) ;
58
58
59
59
button . simulate ( "keydown" , { keyCode : $ . ui . keyCode . DOWN } ) ;
60
- equal ( menu . attr ( "aria-activedescendant" ) , links . eq ( element [ 0 ] . selectedIndex ) . attr ( "id" ) , "after keydown menu aria-activedescendant" ) ;
61
- equal ( links . eq ( element [ 0 ] . selectedIndex ) . attr ( "aria-selected" ) , "true" , "after keydown selected menu link aria-selected" ) ;
62
- equal ( element . find ( "option:selected" ) . val ( ) , selected . next ( "option" ) . val ( ) , "after keydown original select state" ) ;
63
- equal ( button . text ( ) , selected . next ( "option" ) . text ( ) , "after keydown button text" ) ;
60
+ equal ( menu . attr ( "aria-activedescendant" ) , links . eq ( element [ 0 ] . selectedIndex ) . attr ( "id" ) , "menu aria-activedescendant" ) ;
61
+ equal ( links . eq ( element [ 0 ] . selectedIndex ) . attr ( "aria-selected" ) , "true" , "selected menu link aria-selected" ) ;
62
+ equal ( element . find ( "option:selected" ) . val ( ) , selected . next ( "option" ) . val ( ) , "original select state" ) ;
63
+ equal ( button . text ( ) , selected . next ( "option" ) . text ( ) , "button text" ) ;
64
64
} ) ;
65
65
66
66
test ( "state synchronization - after click - " + settings . type , function ( ) {
@@ -77,10 +77,10 @@ $.each([
77
77
78
78
button . simulate ( "click" ) ;
79
79
menu . find ( "a" ) . last ( ) . simulate ( "mouseover" ) . trigger ( "click" ) ;
80
- equal ( menu . attr ( "aria-activedescendant" ) , links . eq ( element [ 0 ] . selectedIndex ) . attr ( "id" ) , "after click menu aria-activedescendant" ) ;
81
- equal ( links . eq ( element [ 0 ] . selectedIndex ) . attr ( "aria-selected" ) , "true" , "after click selected menu link aria-selected" ) ;
82
- equal ( element . find ( "option:selected" ) . val ( ) , element . find ( "option" ) . last ( ) . val ( ) , "after click original select state" ) ;
83
- equal ( button . text ( ) , element . find ( "option" ) . last ( ) . text ( ) , "after click button text" ) ;
80
+ equal ( menu . attr ( "aria-activedescendant" ) , links . eq ( element [ 0 ] . selectedIndex ) . attr ( "id" ) , "menu aria-activedescendant" ) ;
81
+ equal ( links . eq ( element [ 0 ] . selectedIndex ) . attr ( "aria-selected" ) , "true" , "selected menu link aria-selected" ) ;
82
+ equal ( element . find ( "option:selected" ) . val ( ) , element . find ( "option" ) . last ( ) . val ( ) , "original select state" ) ;
83
+ equal ( button . text ( ) , element . find ( "option" ) . last ( ) . text ( ) , "button text" ) ;
84
84
} ) ;
85
85
} ) ;
86
86
0 commit comments