layout/reftests/bugs/600803-1-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/600803-1-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +  <body onload="onLoad()">
     1.7 +    <textarea></textarea>
     1.8 +    <div id="start"></div>
     1.9 +    <div id="end"></div>
    1.10 +    <script>
    1.11 +      function onLoad() {
    1.12 +        var t = document.querySelector("textarea");
    1.13 +        t.value = "Xaa\nbbb";
    1.14 +        t.value = "aaa\nbbb\n";
    1.15 +        t.value += "X";
    1.16 +        document.getElementById("start").textContent = t.selectionStart;
    1.17 +        document.getElementById("end").textContent = t.selectionEnd;
    1.18 +      }
    1.19 +    </script>
    1.20 +  </body>
    1.21 +</html>

mercurial