1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/smil/crashtests/588287-2.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 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.setCurrentTime(0.2); 1.20 + svg.appendChild(animate); 1.21 + svg.setCurrentTime(0.0); // Trigger backwards seek 1.22 + document.documentElement.removeAttribute("class"); 1.23 + }, 400); 1.24 +} 1.25 + 1.26 +window.addEventListener("load", function() { setTimeout(boom, 200) }, false); 1.27 + 1.28 +</script> 1.29 +</svg>