blob: b77e6c48f65a52753198164b52bca9c17c77846c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<html>
<head>
<script>
function runTest() {
window.testRunner.dumpAsText();
var input = document.getElementById('i');
eventSender.mouseMoveTo(input.offsetLeft + input.offsetWidth / 2, input.offsetTop + input.offsetHeight / 2);
eventSender.mouseDown();
eventSender.mouseUp();
}
window.onload = function() {
var input = document.getElementById('i');
input.onfocus = function(e) {
document.body.innerHTML = 'PASS';
}
if (window.testRunner)
runTest();
}
</script>
</head>
<body>
<input id="i" readonly>
</body>
</html>
|