Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / context-onmousedown-event.html
blob811250411b0c8b99a53c94ee18dba972fc212e28
1 <html>
2 <body>
3 <div id="box" onmousedown="document.getElementById('result').appendChild(document.createTextNode('PASS'));" style="border:1px dotted red">This tests to make sure that right clicking also sends a onmousedown event.</div>
4 <p id='result'></p>
5 </body>
6 </html>
9 <script>
10 if (window.testRunner) {
11 var box, x, y;
12 box = document.getElementById("box");
13 x = box.offsetParent.offsetLeft + box.offsetLeft + box.offsetWidth / 2;
14 y = box.offsetParent.offsetTop + box.offsetTop + box.offsetHeight / 2;
15 eventSender.mouseMoveTo(x, y);
16 eventSender.contextClick();
17 testRunner.dumpAsText();
20 </script>