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

Unified Diff: LayoutTests/svg/dom/SVGPathSegList-appendItem-expected.txt

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-appendItem-expected.txt
diff --git a/LayoutTests/svg/dom/SVGPathSegList-appendItem-expected.txt b/LayoutTests/svg/dom/SVGPathSegList-appendItem-expected.txt
index 833738d73f2f95f3a72639f348e46beb36307175..2632268f72fffd70d6d939285311d3b00b2f6967 100644
--- a/LayoutTests/svg/dom/SVGPathSegList-appendItem-expected.txt
+++ b/LayoutTests/svg/dom/SVGPathSegList-appendItem-expected.txt
@@ -34,8 +34,23 @@ PASS path2.pathSegList.getItem(4).y is 100
Negate x value of fourth segment in path2
PASS path2.pathSegList.getItem(3).x = -path2.pathSegList.getItem(3).x is -100
-Swap segment four and five of path2 - now should look like a rectangle
+Append second item from path1 to path2 list
PASS path2.pathSegList.appendItem(path2.pathSegList.getItem(3)).toString() is "[object SVGPathSegLinetoHorizontalRel]"
+PASS path2.pathSegList.numberOfItems is 6
+PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
+PASS path2.pathSegList.getItem(0).x is 0
+PASS path2.pathSegList.getItem(0).y is 0
+PASS path2.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoAbs]"
+PASS path2.pathSegList.getItem(1).x is 50
+PASS path2.pathSegList.getItem(1).y is 100
+PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegLinetoHorizontalRel]"
+PASS path2.pathSegList.getItem(2).x is 100
+PASS path2.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoHorizontalRel]"
+PASS path2.pathSegList.getItem(3).x is -100
+PASS path2.pathSegList.getItem(4).toString() is "[object SVGPathSegLinetoVerticalRel]"
+PASS path2.pathSegList.getItem(4).y is 100
+PASS path2.pathSegList.getItem(5).toString() is "[object SVGPathSegLinetoHorizontalRel]"
+PASS path2.pathSegList.getItem(5).x is -100
Append second item from path2 to path1 list
PASS path1.pathSegList.appendItem(path2.pathSegList.getItem(1)).toString() is "[object SVGPathSegLinetoAbs]"
@@ -43,6 +58,12 @@ PASS path1.pathSegList.appendItem(path2.pathSegList.getItem(1)).toString() is "[
Change last item of path1 list, that came from path2 list, assure it's updating path1
PASS path1.pathSegList.getItem(3).x -= 50 is 0
+Reset points attribute to M 0 0 L 100 0 v 100
+PASS path2.setAttribute('d', 'M 0 0 L 100 0 v 100') is undefined.
+
+Append fourth item from path1 to path2 list - now should look like a rectangle
+PASS path2.pathSegList.appendItem(path1.pathSegList.getItem(3)).toString() is "[object SVGPathSegLinetoAbs]"
+
Check final 'pathSegList' value of path1
PASS path1.pathSegList.numberOfItems is 4
PASS path1.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
@@ -63,12 +84,14 @@ PASS path2.pathSegList.numberOfItems is 4
PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
PASS path2.pathSegList.getItem(0).x is 0
PASS path2.pathSegList.getItem(0).y is 0
-PASS path2.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoHorizontalRel]"
+PASS path2.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoAbs]"
PASS path2.pathSegList.getItem(1).x is 100
+PASS path1.pathSegList.getItem(1).y is 0
PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegLinetoVerticalRel]"
PASS path2.pathSegList.getItem(2).y is 100
-PASS path2.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoHorizontalRel]"
-PASS path2.pathSegList.getItem(3).x is -100
+PASS path2.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoAbs]"
+PASS path2.pathSegList.getItem(3).x is 0
+PASS path1.pathSegList.getItem(3).y is 100
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « LayoutTests/svg/dom/SVGPathSegList-appendItem.xhtml ('k') | LayoutTests/svg/dom/SVGPathSegList-clear-and-initialize.xhtml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698