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>
10 if (window.layoutTestController) {
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 layoutTestController.dumpAsText();