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 insertItemBefore correctly appends if its index is o
ut of bounds."); | 10 description("Tests that insertItemBefore correctly appends if its index is o
ut of bounds."); |
(...skipping 16 matching lines...) Expand all Loading... |
27 shouldBe("svgList.getItem(0)", "seg00"); | 27 shouldBe("svgList.getItem(0)", "seg00"); |
28 shouldBe("svgList.getItem(1)", "seg01"); | 28 shouldBe("svgList.getItem(1)", "seg01"); |
29 shouldBe("svgList.getItem(2)", "seg11"); | 29 shouldBe("svgList.getItem(2)", "seg11"); |
30 svgList.insertItemBefore(seg10, 42); | 30 svgList.insertItemBefore(seg10, 42); |
31 shouldBe("svgList.numberOfItems", "4"); | 31 shouldBe("svgList.numberOfItems", "4"); |
32 shouldBe("svgList.getItem(0)", "seg00"); | 32 shouldBe("svgList.getItem(0)", "seg00"); |
33 shouldBe("svgList.getItem(1)", "seg01"); | 33 shouldBe("svgList.getItem(1)", "seg01"); |
34 shouldBe("svgList.getItem(2)", "seg11"); | 34 shouldBe("svgList.getItem(2)", "seg11"); |
35 shouldBe("svgList.getItem(3)", "seg10"); | 35 shouldBe("svgList.getItem(3)", "seg10"); |
36 </script> | 36 </script> |
37 <script src="../../fast/js/resources/js-test-post.js"></script> | |
38 </body> | 37 </body> |
39 </html> | 38 </html> |
OLD | NEW |