@@ -279,9 +279,9 @@ test('setSelectedIndex calls addClass and addAttribute only', () => {
279
279
td . verify ( mockAdapter . removeClassFromElementAtIndex (
280
280
td . matchers . isA ( Number ) , cssClasses . MENU_SELECTED_LIST_ITEM ) , { times : 0 } ) ;
281
281
td . verify ( mockAdapter . removeAttributeFromElementAtIndex ( td . matchers . isA ( Number ) ,
282
- strings . ARIA_SELECTED_ATTR ) , { times : 0 } ) ;
282
+ strings . ARIA_CHECKED_ATTR ) , { times : 0 } ) ;
283
283
td . verify ( mockAdapter . addClassToElementAtIndex ( 0 , cssClasses . MENU_SELECTED_LIST_ITEM ) , { times : 1 } ) ;
284
- td . verify ( mockAdapter . addAttributeToElementAtIndex ( 0 , strings . ARIA_SELECTED_ATTR , 'true' ) , { times : 1 } ) ;
284
+ td . verify ( mockAdapter . addAttributeToElementAtIndex ( 0 , strings . ARIA_CHECKED_ATTR , 'true' ) , { times : 1 } ) ;
285
285
} ) ;
286
286
287
287
test ( 'setSelectedIndex remove class and attribute, and adds class and attribute to newly selected item' , ( ) => {
@@ -295,9 +295,9 @@ test('setSelectedIndex remove class and attribute, and adds class and attribute
295
295
foundation . setSelectedIndex ( 0 ) ;
296
296
td . verify ( mockAdapter . removeClassFromElementAtIndex ( 1 , cssClasses . MENU_SELECTED_LIST_ITEM ) , { times : 1 } ) ;
297
297
td . verify (
298
- mockAdapter . removeAttributeFromElementAtIndex ( 1 , strings . ARIA_SELECTED_ATTR ) , { times : 1 } ) ;
298
+ mockAdapter . removeAttributeFromElementAtIndex ( 1 , strings . ARIA_CHECKED_ATTR ) , { times : 1 } ) ;
299
299
td . verify ( mockAdapter . addClassToElementAtIndex ( 0 , cssClasses . MENU_SELECTED_LIST_ITEM ) , { times : 1 } ) ;
300
- td . verify ( mockAdapter . addAttributeToElementAtIndex ( 0 , strings . ARIA_SELECTED_ATTR , 'true' ) , { times : 1 } ) ;
300
+ td . verify ( mockAdapter . addAttributeToElementAtIndex ( 0 , strings . ARIA_CHECKED_ATTR , 'true' ) , { times : 1 } ) ;
301
301
} ) ;
302
302
303
303
test ( 'setSelectedIndex throws error if index is not in range' , ( ) => {
0 commit comments