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