dom/smil/crashtests/588287-1.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/smil/crashtests/588287-1.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait">
     1.6 +<script>
     1.7 +
     1.8 +function boom()
     1.9 +{
    1.10 +  var animate = document.createElementNS("http://www.w3.org/2000/svg", "animate");
    1.11 +  animate.setAttributeNS(null, "begin", "0.5s");
    1.12 +  document.documentElement.appendChild(animate);
    1.13 +  
    1.14 +  setTimeout(function() {
    1.15 +    var g = document.createElement("g");
    1.16 +    var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
    1.17 +    g.appendChild(svg);
    1.18 +    document.documentElement.appendChild(g);
    1.19 +    svg.appendChild(animate);
    1.20 +    document.documentElement.removeAttribute("class");
    1.21 +  }, 400);
    1.22 +}
    1.23 +
    1.24 +window.addEventListener("load", function() { setTimeout(boom, 200) }, false);
    1.25 +
    1.26 +</script>
    1.27 +</svg>

mercurial