editor/reftests/caret_on_textarea_lastline-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/reftests/caret_on_textarea_lastline-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,13 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<body onload="loaded()">
     1.7 +<script>
     1.8 +  function loaded() {
     1.9 +    var t = document.querySelector('textarea');
    1.10 +    t.selectionStart = t.selectionEnd = t.value.length;
    1.11 +    t.focus();
    1.12 +  }
    1.13 +</script>
    1.14 +<textarea>foo</textarea>
    1.15 +</body>
    1.16 +</html>

mercurial