blob: 5efb9e824b8db843d87f02a91980af3439ed7df2 [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->
<html>
<meta name="viewport" content="width=800">
<head>
<style>
body {
font-family: system-ui;
line-height: 1.4;
padding: 10px 10px;
width: 500px;
margin: 0;
}
</style>
<script src="../../../../resources/ui-helper.js"></script>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
async function runTest()
{
document.getElementById("target").addEventListener("click", handleClick, false);
if (!window.testRunner)
return;
await UIHelper.humanSpeedDoubleTapAt(30, 30);
}
function handleClick(event)
{
document.getElementById("target").textContent = "PASS: Click fired on element with handler.";
testRunner.notifyDone();
}
</script>
<style>
body {
margin: 0;
}
#target {
height: 100px;
width: 100px;
background-color: silver;
}
</style>
</head>
<body onload="runTest()">
<div id="target"></div>
<div id="description">This document doesn't have fast clicks because
it sets a viewport width. It has a significant zoom since the viewport
width is significantly bigger than the body width. However, since fast click everywhere
is set to true, double tapping on the rectangle above should send a click event.</div>
</body>
</html>