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