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

Unified Diff: LayoutTests/svg/dom/SVGPathSegList-insertItemBefore.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-insertItemBefore.xhtml
diff --git a/LayoutTests/svg/dom/SVGPathSegList-insertItemBefore.xhtml b/LayoutTests/svg/dom/SVGPathSegList-insertItemBefore.xhtml
index 315ad272b5923ba78f8c249acf0fe2ad132b553d..fbe78e6433616e2dfc27f9ea0932e0f33792b9af 100644
--- a/LayoutTests/svg/dom/SVGPathSegList-insertItemBefore.xhtml
+++ b/LayoutTests/svg/dom/SVGPathSegList-insertItemBefore.xhtml
@@ -38,10 +38,30 @@
debug("");
debug("Insert fourth item at position three using insertItemBefore()");
shouldBeEqualToString("path1.pathSegList.insertItemBefore(path1.pathSegList.getItem(3), 2).toString()", "[object SVGPathSegLinetoAbs]");
+ shouldBe("path1.pathSegList.numberOfItems", "5");
+ shouldBeEqualToString("path1.pathSegList.getItem(0).toString()", "[object SVGPathSegMovetoAbs]");
+ shouldBe("path1.pathSegList.getItem(0).x", "0");
+ shouldBe("path1.pathSegList.getItem(0).y", "0");
+ 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");
+ 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(4).toString()", "[object SVGPathSegLinetoAbs]");
+ shouldBe("path1.pathSegList.getItem(4).x", "100");
+ shouldBe("path1.pathSegList.getItem(4).y", "100");
+
+ debug("");
+ debug("Change last item of path1 list");
+ shouldBe("path1.pathSegList.getItem(4).x = 0", "0");
debug("");
debug("Check final 'pathSegList' value of path1");
- shouldBe("path1.pathSegList.numberOfItems", "4");
+ shouldBe("path1.pathSegList.numberOfItems", "5");
shouldBeEqualToString("path1.pathSegList.getItem(0).toString()", "[object SVGPathSegMovetoAbs]");
shouldBe("path1.pathSegList.getItem(0).x", "0");
shouldBe("path1.pathSegList.getItem(0).y", "0");
@@ -54,6 +74,9 @@
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(4).toString()", "[object SVGPathSegLinetoAbs]");
+ shouldBe("path1.pathSegList.getItem(4).x", "0");
+ shouldBe("path1.pathSegList.getItem(4).y", "100");
]]>
</script>

Powered by Google App Engine
This is Rietveld 408576698