blob: e98116ed84a6d351e1395317fa56a043a4c92f4d [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../fast/js/resources/js-test-pre.js"></script>
<script>
var clicked = false;
function handleClicked()
{
clicked = true;
}
function test()
{
description("This test passes if it doesn't crash and the context menu is shown for the search input");
if (!window.eventSender)
return;
var target = document.getElementById("target");
var clickX = target.offsetLeft + target.offsetWidth - 2;
var clickY = target.offsetTop + target.offsetHeight / 2;
eventSender.mouseMoveTo(clickX, clickY);
eventSender.contextClick();
shouldBe("clicked", "true");
}
</script>
</head>
<body onload="test();">
<p id="description"></p>
<div id="console"></div>
<input id="target" type="search" oncontextmenu="handleClicked()">
<script src="../../fast/js/resources/js-test-post.js"></script>
</body>
</html>