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

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: tests 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..93d1144d395acc147c008aed5d2d23e0366e4278
--- /dev/null
+++ b/chrome/test/data/webui/menu_test.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script>
+
+function testHandleMouseOver() {
+ var menu = new cr.ui.Menu;
+ cr.ui.decorate(menu, cr.ui.Menu);
arv (Not doing code reviews) 2014/08/20 16:46:47 You should not need to call decorate here
Dan Beam 2014/08/20 17:20:12 https://code.google.com/p/chromium/codesearch#chro
+
+ var over = cr.doc.createEvent('MouseEvent');
+ over.initEvent('mouseover', true, true);
arv (Not doing code reviews) 2014/08/20 16:46:47 This is not really correct but I guess it is good
Dan Beam 2014/08/20 17:20:12 ah, yeah, initMouseEvent... whoops.
+ over.target = document.body;
+ menu.dispatchEvent(over);
+}
+
+</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