layout/svg/crashtests/385852-1.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/svg/crashtests/385852-1.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,34 @@
     1.4 +<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" onload="setTimeout(boom, 30)" class="reftest-wait">
     1.5 +
     1.6 +<script>
     1.7 +
     1.8 +var originalRoot = document.documentElement;
     1.9 +var svgCircle;
    1.10 +
    1.11 +function boom()
    1.12 +{
    1.13 +  var SVG_NS = "http://www.w3.org/2000/svg";
    1.14 +
    1.15 +  var svgPolyline = document.createElementNS(SVG_NS, 'polyline');
    1.16 +  svgCircle   = document.createElementNS(SVG_NS, 'circle');
    1.17 +
    1.18 +  svgCircle.appendChild(svgPolyline);
    1.19 +  
    1.20 +  document.removeChild(originalRoot);
    1.21 +  document.appendChild(svgCircle);
    1.22 +
    1.23 +  setTimeout(restore, 30);
    1.24 +}
    1.25 +
    1.26 +function restore()
    1.27 +{
    1.28 +  // We have to put it the root element back in the document so that reftest.js
    1.29 +  // sees the event for the removal of class="reftest-wait"!
    1.30 +  document.removeChild(svgCircle);
    1.31 +  document.appendChild(originalRoot);
    1.32 +  document.documentElement.removeAttribute("class");
    1.33 +}
    1.34 +
    1.35 +</script>
    1.36 +
    1.37 +</svg>

mercurial