OLD | NEW |
1 <html xmlns="http://www.w3.org/1999/xhtml"> | 1 <html xmlns="http://www.w3.org/1999/xhtml"> |
2 <head> | 2 <head> |
3 <script>window.enablePixelTesting = true;</script> | 3 <script>window.enablePixelTesting = true;</script> |
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 <svg id="svg" xmlns="http://www.w3.org/2000/svg" width="200" height="200"> | 7 <svg id="svg" xmlns="http://www.w3.org/2000/svg" width="200" height="200"> |
8 <polyline id="poly1" stroke="green" points="0 0 100 0 100 100 0 100"/> | 8 <polyline id="poly1" stroke="green" points="0 0 100 0 100 100 0 100"/> |
9 </svg> | 9 </svg> |
10 | 10 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 shouldThrow("poly1.points.appendItem(null)"); | 193 shouldThrow("poly1.points.appendItem(null)"); |
194 | 194 |
195 shouldBeEqualToString("dumpPoint(poly1.points.appendItem(point))", "x=200 y=
100"); | 195 shouldBeEqualToString("dumpPoint(poly1.points.appendItem(point))", "x=200 y=
100"); |
196 shouldBe("poly1.points.numberOfItems", "2"); | 196 shouldBe("poly1.points.numberOfItems", "2"); |
197 shouldBeEqualToString("dumpPoint(poly1.points.getItem(0))", "x=0 y=100"); | 197 shouldBeEqualToString("dumpPoint(poly1.points.getItem(0))", "x=0 y=100"); |
198 shouldBeEqualToString("dumpPoint(poly1.points.getItem(1))", "x=200 y=100"); | 198 shouldBeEqualToString("dumpPoint(poly1.points.getItem(1))", "x=200 y=100"); |
199 shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()"
, "0 100 200 100"); | 199 shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()"
, "0 100 200 100"); |
200 | 200 |
201 ]]> | 201 ]]> |
202 </script> | 202 </script> |
203 <script src="../../fast/js/resources/js-test-post.js"></script> | |
204 </body> | 203 </body> |
205 </html> | 204 </html> |
OLD | NEW |