OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../resources/js-test.js"></script> | |
5 </head> | |
6 <body> | |
7 <p id="description"></p> | |
8 <div id="console"></div> | |
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."); | |
11 path = document.createElementNS("http://www.w3.org/2000/svg", "path"); | |
12 shouldThrow("path.pathSegList.initialize();"); | |
13 shouldBe("path.getPathSegAtLength(0)", '0'); | |
14 shouldThrow("path.insertItemBefore(null, 0)"); | |
15 shouldThrow("path.replaceItem(null, 0)"); | |
16 shouldThrow("path.appendItem(null)"); | |
17 path.pathSegList.initialize(path.createSVGPathSegClosePath()); | |
18 debug("List correctly initialised."); | |
19 shouldBe("path.getPathSegAtLength(0)", '0'); | |
20 shouldThrow("path.insertItemBefore(null, 0)"); | |
21 shouldThrow("path.replaceItem(null, 0)"); | |
22 shouldThrow("path.appendItem(null)"); | |
23 | |
24 </script> | |
25 </body> | |
26 </html> | |
OLD | NEW |