OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> |
| 5 </head> |
| 6 <body> |
| 7 <svg id="svg" xmlns="http://www.w3.org/2000/svg" width="200" height="200"></svg> |
| 8 <script> |
| 9 description("Calling svgElement.setCurrentTime() with a non-finite value should
throw."); |
| 10 |
| 11 self.jsTestIsAsync = true; |
| 12 |
| 13 if (window.testRunner) { |
| 14 testRunner.dumpAsText(); |
| 15 testRunner.waitUntilDone(); |
| 16 } |
| 17 |
| 18 function runTest() |
| 19 { |
| 20 svgElement = document.getElementById("svg"); |
| 21 shouldThrow("svgElement.setCurrentTime(NaN)"); |
| 22 shouldThrow("svgElement.setCurrentTime(Infinity)"); |
| 23 finishJSTest(); |
| 24 } |
| 25 window.onload = runTest; |
| 26 </script> |
| 27 </body> |
| 28 </html> |
OLD | NEW |