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

Unified Diff: LayoutTests/svg/dom/SVGPathSegList-replaceItem-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
« no previous file with comments | « LayoutTests/svg/dom/SVGPathSegList-replaceItem.xhtml ('k') | LayoutTests/svg/dom/SVGPointList-basics.xhtml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/dom/SVGPathSegList-replaceItem-expected.txt
diff --git a/LayoutTests/svg/dom/SVGPathSegList-replaceItem-expected.txt b/LayoutTests/svg/dom/SVGPathSegList-replaceItem-expected.txt
index 6b982aacfc7037ddf85aaffb5005ebf54fbdea38..5cfac6cddef4b3d9789251beed450e199ce00174 100644
--- a/LayoutTests/svg/dom/SVGPathSegList-replaceItem-expected.txt
+++ b/LayoutTests/svg/dom/SVGPathSegList-replaceItem-expected.txt
@@ -41,7 +41,13 @@ Replace second item with third item of path1
PASS path1.pathSegList.replaceItem(path1.pathSegList.getItem(2), 1).toString() is "[object SVGPathSegLinetoAbs]"
Replace third item of path2 with fourth item of path1
-PASS path2.pathSegList.replaceItem(path1.pathSegList.getItem(3), 2).toString() is "[object SVGPathSegLinetoVerticalRel]"
+PASS path2.pathSegList.replaceItem(path1.pathSegList.getItem(4), 2).toString() is "[object SVGPathSegLinetoVerticalRel]"
+
+Reset points attribute to M 0 0 L 100 0 v 100
+PASS path1.setAttribute('d', 'M 0 0 L 100 0 v 100 h 100') is undefined.
+
+Replace fourth item of path1 with third item of path2
+PASS path1.pathSegList.replaceItem(path2.pathSegList.getItem(3), 3).toString() is "[object SVGPathSegLinetoHorizontalRel]"
Check final 'pathSegList' value of path1
PASS path1.pathSegList.numberOfItems is 4
@@ -51,12 +57,10 @@ PASS path1.pathSegList.getItem(0).y is 0
PASS path1.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoAbs]"
PASS path1.pathSegList.getItem(1).x is 100
PASS path1.pathSegList.getItem(1).y is 0
-PASS path1.pathSegList.getItem(2).toString() is "[object SVGPathSegLinetoAbs]"
-PASS path1.pathSegList.getItem(2).x is 100
+PASS path1.pathSegList.getItem(2).toString() is "[object SVGPathSegLinetoVerticalRel]"
PASS path1.pathSegList.getItem(2).y is 100
-PASS path1.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoAbs]"
-PASS path1.pathSegList.getItem(3).x is 0
-PASS path1.pathSegList.getItem(3).y is 100
+PASS path1.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoHorizontalRel]"
+PASS path1.pathSegList.getItem(3).x is -100
Check final 'pathSegList' value of path2
PASS path2.pathSegList.numberOfItems is 4
« no previous file with comments | « LayoutTests/svg/dom/SVGPathSegList-replaceItem.xhtml ('k') | LayoutTests/svg/dom/SVGPointList-basics.xhtml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698