Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / removed-from-animation-crash.html
blob5b8b6abf45bd8ae930fed27e5cf4e0611058afce
1 <!DOCTYPE html>
2 <html>
3 <!-- Test for WK104972: this test passes if it does not crash. -->
4 <body id="body" onload="crash()">
5 <svg width="100" height="100">
6 <rect id="rect1">
7 <animateMotion>
8 <g id="g1"></g>
9 <g id="g2"></g>
10 <set id="animate"></set>
11 </animateMotion>
12 </rect>
13 </svg>
14 <script>
15 if (window.testRunner) {
16 testRunner.waitUntilDone();
17 testRunner.dumpAsText();
20 function crash() {
21 var notInDocRect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
22 setTimeout(function() {
23 var g2 = document.getElementById('g2');
24 g2.parentNode.removeChild(g2);
25 document.getElementById('g1').appendChild(document.getElementById('animate'));
26 notInDocRect.appendChild(document.getElementById('rect1'));
27 document.getElementById('body').innerHTML = "PASS: test did not crash";
29 if (window.testRunner)
30 testRunner.notifyDone();
31 }, 1);
33 </script>
34 </body>
35 </html>