content/base/crashtests/336715-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/base/crashtests/336715-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     1.5 +<head>
     1.6 +<script>
     1.7 +<![CDATA[
     1.8 +
     1.9 +function funn()
    1.10 +{
    1.11 +  var q = document.getElementById("q");
    1.12 +
    1.13 +  var start1 = document.getElementById("start1");
    1.14 +  var end1 = document.getElementById("end1");
    1.15 +
    1.16 +  var start2 = q; // div
    1.17 +  var end2 = q.previousSibling; // text node
    1.18 +
    1.19 +  var r = document.createRange();
    1.20 +  r.setStart(start1, 0);
    1.21 +  r.setEnd(end1, 0);
    1.22 +  r.deleteContents();
    1.23 +  
    1.24 +  // the offsets for start2 and end2 must be the same to trigger the assertion
    1.25 +  var s = document.createRange();
    1.26 +  s.setStart(start2, 0);
    1.27 +  s.setEnd(end2, 0);
    1.28 +  
    1.29 +  document.documentElement.removeAttribute("class");
    1.30 +}
    1.31 +
    1.32 +]]>
    1.33 +</script>
    1.34 +
    1.35 +</head>
    1.36 +
    1.37 +<body onload="setTimeout(funn, 30)">
    1.38 +  <div id="start1"></div>
    1.39 +  <div id="t">X<div id="q">Y</div></div>
    1.40 +  <div id="end1"></div>
    1.41 +</body>
    1.42 +
    1.43 +</html>

mercurial