aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/menu/menu_core.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/menu/menu_core.js')
-rw-r--r--tests/unit/menu/menu_core.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/unit/menu/menu_core.js b/tests/unit/menu/menu_core.js
index df039c9e4..f02f97fca 100644
--- a/tests/unit/menu/menu_core.js
+++ b/tests/unit/menu/menu_core.js
@@ -48,12 +48,13 @@ asyncTest( "#9044: Autofocus issue with dialog opened from menu widget", functio
asyncTest( "#9532: Need a way in Menu to keep ui-state-active class on selected item for Selectmenu", function() {
expect( 1 );
var element = $( "#menu1" ).menu(),
- firstChild = element.children().eq( 0 );
+ firstChild = element.children().eq( 0 ),
+ wrapper = firstChild.children( ".ui-menu-item-wrapper" );
element.menu( "focus", null, firstChild );
- firstChild.addClass( "ui-state-active" );
+ wrapper.addClass( "ui-state-active" );
setTimeout( function() {
- ok( firstChild.is( ".ui-state-active" ), "ui-state-active improperly removed" );
+ ok( wrapper.is( ".ui-state-active" ), "ui-state-active improperly removed" );
start();
}, 500 );
});