blob: 7ae06b02aff5fd829ee3775e3bd3f4548f3ad9a9 [file] [log] [blame] [edit]
<html>
<head>
<script>
async function runTest() {
window.testRunner.dumpAsText();
var input = document.getElementById('i');
await eventSender.asyncMouseMoveTo(input.offsetLeft + input.offsetWidth / 2, input.offsetTop + input.offsetHeight / 2);
await eventSender.asyncMouseDown();
await eventSender.asyncMouseUp();
}
window.onload = async function() {
var input = document.getElementById('i');
input.onfocus = function(e) {
document.body.innerHTML = 'PASS';
}
if (window.testRunner) {
testRunner.waitUntilDone();
await runTest();
testRunner.notifyDone();
}
}
</script>
</head>
<body>
<input id="i" readonly>
</body>
</html>