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

Unified Diff: chrome/test/data/webui/menu_test.html

Issue 485343004: Fix bookmark manager regression by allowing cr.ui.Menu#findMenuItem_ to return null. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: arv@ review Created 6 years, 4 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
« no previous file with comments | « no previous file | chrome/test/data/webui/webui_resource_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/menu_test.html
diff --git a/chrome/test/data/webui/menu_test.html b/chrome/test/data/webui/menu_test.html
new file mode 100644
index 0000000000000000000000000000000000000000..7e0e9205a06d1766491e64abf1a9c0e387aebfd6
--- /dev/null
+++ b/chrome/test/data/webui/menu_test.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script>
+
+function testHandleMouseOver() {
+ var menu = new cr.ui.Menu;
+
+ var called = false;
+ menu.findMenuItem_ = function() {
+ called = true;
+ return cr.ui.Menu.prototype.findMenuItem_.apply(this, arguments);
+ };
+
+ var over = new MouseEvent('mouseover', {bubbles: true, target: cr.doc.body});
+ assertFalse(called);
+ menu.dispatchEvent(over);
+ assertTrue(called);
+}
+
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | chrome/test/data/webui/webui_resource_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698