2 <p>This test checks that the context menu is shown over a simple non-editable text.
</p>
3 <div id=
"text">Lorem ipsum
</div>
4 <div id=
"result">FAIL
</div>
10 testRunner
.dumpAsText();
12 var text
= document
.getElementById("text");
14 var x
= text
.offsetParent
.offsetLeft
+ text
.offsetLeft
+ 4;
15 var y
= text
.offsetParent
.offsetTop
+ text
.offsetTop
+ text
.offsetHeight
/ 2;
17 if (!window
.eventSender
)
20 eventSender
.mouseMoveTo(x
, y
);
22 var items
= eventSender
.contextClick();
25 document
.getElementById('result').innerHTML
= 'SUCCESS';
27 document
.getElementById('result').innerHTML
= 'FAILURE: No context menu';