aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/selectmenu
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2015-01-19 17:00:57 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2015-01-21 18:07:43 +0100
commit0bbd1569182bc03e8dc4f5f8aa203e8edbe15f99 (patch)
tree1328997e98da34765e5c468989edf467601e511c /tests/unit/selectmenu
parent7137c90b1883bc19f23678582170e9df981a084d (diff)
downloadjquery-ui-0bbd1569182bc03e8dc4f5f8aa203e8edbe15f99.tar.gz
jquery-ui-0bbd1569182bc03e8dc4f5f8aa203e8edbe15f99.zip
Menu: Use ui-state-active consistently
So far we were using ui-state-active on active parent items, ui-state-focus on active child items. The theme update highlighted the visual inconsistency. With this change, only ui-state-active is used. Fixes #10692
Diffstat (limited to 'tests/unit/selectmenu')
-rw-r--r--tests/unit/selectmenu/selectmenu_core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/selectmenu/selectmenu_core.js b/tests/unit/selectmenu/selectmenu_core.js
index b4efb80f2..3b5472996 100644
--- a/tests/unit/selectmenu/selectmenu_core.js
+++ b/tests/unit/selectmenu/selectmenu_core.js
@@ -273,7 +273,7 @@ $.each([
});
function checkItemClasses() {
- focusedItem = menu.find( "li .ui-state-focus" );
+ focusedItem = menu.find( ".ui-menu-item-wrapper.ui-state-active" );
equal( focusedItem.length, 1, "only one item has ui-state-focus class" );
equal( focusedItem.attr( "id" ), wrappers.eq( element[ 0 ].selectedIndex ).attr( "id" ),
"selected item has ui-state-focus class" );