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> |