Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / input-appearance-preventDefault.html
blob8f03f32bec80af3455d8c71c08e2d75c19849695
1 <html>
2 <head>
3 <script>
4 function test()
5 {
6 if (window.testRunner) {
7 eventSender.mouseMoveTo(25, 55);
8 eventSender.mouseDown();
9 eventSender.mouseUp();
13 function prevDefaultForEvent( evt ) {
14 log(evt.type + " on target " + evt.target);
15 evt.preventDefault();
18 function log(text) {
19 document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "<br>" + text;
21 </script>
22 </head>
23 <body onload="test()">
24 <br>
25 This tests that preventDefault called onmousedown will prevent a caret from being placed in the text field.
26 <input id="tf1" style="-khtml-appearance: textfield; position: absolute; top: 50; left: 10;" onmousedown="prevDefaultForEvent(event)" value="No caret should be here"></input>
27 <div id="result" style="position: absolute; top: 70; left: 10;">
28 </div>
29 </body>
30 </html>