OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <!-- Test for WK90042 - Passes if there is no crash and "PASS" is displayed. --> | 2 <!-- Test for WK90042 - Passes if there is no crash and "PASS" is displayed. --> |
3 <html> | 3 <html> |
4 <body> | 4 <body> |
5 <script> | 5 <script> |
6 if (window.testRunner) | 6 if (window.testRunner) |
7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
8 | 8 |
9 var textElement = document.createElementNS("http://www.w3.org/2000/svg", "text")
; | 9 var textElement = document.createElementNS("http://www.w3.org/2000/svg", "text")
; |
10 document.documentElement.appendChild(textElement); | 10 document.documentElement.appendChild(textElement); |
11 var aElement = document.createElementNS("http://www.w3.org/2000/svg", "a"); | 11 var aElement = document.createElementNS("http://www.w3.org/2000/svg", "a"); |
12 var animateElement = document.createElementNS("http://www.w3.org/2000/svg", "ani
mate"); | 12 var animateElement = document.createElementNS("http://www.w3.org/2000/svg", "ani
mate"); |
13 aElement.appendChild(animateElement); | 13 aElement.appendChild(animateElement); |
14 document.implementation.createDocument("", "", null).adoptNode(aElement); | 14 document.implementation.createDocument("", "", null).adoptNode(aElement); |
15 for (something in animateElement) | 15 for (something in animateElement) |
16 animateElement[something]; | 16 animateElement[something]; |
17 textElement.appendChild(animateElement); | 17 textElement.appendChild(animateElement); |
18 textElement.parentNode.removeChild(textElement); | 18 textElement.parentNode.removeChild(textElement); |
19 | 19 |
20 // Not crashing at this point means we PASS. | 20 // Not crashing at this point means we PASS. |
21 document.body.innerHTML = "PASS"; | 21 document.body.innerHTML = "PASS"; |
22 </script> | 22 </script> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |