aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/visual/menu/menubar.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/visual/menu/menubar.js b/tests/visual/menu/menubar.js
index 3f4dba723..40ac2819d 100644
--- a/tests/visual/menu/menubar.js
+++ b/tests/visual/menu/menubar.js
@@ -127,6 +127,10 @@ $.widget("ui.menubar", {
},
_open: function(event, menu) {
+ // on a single-button menubar, ignore reopening the same menu
+ if (this.active && this.active[0] == menu[0]) {
+ return;
+ }
// almost the same as _close above, but don't remove tabIndex
if (this.active) {
this.active.menu("closeAll").hide();