3 <input type=
"text" id=
"text" value=
"some sample text">
8 // This test checks that if the user right clicks on selected text,
9 // the selected text doesn't change or get deselected.
10 var input
= document
.getElementById("text");
11 input
.selectionStart
= 5;
12 input
.selectionEnd
= 15;
14 if (window
.testRunner
) {
16 x
= input
.offsetParent
.offsetLeft
+ input
.offsetLeft
+ input
.offsetWidth
/ 2;
17 y
= input
.offsetParent
.offsetTop
+ input
.offsetTop
+ input
.offsetHeight
/ 2;
18 eventSender
.mouseMoveTo(x
, y
);
19 eventSender
.contextClick();