From 5fa6821897a739b3fc22f9cf1e75d40ac4895827 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Fri, 18 May 2012 15:15:00 +0200 Subject: [PATCH] Menu: Update default visual test, add headings and fix disable/destroy toggle buttons --- tests/visual/menu/menu.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tests/visual/menu/menu.html b/tests/visual/menu/menu.html index 548f25db4..ba4017e65 100644 --- a/tests/visual/menu/menu.html +++ b/tests/visual/menu/menu.html @@ -40,16 +40,17 @@ }); } - var menus = $("#menu1, #menu2, #menu3, .menu4"); + var menus = $("#menu1, #menu2, #menu3, .menu4"), + all = menus.add("#menu5, #menu6"); create(); $("#toggle-destroy").toggle(function() { - menus.menu("destroy"); + all.menu("destroy"); }, create); $("#toggle-disable").toggle(function() { - menus.menu("disable"); + all.menu("disable"); }, function() { - menus.menu("enable"); + all.menu("enable"); }); }); @@ -64,6 +65,7 @@ +

Default inline menu

+

Inline with disabled items and submenus

+

Menu with icons

+

Long menu with scroll overflow, to test menu's scroll-on-keypress behaviour

+

Menu with custom markup

+

Menu with custom markup, multi-line items