OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script> | 4 <script> |
5 function crash() { | 5 function crash() { |
6 var animate = document.getElementById('animate'); | 6 var animate = document.getElementById('animate'); |
7 var svg = document.getElementById('svg'); | 7 var svg = document.getElementById('svg'); |
8 animate.endElementAt(NaN); | 8 animate.endElementAt(NaN); |
9 animate.beginElementAt(NaN); | 9 animate.beginElementAt(NaN); |
10 svg.setCurrentTime(2); | 10 svg.setCurrentTime(2); |
11 if (window.testRunner) | 11 if (window.testRunner) |
12 testRunner.dumpAsText(); | 12 testRunner.dumpAsText(); |
13 } | 13 } |
14 </script> | 14 </script> |
15 </head> | 15 </head> |
16 <body onload="crash()"> | 16 <body onload="crash()"> |
17 Test for WK100322: ElementTimeControl should check for invalid values. This test
passes if it does not crash. | 17 Test for WK100322: ElementTimeControl should check for invalid values. This test
passes if it does not crash. |
18 | 18 |
19 <svg id="svg" width="200" height="200"> | 19 <svg id="svg" width="200" height="200"> |
20 <rect x="0" y="0" width="100" height="100" fill="green"> | 20 <rect x="0" y="0" width="100" height="100" fill="green"> |
21 <animate id="animate" attributeName="x" to="200" begin="3s"/> | 21 <animate id="animate" attributeName="x" to="200" begin="3s"/> |
22 </rect> | 22 </rect> |
23 </svg> | 23 </svg> |
24 </body> | 24 </body> |
25 </html> | 25 </html> |
OLD | NEW |