Skip to content

Commit 06372cd

Browse files
committed
Selectmenu: follow-up to 'split core unit test for state synchronization in keydown and click'
1 parent 83f4249 commit 06372cd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/unit/selectmenu/selectmenu_core.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ $.each([
5757
links = menu.find("li.ui-menu-item a");
5858

5959
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" );
6464
});
6565

6666
test("state synchronization - after click - " + settings.type, function () {
@@ -77,10 +77,10 @@ $.each([
7777

7878
button.simulate( "click" );
7979
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" );
8484
});
8585
});
8686

0 commit comments

Comments
 (0)