1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../../../resources/js-test.js"></script>
7 <p>This test checks that the context menu is not shown on long tap gesture without a long press.
</p>
8 <div id=
"text">Testing
</div>
9 <div id=
"result">PASS
</div>
13 if (window
.testRunner
)
14 testRunner
.dumpAsText();
16 document
.oncontextmenu = function() { document
.getElementById("result").innerHTML
= "FAIL"; }
18 var text
= document
.getElementById("text");
20 var x
= text
.offsetParent
.offsetLeft
+ text
.offsetLeft
+ 4;
21 var y
= text
.offsetParent
.offsetTop
+ text
.offsetTop
+ text
.offsetHeight
/ 2;
23 if (!window
.eventSender
)
25 if (eventSender
.gestureLongTap
) {
26 eventSender
.gestureLongTap(x
, y
);
28 debug("gestureLongTap not implemented by this platform");