layout/base/tests/bug602141-3.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/base/tests/bug602141-3.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +<!DOCTYPE HTML><html><head>
     1.5 +  <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     1.6 +</head>
     1.7 +<body>
     1.8 +noteditable<span id="x" contenteditable="true" spellcheck="false">navigable|unnavigable</span><br />
     1.9 +<script>
    1.10 +  // Position the caret after "|"
    1.11 +  var sel = window.getSelection();
    1.12 +  sel.removeAllRanges();
    1.13 +  var range = document.createRange();
    1.14 +  var x = document.getElementById('x');
    1.15 +  var t = x.firstChild;
    1.16 +  range.setStart(t, 10);
    1.17 +  range.setEnd(t, 10);
    1.18 +  sel.addRange(range);
    1.19 +  x.focus();
    1.20 +
    1.21 +  sendKey('RIGHT'); // Try to move the caret one position to the right
    1.22 +</script>
    1.23 +</body>
    1.24 +</html>

mercurial