layout/reftests/selection/dynamic-text-1a.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/selection/dynamic-text-1a.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html class="reftest-wait">
     1.6 +<head>
     1.7 +<body style="white-space:pre"> 00 
     1.8 + BC 
     1.9 + FG 
    1.10 + JK 
    1.11 +<script>
    1.12 +document.body.offsetTop;
    1.13 +var t = document.body.firstChild;
    1.14 +var sel = window.getSelection();
    1.15 +sel.collapse(t, 11);
    1.16 +sel.extend(t, 13);
    1.17 +
    1.18 +function doTest() {
    1.19 +  t.replaceData(0, 5, '');
    1.20 +  document.documentElement.removeAttribute('class');
    1.21 +}
    1.22 +document.addEventListener("MozReftestInvalidate", doTest, false);
    1.23 +</script>
    1.24 +</body>
    1.25 +</html>

mercurial