LayoutTests:
[WebKit-https.git] / LayoutTests / fast / forms / textarea-no-scroll-on-blur.html
1 <html>
2 <head>
3 <script>
4     function test() {
5         if (window.layoutTestController)
6             layoutTestController.dumpAsText();
7             
8         var ta = document.getElementById('ta');
9         ta.focus();
10         ta.blur();
11         if (ta.scrollTop != 0)
12             document.getElementById('res').innerHTML = "Test Passed";
13     }
14 </script>
15 </head>
16 <body onload="test()">
17 This tests that we don't scroll back to the top when leaving a textarea
18 <br>
19 <textarea id="ta">
20 1
21 2
22 3
23 4
24 5
25 </textarea>
26 <div id="res">Test Failed</div>
27 </body>
28 </html>