Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Unified Diff: LayoutTests/svg/dom/SVGPointList-basics.xhtml

Issue 1177303004: Updated SVGListPropertyHelper as per SVG2 Spec (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed presubmit error Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/svg/dom/SVGPointList-basics.xhtml
diff --git a/LayoutTests/svg/dom/SVGPointList-basics.xhtml b/LayoutTests/svg/dom/SVGPointList-basics.xhtml
index 092c40c105a77bf36b50ccc6da5e4210906f4205..7f9fba5cbb0dc23803f4718c9c51211454f2ea40 100644
--- a/LayoutTests/svg/dom/SVGPointList-basics.xhtml
+++ b/LayoutTests/svg/dom/SVGPointList-basics.xhtml
@@ -77,35 +77,46 @@
shouldThrow("poly1.points.insertItemBefore(null)");
shouldBeEqualToString("dumpPoint(poly1.points.insertItemBefore(poly1.points.getItem(1), 'aString'))", "x=100 y=0");
- shouldBe("poly1.points.numberOfItems", "4");
+ shouldBe("poly1.points.numberOfItems", "5");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(0))", "x=100 y=0");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(1))", "x=0 y=0");
- shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=100 y=100");
- shouldBeEqualToString("dumpPoint(poly1.points.getItem(3))", "x=0 y=100");
- shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "100 0 0 0 100 100 0 100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=100 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(3))", "x=100 y=100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(4))", "x=0 y=100");
+ shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "100 0 0 0 100 0 100 100 0 100");
shouldBeEqualToString("dumpPoint(poly1.points.insertItemBefore(poly1.points.getItem(1), poly1))", "x=0 y=0");
- shouldBe("poly1.points.numberOfItems", "4");
+ shouldBe("poly1.points.numberOfItems", "6");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(0))", "x=0 y=0");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(1))", "x=100 y=0");
- shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=100 y=100");
- shouldBeEqualToString("dumpPoint(poly1.points.getItem(3))", "x=0 y=100");
- shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "0 0 100 0 100 100 0 100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=0 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(3))", "x=100 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(4))", "x=100 y=100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(5))", "x=0 y=100");
+ shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "0 0 100 0 0 0 100 0 100 100 0 100");
shouldBeEqualToString("dumpPoint(poly1.points.insertItemBefore(poly1.points.getItem(1), null))", "x=100 y=0");
- shouldBe("poly1.points.numberOfItems", "4");
+ shouldBe("poly1.points.numberOfItems", "7");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(0))", "x=100 y=0");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(1))", "x=0 y=0");
- shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=100 y=100");
- shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "100 0 0 0 100 100 0 100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=100 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(3))", "x=0 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(4))", "x=100 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(5))", "x=100 y=100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(6))", "x=0 y=100");
+ shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "100 0 0 0 100 0 0 0 100 0 100 100 0 100");
shouldBeEqualToString("dumpPoint(poly1.points.insertItemBefore(poly1.points.getItem(1), 0))", "x=0 y=0");
- shouldBe("poly1.points.numberOfItems", "4");
+ shouldBe("poly1.points.numberOfItems", "8");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(0))", "x=0 y=0");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(1))", "x=100 y=0");
- shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=100 y=100");
- shouldBeEqualToString("dumpPoint(poly1.points.getItem(3))", "x=0 y=100");
- shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "0 0 100 0 100 100 0 100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=0 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(3))", "x=100 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(4))", "x=0 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(5))", "x=100 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(6))", "x=100 y=100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(7))", "x=0 y=100");
+ shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "0 0 100 0 0 0 100 0 0 0 100 0 100 100 0 100");
shouldThrow("poly1.points.insertItemBefore(30, 0)");
shouldThrow("poly1.points.insertItemBefore('aString', 0)");
@@ -131,40 +142,56 @@
debug("");
debug("Test uncommon arguments for replaceItem() and xml-dom synchronization");
- shouldBe("poly1.points.numberOfItems", "4");
+ shouldBe("poly1.points.numberOfItems", "8");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(0))", "x=0 y=0");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(1))", "x=100 y=0");
- shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=100 y=100");
- shouldBeEqualToString("dumpPoint(poly1.points.getItem(3))", "x=0 y=100");
- shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "0 0 100 0 100 100 0 100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=0 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(3))", "x=100 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(4))", "x=0 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(5))", "x=100 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(6))", "x=100 y=100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(7))", "x=0 y=100");
+ shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "0 0 100 0 0 0 100 0 0 0 100 0 100 100 0 100");
shouldBeEqualToString("dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), 0))", "x=0 y=0");
- shouldBe("poly1.points.numberOfItems", "4");
+ shouldBe("poly1.points.numberOfItems", "8");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(0))", "x=0 y=0");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(1))", "x=100 y=0");
- shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=100 y=100");
- shouldBeEqualToString("dumpPoint(poly1.points.getItem(3))", "x=0 y=100");
- shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "0 0 100 0 100 100 0 100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=0 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(3))", "x=100 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(4))", "x=0 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(5))", "x=100 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(6))", "x=100 y=100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(7))", "x=0 y=100");
+ shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "0 0 100 0 0 0 100 0 0 0 100 0 100 100 0 100");
shouldBeEqualToString("dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), 'aString'))", "x=0 y=0");
- shouldBe("poly1.points.numberOfItems", "4");
+ shouldBe("poly1.points.numberOfItems", "8");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(0))", "x=0 y=0");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(1))", "x=100 y=0");
- shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=100 y=100");
- shouldBeEqualToString("dumpPoint(poly1.points.getItem(3))", "x=0 y=100");
- shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "0 0 100 0 100 100 0 100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=0 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(3))", "x=100 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(4))", "x=0 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(5))", "x=100 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(6))", "x=100 y=100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(7))", "x=0 y=100");
+ shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "0 0 100 0 0 0 100 0 0 0 100 0 100 100 0 100");
shouldBeEqualToString("dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), poly1))", "x=0 y=0");
- shouldBe("poly1.points.numberOfItems", "4");
+ shouldBe("poly1.points.numberOfItems", "8");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(0))", "x=0 y=0");
shouldBeEqualToString("dumpPoint(poly1.points.getItem(1))", "x=100 y=0");
- shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=100 y=100");
- shouldBeEqualToString("dumpPoint(poly1.points.getItem(3))", "x=0 y=100");
- shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "0 0 100 0 100 100 0 100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(2))", "x=0 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(3))", "x=100 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(4))", "x=0 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(5))", "x=100 y=0");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(6))", "x=100 y=100");
+ shouldBeEqualToString("dumpPoint(poly1.points.getItem(7))", "x=0 y=100");
+ shouldBeEqualToString("poly1.getAttribute('points').formatPointsAttribute()", "0 0 100 0 0 0 100 0 0 0 100 0 100 100 0 100");
shouldBeEqualToString("dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), null))", "x=0 y=0");
- shouldBe("poly1.points.numberOfItems", "4");
- shouldBeEqualToString("poly1.getAttribute('points')", "0 0 100 0 100 100 0 100");
+ shouldBe("poly1.points.numberOfItems", "8");
+ shouldBeEqualToString("poly1.getAttribute('points')", "0 0 100 0 0 0 100 0 0 0 100 0 100 100 0 100");
debug("");
debug("Reset points attribute to 0 0 100 0 100 100 0 100");
« no previous file with comments | « LayoutTests/svg/dom/SVGPathSegList-replaceItem-expected.txt ('k') | LayoutTests/svg/dom/SVGPointList-basics-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698