5 if (window.layoutTestController)
6 layoutTestController.dumpAsText();
8 var ta = document.getElementById('ta');
10 // Send caret to bottom of textarea
12 ta.setSelectionRange(ta.value.length, ta.value.length);
17 if (ta.scrollTop != 0)
18 document.getElementById('res').innerHTML = "Test Passed";
22 <body onload="test()">
23 This tests that we don't scroll back to the top when leaving a textarea
32 <div id="res">Test Failed</div>