[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.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
10         // Send caret to bottom of textarea
11         ta.focus();
12         ta.setSelectionRange(ta.value.length, ta.value.length);
13         ta.blur();
14
15         ta.focus();
16         ta.blur();
17         if (ta.scrollTop != 0)
18             document.getElementById('res').innerHTML = "Test Passed";
19     }
20 </script>
21 </head>
22 <body onload="test()">
23 This tests that we don't scroll back to the top when leaving a textarea
24 <br>
25 <textarea id="ta">
26 1
27 2
28 3
29 4
30 5
31 </textarea>
32 <div id="res">Test Failed</div>
33 </body>
34 </html>