Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / input-readonly-focus.html
blobb77e6c48f65a52753198164b52bca9c17c77846c
1 <html>
2 <head>
3 <script>
4 function runTest() {
5 window.testRunner.dumpAsText();
7 var input = document.getElementById('i');
8 eventSender.mouseMoveTo(input.offsetLeft + input.offsetWidth / 2, input.offsetTop + input.offsetHeight / 2);
9 eventSender.mouseDown();
10 eventSender.mouseUp();
12 window.onload = function() {
13 var input = document.getElementById('i');
14 input.onfocus = function(e) {
15 document.body.innerHTML = 'PASS';
17 if (window.testRunner)
18 runTest();
20 </script>
21 </head>
22 <body>
23 <input id="i" readonly>
24 </body>
25 </html>