| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <p id="description"></p> | 7 <p id="description"></p> |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 <script> | 9 <script> |
| 10 description("Tests that an exception is thrown if we try to get a pathSeg fo
r a length out of the bounds of the path itself."); | 10 description("Tests that an exception is thrown if we try to get a pathSeg fo
r a length out of the bounds of the path itself."); |
| 11 path = document.createElementNS("http://www.w3.org/2000/svg", "path"); | 11 path = document.createElementNS("http://www.w3.org/2000/svg", "path"); |
| 12 shouldThrow("path.pathSegList.initialize();"); | 12 shouldThrow("path.pathSegList.initialize();"); |
| 13 shouldBe("path.getPathSegAtLength(0)", '0'); | 13 shouldBe("path.getPathSegAtLength(0)", '0'); |
| 14 shouldThrow("path.insertItemBefore(null, 0)"); | 14 shouldThrow("path.insertItemBefore(null, 0)"); |
| 15 shouldThrow("path.replaceItem(null, 0)"); | 15 shouldThrow("path.replaceItem(null, 0)"); |
| 16 shouldThrow("path.appendItem(null)"); | 16 shouldThrow("path.appendItem(null)"); |
| 17 path.pathSegList.initialize(path.createSVGPathSegClosePath()); | 17 path.pathSegList.initialize(path.createSVGPathSegClosePath()); |
| 18 debug("List correctly initialised."); | 18 debug("List correctly initialised."); |
| 19 shouldBe("path.getPathSegAtLength(0)", '0'); | 19 shouldBe("path.getPathSegAtLength(0)", '0'); |
| 20 shouldThrow("path.insertItemBefore(null, 0)"); | 20 shouldThrow("path.insertItemBefore(null, 0)"); |
| 21 shouldThrow("path.replaceItem(null, 0)"); | 21 shouldThrow("path.replaceItem(null, 0)"); |
| 22 shouldThrow("path.appendItem(null)"); | 22 shouldThrow("path.appendItem(null)"); |
| 23 | 23 |
| 24 </script> | 24 </script> |
| 25 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| 26 </body> | 25 </body> |
| 27 </html> | 26 </html> |
| OLD | NEW |