Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / svg / animations / svglength-animation-retarget-crash.html
1 <p>This test verifies that SVG animation targets can change during the animation.</p>
2 <p id="result"></p>
3 <svg id="svg">
4     <text id="text"></text>
5     <animate xlink:href="#text" id="a" attributeName="y" begin="0.0" from="0" to="1" dur="1s" repeatCount="indefinite">
6 </svg>
7 <script>
8 if (window.testRunner) {
9     testRunner.dumpAsText()
10     testRunner.waitUntilDone()
11 }
12
13 setTimeout(function() {
14     text = document.getElementById('text')
15     text.id = 'not_text'
16     svg = document.getElementById('svg')
17     svg.id = 'text'
18     svg.appendChild(document.getElementById('a').cloneNode())
19     setTimeout(function() {
20       document.getElementById("result").innerText = "TEST PASSED"
21       if (window.testRunner)
22           testRunner.notifyDone()
23     }, 0)
24 }, 0)
25 </script>