Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / input-select-on-click.html
blob2c60223a7d46b0378975c1ef0db1a1806ae4027d
1 <html>
2 <head>
3 <script>
4 function test() {
5 if (window.testRunner)
6 testRunner.dumpAsText();
7 var tf = document.getElementById('tf');
8 var x = tf.offsetLeft + tf.offsetWidth / 2;
9 var y = tf.offsetTop + tf.offsetHeight / 2;
10 if (window.eventSender) {
11 eventSender.mouseMoveTo(x, y);
12 eventSender.mouseDown();
13 eventSender.mouseUp();
15 if (tf.selectionStart == 0 && tf.selectionEnd == 10) { // ;
16 document.getElementById("result").innerHTML = "PASS";
17 } else {
18 document.getElementById("result").innerHTML = "FAIL: selection start is "
19 + tf.selectionStart + " and end is " + tf.selectionEnd + ".";
22 </script>
23 </head>
24 <body onload="test()">
25 <p>Tests behavior of code that calls select() inside an onclick handler. The entire field should end up selected.</p>
26 <p>The test runs only under DumpRenderTree with eventSender; if you test by hand the test result below will say FAIL.</p>
27 <p><input type="text" id="tf" onclick="this.select()" value="input text"></input></p>
28 <p id="result">TEST NOT RUN YET</p>
29 </body>
30 </html>