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("Setting .currentScale to a non-finite 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.currentScale = NaN"); |
| 22 shouldThrow("svgElement.currentScale = Infinity"); |
| 23 finishJSTest(); |
| 24 } |
| 25 window.onload = runTest; |
| 26 </script> |
| 27 </body> |
| 28 </html> |
OLD | NEW |