| <!DOCTYPE html> |
| <html> |
| <head> |
| <script> |
| function crash() { |
| var animate = document.getElementById('animate'); |
| var svg = document.getElementById('svg'); |
| animate.endElementAt(NaN); |
| animate.beginElementAt(NaN); |
| svg.setCurrentTime(2); |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| } |
| </script> |
| </head> |
| <body onload="crash()"> |
| Test for WK100322: ElementTimeControl should check for invalid values. This test passes if it does not crash. |
| |
| <svg id="svg" width="200" height="200"> |
| <rect x="0" y="0" width="100" height="100" fill="green"> |
| <animate id="animate" attributeName="x" to="200" begin="3s"/> |
| </rect> |
| </svg> |
| </body> |
| </html> |