Skip media source tests since the feature is not enabled on Windows.
[WebKit-https.git] / LayoutTests / fast / forms / input-appearance-preventDefault.html
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();
10     }
11 }
12
13 function prevDefaultForEvent( evt ) {
14     log(evt.type + " on target " + evt.target);
15     evt.preventDefault();
16 }
17
18 function log(text) {
19     document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "<br>" + text;
20 }
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>
31