| OLD | NEW |
| 1 <p>This test verifies that SVG animation targets can change during the animation
.</p> | 1 <p>This test verifies that SVG animation targets can change during the animation
.</p> |
| 2 <p id="result"></p> | 2 <p id="result"></p> |
| 3 <svg id="svg"> | 3 <svg id="svg"> |
| 4 <text id="text"></text> | 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"> | 5 <animate xlink:href="#text" id="a" attributeName="y" begin="0.0" from="0" to
="1" dur="1s" repeatCount="indefinite"> |
| 6 </svg> | 6 </svg> |
| 7 <script> | 7 <script> |
| 8 if (window.layoutTestController) { | 8 if (window.layoutTestController) { |
| 9 layoutTestController.dumpAsText() | 9 layoutTestController.dumpAsText() |
| 10 layoutTestController.waitUntilDone() | 10 layoutTestController.waitUntilDone() |
| 11 } | 11 } |
| 12 | 12 |
| 13 setTimeout(function() { | 13 setTimeout(function() { |
| 14 text = document.getElementById('text') | 14 text = document.getElementById('text') |
| 15 text.id = 'not_text' | 15 text.id = 'not_text' |
| 16 svg = document.getElementById('svg') | 16 svg = document.getElementById('svg') |
| 17 svg.id = 'text' | 17 svg.id = 'text' |
| 18 svg.appendChild(document.getElementById('a').cloneNode()) | 18 svg.appendChild(document.getElementById('a').cloneNode()) |
| 19 setTimeout(function() { | 19 setTimeout(function() { |
| 20 document.getElementById("result").innerText = "TEST PASSED" | 20 document.getElementById("result").innerText = "TEST PASSED" |
| 21 if (window.layoutTestController) | 21 if (window.layoutTestController) |
| 22 layoutTestController.notifyDone() | 22 layoutTestController.notifyDone() |
| 23 }, 0) | 23 }, 0) |
| 24 }, 0) | 24 }, 0) |
| 25 </script> | 25 </script> |
| OLD | NEW |