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

Unified Diff: LayoutTests/svg/dom/SVGPathSegList-replaceItem.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/SVGPathSegList-replaceItem.xhtml
diff --git a/LayoutTests/svg/dom/SVGPathSegList-replaceItem.xhtml b/LayoutTests/svg/dom/SVGPathSegList-replaceItem.xhtml
index 83b1c7a6c7ddf97ffeea0adb956f8bcc0f03f5ad..e608b1d4603b115cdd022777501ee040de51c9d0 100644
--- a/LayoutTests/svg/dom/SVGPathSegList-replaceItem.xhtml
+++ b/LayoutTests/svg/dom/SVGPathSegList-replaceItem.xhtml
@@ -62,9 +62,17 @@
debug("");
debug("Replace third item of path2 with fourth item of path1");
- shouldBeEqualToString("path2.pathSegList.replaceItem(path1.pathSegList.getItem(3), 2).toString()", "[object SVGPathSegLinetoVerticalRel]");
+ shouldBeEqualToString("path2.pathSegList.replaceItem(path1.pathSegList.getItem(4), 2).toString()", "[object SVGPathSegLinetoVerticalRel]");
debug("");
+ debug("Reset points attribute to M 0 0 L 100 0 v 100");
+ shouldBeUndefined("path1.setAttribute('d', 'M 0 0 L 100 0 v 100 h 100')");
+
+ debug("");
+ debug("Replace fourth item of path1 with third item of path2");
+ shouldBeEqualToString("path1.pathSegList.replaceItem(path2.pathSegList.getItem(3), 3).toString()", "[object SVGPathSegLinetoHorizontalRel]");
+
+ debug("");
debug("Check final 'pathSegList' value of path1");
shouldBe("path1.pathSegList.numberOfItems", "4");
shouldBeEqualToString("path1.pathSegList.getItem(0).toString()", "[object SVGPathSegMovetoAbs]");
@@ -73,12 +81,10 @@
shouldBeEqualToString("path1.pathSegList.getItem(1).toString()", "[object SVGPathSegLinetoAbs]");
shouldBe("path1.pathSegList.getItem(1).x", "100");
shouldBe("path1.pathSegList.getItem(1).y", "0");
- shouldBeEqualToString("path1.pathSegList.getItem(2).toString()", "[object SVGPathSegLinetoAbs]");
- shouldBe("path1.pathSegList.getItem(2).x", "100");
+ shouldBeEqualToString("path1.pathSegList.getItem(2).toString()", "[object SVGPathSegLinetoVerticalRel]");
shouldBe("path1.pathSegList.getItem(2).y", "100");
- shouldBeEqualToString("path1.pathSegList.getItem(3).toString()", "[object SVGPathSegLinetoAbs]");
- shouldBe("path1.pathSegList.getItem(3).x", "0");
- shouldBe("path1.pathSegList.getItem(3).y", "100");
+ shouldBeEqualToString("path1.pathSegList.getItem(3).toString()", "[object SVGPathSegLinetoHorizontalRel]");
+ shouldBe("path1.pathSegList.getItem(3).x", "-100");
debug("");
debug("Check final 'pathSegList' value of path2");

Powered by Google App Engine
This is Rietveld 408576698