| OLD | NEW |
| 1 <p> | 1 <p> |
| 2 Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=13500">http://bu
gs.webkit.org/show_bug.cgi?id=13500</a> | 2 Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=13500">http://bu
gs.webkit.org/show_bug.cgi?id=13500</a> |
| 3 REGRESSION: Listbox scrollbar does not reflect actual scrolled position when
selected option is added after layout</i>. | 3 REGRESSION: Listbox scrollbar does not reflect actual scrolled position when
selected option is added after layout</i>. |
| 4 </p> | 4 </p> |
| 5 <p> | 5 <p> |
| 6 The list box should be scrolled all the way down, showing the selected optio
n | 6 The list box should be scrolled all the way down, showing the selected optio
n |
| 7 “Seven”. The scroller should be at the bottom of the scroll bar | 7 “Seven”. The scroller should be at the bottom of the scroll bar |
| 8 to reflect this. | 8 to reflect this. |
| 9 </p> | 9 </p> |
| 10 <select size="4"> | 10 <select size="4"> |
| 11 <option>One</option> | 11 <option>One</option> |
| 12 <option>Two</option> | 12 <option>Two</option> |
| 13 <option>Three</option> | 13 <option>Three</option> |
| 14 <option>Four</option> | 14 <option>Four</option> |
| 15 <script> | 15 <script> |
| 16 document.body.offsetTop; | 16 document.body.offsetTop; |
| 17 testRunner.waitUntilDone(); | 17 testRunner.waitUntilDone(); |
| 18 // The selection is updated as a separate task, so wait for two frames |
| 19 // to make sure it has run. |
| 18 window.requestAnimationFrame(function() { | 20 window.requestAnimationFrame(function() { |
| 19 testRunner.notifyDone(); | 21 window.requestAnimationFrame(function() { |
| 22 testRunner.notifyDone(); |
| 23 }); |
| 20 }); | 24 }); |
| 21 </script> | 25 </script> |
| 22 <option>Five</option> | 26 <option>Five</option> |
| 23 <option>Six</option> | 27 <option>Six</option> |
| 24 <option selected>Seven</option> | 28 <option selected>Seven</option> |
| 25 </select> | 29 </select> |
| OLD | NEW |