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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/dom/SVGPathSegList-clear-and-initialize-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::appendItem() 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 3
9 PASS path1.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
10 PASS path1.pathSegList.getItem(0).x is 100
11 PASS path1.pathSegList.getItem(0).y is 100
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 0
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 100
18
19 Check initial 'pathSegList' value of path2
20 PASS path2.pathSegList.numberOfItems is 3
21 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
22 PASS path2.pathSegList.getItem(0).x is 50
23 PASS path2.pathSegList.getItem(0).y is 50
24 PASS path2.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoAbs]"
25 PASS path2.pathSegList.getItem(1).x is 0
26 PASS path2.pathSegList.getItem(1).y is 100
27 PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegMovetoAbs]"
28 PASS path2.pathSegList.getItem(2).x is 0
29 PASS path2.pathSegList.getItem(2).y is 0
30
31 Cache first item of path1 in local variable 'item0'
32 PASS item0.x is 100
33 PASS item0.y is 100
34
35 Clear path1 segment list
36 PASS path1.pathSegList.clear() is undefined.
37
38 Verify that item0 is still alive, and can be modified
39 PASS item0.x is 100
40 PASS item0.y is 100
41 PASS item0.x += 50 is 150
42 PASS item0.y += 50 is 150
43
44 Check intermediate list state of path1
45 PASS path1.pathSegList.numberOfItems is 0
46 PASS path1.pathSegList.getItem(0) threw exception IndexSizeError: Failed to exec ute 'getItem' on 'SVGPathSegList': The index provided (0) is greater than or equ al to the maximum bound (0)..
47
48 Check intermediate list state of path2
49 PASS path2.pathSegList.numberOfItems is 3
50 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
51 PASS path2.pathSegList.getItem(0).x is 50
52 PASS path2.pathSegList.getItem(0).y is 50
53 PASS path2.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoAbs]"
54 PASS path2.pathSegList.getItem(1).x is 0
55 PASS path2.pathSegList.getItem(1).y is 100
56 PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegMovetoAbs]"
57 PASS path2.pathSegList.getItem(2).x is 0
58 PASS path2.pathSegList.getItem(2).y is 0
59
60 Initialize path1 list with first item of path2
61 PASS path1.pathSegList.initialize(path2.pathSegList.getItem(0)).toString() is "[ object SVGPathSegMovetoAbs]"
62
63 Check intermediate list state of path1
64 PASS path1.pathSegList.numberOfItems is 1
65 PASS path1.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
66 PASS path1.pathSegList.getItem(0).x is 50
67 PASS path1.pathSegList.getItem(0).y is 50
68
69 Check intermediate list state of path2
70 PASS path2.pathSegList.numberOfItems is 3
71 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
72 PASS path2.pathSegList.getItem(0).x is 50
73 PASS path2.pathSegList.getItem(0).y is 50
74 PASS path2.pathSegList.getItem(1).toString() is "[object SVGPathSegLinetoAbs]"
75 PASS path2.pathSegList.getItem(1).x is 0
76 PASS path2.pathSegList.getItem(1).y is 100
77 PASS path2.pathSegList.getItem(2).toString() is "[object SVGPathSegMovetoAbs]"
78 PASS path2.pathSegList.getItem(2).x is 0
79 PASS path2.pathSegList.getItem(2).y is 0
80
81 Initialize path2 list with item0
82 PASS path2.pathSegList.initialize(item0).toString() is "[object SVGPathSegMoveto Abs]"
83
84 Check final list state of path1
85 PASS path1.pathSegList.numberOfItems is 1
86 PASS path1.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
87 PASS path1.pathSegList.getItem(0).x is 50
88 PASS path1.pathSegList.getItem(0).y is 50
89
90 Check final list state of path2
91 PASS path2.pathSegList.numberOfItems is 1
92 PASS path2.pathSegList.getItem(0).toString() is "[object SVGPathSegMovetoAbs]"
93 PASS path2.pathSegList.getItem(0).x is 150
94 PASS path2.pathSegList.getItem(0).y is 150
95 PASS successfullyParsed is true
96
97 TEST COMPLETE
98
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698