Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Unified Diff: remoting/webapp/unittests/menu_button_unittest.js

Issue 592793003: Make pop-up menus more easily dismissable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add click-trap to the container element, not the body Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/webapp/unittests/menu_button_unittest.js
diff --git a/remoting/webapp/unittests/menu_button_unittest.js b/remoting/webapp/unittests/menu_button_unittest.js
index cba90fbc384e502e5bed94dba59ce823d33835bc..48728f8a0f47948e546fcc1f0a756e21273168f0 100644
--- a/remoting/webapp/unittests/menu_button_unittest.js
+++ b/remoting/webapp/unittests/menu_button_unittest.js
@@ -47,15 +47,12 @@ test('should dismiss when <body> is clicked', function() {
ok(menu.offsetWidth == 0 && menu.offsetHeight == 0);
});
-/*
-TODO(jamiewalch): Reinstate this once MenuButton is fixed properly.
test('should dismiss when button is clicked', function() {
var menu = menuButton.menu();
menuButton.button().click();
menuButton.button().click();
ok(menu.offsetWidth == 0 && menu.offsetHeight == 0);
});
-*/
test('should dismiss when menu item is clicked', function() {
var menu = menuButton.menu();

Powered by Google App Engine
This is Rietveld 408576698