Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / test / data / webui / menu_test.html
blob7e0e9205a06d1766491e64abf1a9c0e387aebfd6
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script>
6 function testHandleMouseOver() {
7 var menu = new cr.ui.Menu;
9 var called = false;
10 menu.findMenuItem_ = function() {
11 called = true;
12 return cr.ui.Menu.prototype.findMenuItem_.apply(this, arguments);
15 var over = new MouseEvent('mouseover', {bubbles: true, target: cr.doc.body});
16 assertFalse(called);
17 menu.dispatchEvent(over);
18 assertTrue(called);
21 </script>
22 </body>
23 </html>