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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/dom/SVGPathSegList-replaceItem-expected.txt

Issue 1416273002: Remove SVGPathElement.pathSegList and related interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 This is a test of the SVGPathSegList::replaceItem() API.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6
7 Check initial 'pathSegList' value of path1
8 PASS path1.pathSegList.numberOfItems is 6
9 PASS path1.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
10 PASS path1.pathSegList.getItem(0).x is 0
11 PASS path1.pathSegList.getItem(0).y is 0
12 PASS path1.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoAbs]"
13 PASS path1.pathSegList.getItem(1).x is 100
14 PASS path1.pathSegList.getItem(1).y is 100
15 PASS path1.pathSegList.getItem(2).toString() is "[object SVGPathSegLinetoAbs]"
16 PASS path1.pathSegList.getItem(2).x is 100
17 PASS path1.pathSegList.getItem(2).y is 0
18 PASS path1.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoAbs]"
19 PASS path1.pathSegList.getItem(3).x is 100
20 PASS path1.pathSegList.getItem(3).y is 100
21 PASS path1.pathSegList.getItem(4).toString() is "[object SVGPathSegLinetoVertica lRel]"
22 PASS path1.pathSegList.getItem(4).y is 100
23 PASS path1.pathSegList.getItem(5).toString() is "[object SVGPathSegLinetoAbs]"
24 PASS path1.pathSegList.getItem(5).x is 0
25 PASS path1.pathSegList.getItem(5).y is 100
26
27 Check initial 'pathSegList' value of path2
28 PASS path2.pathSegList.numberOfItems is 4
29 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
30 PASS path2.pathSegList.getItem(0).x is 0
31 PASS path2.pathSegList.getItem(0).y is 0
32 PASS path2.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoHorizon talRel]"
33 PASS path2.pathSegList.getItem(1).x is 100
34 PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegLinetoAbs]"
35 PASS path2.pathSegList.getItem(2).x is 200
36 PASS path2.pathSegList.getItem(2).y is 100
37 PASS path2.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoHorizon talRel]"
38 PASS path2.pathSegList.getItem(3).x is -100
39
40 Replace second item with third item of path1
41 PASS path1.pathSegList.replaceItem(path1.pathSegList.getItem(2), 1).toString() i s "[object SVGPathSegLinetoAbs]"
42
43 Replace third item of path2 with fourth item of path1
44 PASS path2.pathSegList.replaceItem(path1.pathSegList.getItem(4), 2).toString() i s "[object SVGPathSegLinetoVerticalRel]"
45
46 Reset points attribute to M 0 0 L 100 0 v 100
47 PASS path1.setAttribute('d', 'M 0 0 L 100 0 v 100 h 100') is undefined.
48
49 Replace fourth item of path1 with third item of path2
50 PASS path1.pathSegList.replaceItem(path2.pathSegList.getItem(3), 3).toString() i s "[object SVGPathSegLinetoHorizontalRel]"
51
52 Check final 'pathSegList' value of path1
53 PASS path1.pathSegList.numberOfItems is 4
54 PASS path1.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
55 PASS path1.pathSegList.getItem(0).x is 0
56 PASS path1.pathSegList.getItem(0).y is 0
57 PASS path1.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoAbs]"
58 PASS path1.pathSegList.getItem(1).x is 100
59 PASS path1.pathSegList.getItem(1).y is 0
60 PASS path1.pathSegList.getItem(2).toString() is "[object SVGPathSegLinetoVertica lRel]"
61 PASS path1.pathSegList.getItem(2).y is 100
62 PASS path1.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoHorizon talRel]"
63 PASS path1.pathSegList.getItem(3).x is -100
64
65 Check final 'pathSegList' value of path2
66 PASS path2.pathSegList.numberOfItems is 4
67 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
68 PASS path2.pathSegList.getItem(0).x is 0
69 PASS path2.pathSegList.getItem(0).y is 0
70 PASS path2.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoHorizon talRel]"
71 PASS path2.pathSegList.getItem(1).x is 100
72 PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegLinetoVertica lRel]"
73 PASS path2.pathSegList.getItem(2).y is 100
74 PASS path2.pathSegList.getItem(3).toString() is "[object SVGPathSegLinetoHorizon talRel]"
75 PASS path2.pathSegList.getItem(3).x is -100
76 PASS successfullyParsed is true
77
78 TEST COMPLETE
79
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698