aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/menu
diff options
context:
space:
mode:
authorKris Borchers <kris.borchers@gmail.com>2013-10-17 23:07:39 -0500
committerKris Borchers <kris.borchers@gmail.com>2013-10-18 22:14:49 -0500
commit52307ebadbca3f403549140e1d34f08bc07bf8ce (patch)
treea930c7da75c2cf3f749c71812ef1a94469620b04 /tests/unit/menu
parent14065dc23bb453b6c30138f225c9db728dd7e455 (diff)
downloadjquery-ui-52307ebadbca3f403549140e1d34f08bc07bf8ce.tar.gz
jquery-ui-52307ebadbca3f403549140e1d34f08bc07bf8ce.zip
Menu: More precise removal of ui-state-active class for easier CSS overrides. Fixes #9532 - Need a way in Menu to keep ui-state-active class on selected item
Diffstat (limited to 'tests/unit/menu')
-rw-r--r--tests/unit/menu/menu_core.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unit/menu/menu_core.js b/tests/unit/menu/menu_core.js
index 923d2961e..df039c9e4 100644
--- a/tests/unit/menu/menu_core.js
+++ b/tests/unit/menu/menu_core.js
@@ -45,4 +45,17 @@ 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 );
+
+ element.menu( "focus", null, firstChild );
+ firstChild.addClass( "ui-state-active" );
+ setTimeout( function() {
+ ok( firstChild.is( ".ui-state-active" ), "ui-state-active improperly removed" );
+ start();
+ }, 500 );
+});
+
})( jQuery );