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="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 shouldBeEqualToString("dumpPoint(poly1.points.getItem(1))", "x=0 y=100"); | 180 shouldBeEqualToString("dumpPoint(poly1.points.getItem(1))", "x=0 y=100"); |
181 shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()"
, "100 100 0 100"); | 181 shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()"
, "100 100 0 100"); |
182 | 182 |
183 shouldBeEqualToString("dumpPoint(poly1.points.removeItem(null))", "x=100 y=1
00"); | 183 shouldBeEqualToString("dumpPoint(poly1.points.removeItem(null))", "x=100 y=1
00"); |
184 shouldBe("poly1.points.numberOfItems", "1"); | 184 shouldBe("poly1.points.numberOfItems", "1"); |
185 shouldBeEqualToString("dumpPoint(poly1.points.getItem(0))", "x=0 y=100"); | 185 shouldBeEqualToString("dumpPoint(poly1.points.getItem(0))", "x=0 y=100"); |
186 shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()"
, "0 100"); | 186 shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()"
, "0 100"); |
187 | 187 |
188 debug(""); | 188 debug(""); |
189 debug("Test uncommon arguments for appendItem()"); | 189 debug("Test uncommon arguments for appendItem()"); |
190 shouldThrow("poly1.points.appendItem(30)"); | 190 // shouldThrow("poly1.points.appendItem(30)"); |
191 shouldThrow("poly1.points.appendItem('aString')"); | 191 // shouldThrow("poly1.points.appendItem('aString')"); |
192 shouldThrow("poly1.points.appendItem(poly1)"); | 192 // shouldThrow("poly1.points.appendItem(poly1)"); |
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 </body> | 203 </body> |
204 </html> | 204 </html> |
OLD | NEW |