OLD | NEW |
1 <script> | 1 <script> |
2 function test() | 2 function test() |
3 { | 3 { |
4 if (window.testRunner) | 4 if (window.testRunner) |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 var select = document.getElementById("select"); | 6 var select = document.getElementById("select"); |
7 var rect = select.getBoundingClientRect(); | 7 var rect = select.getBoundingClientRect(); |
8 var x = rect.left + 10; | 8 var x = rect.left + 10; |
9 var y = rect.top + 10; | 9 var y = rect.top + 10; |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 <body onload="test()"> | 21 <body onload="test()"> |
22 <p>The select below should be focused because we dispatched a mouse down event t
o it.</p> | 22 <p>The select below should be focused because we dispatched a mouse down event t
o it.</p> |
23 <p id="result">FAIL</p> | 23 <p id="result">FAIL</p> |
24 <select id="select" size="4" onfocus="reportFocus()"> | 24 <select id="select" size="4" onfocus="reportFocus()"> |
25 <option>one</option> | 25 <option>one</option> |
26 <option>two</option> | 26 <option>two</option> |
27 <option>three</option> | 27 <option>three</option> |
28 <option>four</option> | 28 <option>four</option> |
29 </select> | 29 </select> |
30 </body> | 30 </body> |
OLD | NEW |