Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / disabled-mousedown-event.html
blob05ed92c44f23de894fb4781529226e5828e60fd9
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>This test ensures WebKit fires mousedown event on a disabled input element.</p>
5 <span><input id="test" type="text" disabled></span>
6 <div id="log">FAIL</div>
7 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
12 function clickOn(element)
14 var x = element.offsetLeft + element.offsetWidth / 2;
15 var y = element.offsetTop + element.offsetHeight / 2;
16 eventSender.mouseMoveTo(x, y);
17 eventSender.mouseDown();
18 eventSender.mouseUp();
21 var test = document.getElementById('test');
22 test.parentNode.addEventListener('mousedown', function () { document.getElementById('log').textContent = 'PASS'; }, false);
24 if (window.eventSender)
25 clickOn(test);
27 </script>
28 </body>
29 </html>