Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / svg / dom / SVGPointList-basics-expected.txt
1 This is a test of the simple SVGPointList API parts.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 PASS poly1.points.numberOfItems is 4
7 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0"
8 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0"
9 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100"
10 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100"
11 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100 0 100"
12
13 Creating point x=200 y=100
14 PASS (point = svg.createSVGPoint()).toString() is "[object SVGPoint]"
15 PASS point.x = 200 is 200
16 PASS point.y = 100 is 100
17
18 Test uncommon arguments for initialize()
19 PASS poly1.points.initialize(point) is point
20 PASS poly1.points.numberOfItems is 1
21 PASS dumpPoint(poly1.points.getItem(0)) is "x=200 y=100"
22 PASS poly1.getAttribute('points').formatPointsAttribute() is "200 100"
23 PASS poly1.points.initialize(poly1) threw exception TypeError: Failed to execute 'initialize' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'..
24 PASS poly1.points.initialize(0) threw exception TypeError: Failed to execute 'initialize' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'..
25 PASS poly1.points.initialize('aString') threw exception TypeError: Failed to execute 'initialize' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'..
26
27 Reset points attribute to 0 0 100 0 100 100 0 100
28 PASS poly1.setAttribute('points', '0 0 100 0 100 100 0 100') is undefined.
29 PASS poly1.points.numberOfItems is 4
30 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0"
31 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0"
32 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100"
33 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100"
34 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100 0 100"
35
36 Test uncommon arguments for getItem()
37 PASS poly1.points.getItem(30) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGPointList': The index provided (30) is greater than the maximum bound (4)..
38 PASS poly1.points.getItem('aString') is poly1.points.getItem(0)
39 PASS poly1.points.getItem(poly1) is poly1.points.getItem(0)
40 PASS poly1.points.getItem(null) is poly1.points.getItem(0)
41
42 Test uncommon arguments for insertItemBefore()
43 PASS poly1.points.insertItemBefore(30) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only 1 present..
44 PASS poly1.points.insertItemBefore('aString') threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only 1 present..
45 PASS poly1.points.insertItemBefore(poly1) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only 1 present..
46 PASS poly1.points.insertItemBefore(null) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only 1 present..
47 PASS dumpPoint(poly1.points.insertItemBefore(poly1.points.getItem(1), 'aString')) is "x=100 y=0"
48 PASS poly1.points.numberOfItems is 4
49 PASS dumpPoint(poly1.points.getItem(0)) is "x=100 y=0"
50 PASS dumpPoint(poly1.points.getItem(1)) is "x=0 y=0"
51 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100"
52 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100"
53 PASS poly1.getAttribute('points').formatPointsAttribute() is "100 0 0 0 100 100 0 100"
54 PASS dumpPoint(poly1.points.insertItemBefore(poly1.points.getItem(1), poly1)) is "x=0 y=0"
55 PASS poly1.points.numberOfItems is 4
56 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0"
57 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0"
58 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100"
59 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100"
60 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100 0 100"
61 PASS dumpPoint(poly1.points.insertItemBefore(poly1.points.getItem(1), null)) is "x=100 y=0"
62 PASS poly1.points.numberOfItems is 4
63 PASS dumpPoint(poly1.points.getItem(0)) is "x=100 y=0"
64 PASS dumpPoint(poly1.points.getItem(1)) is "x=0 y=0"
65 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100"
66 PASS poly1.getAttribute('points').formatPointsAttribute() is "100 0 0 0 100 100 0 100"
67 PASS dumpPoint(poly1.points.insertItemBefore(poly1.points.getItem(1), 0)) is "x=0 y=0"
68 PASS poly1.points.numberOfItems is 4
69 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0"
70 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0"
71 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100"
72 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100"
73 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100 0 100"
74 PASS poly1.points.insertItemBefore(30, 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'..
75 PASS poly1.points.insertItemBefore('aString', 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'..
76 PASS poly1.points.insertItemBefore(poly1, 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'..
77 PASS poly1.points.insertItemBefore(null, 0) threw exception TypeError: Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'..
78
79 Test uncommon arguments for replaceItem()
80 PASS poly1.points.replaceItem(30) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only 1 present..
81 PASS poly1.points.replaceItem('aString') threw exception TypeError: Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only 1 present..
82 PASS poly1.points.replaceItem(poly1) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only 1 present..
83 PASS poly1.points.replaceItem(null, 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'..
84 PASS poly1.points.replaceItem('aString', 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'..
85 PASS poly1.points.replaceItem(poly1, 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'..
86 PASS poly1.points.replaceItem(1, 0) threw exception TypeError: Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'..
87
88 Test uncommon arguments for replaceItem() and xml-dom synchronization
89 PASS poly1.points.numberOfItems is 4
90 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0"
91 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0"
92 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100"
93 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100"
94 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100 0 100"
95 PASS dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), 0)) is "x=0 y=0"
96 PASS poly1.points.numberOfItems is 4
97 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0"
98 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0"
99 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100"
100 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100"
101 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100 0 100"
102 PASS dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), 'aString')) is "x=0 y=0"
103 PASS poly1.points.numberOfItems is 4
104 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0"
105 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0"
106 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100"
107 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100"
108 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100 0 100"
109 PASS dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), poly1)) is "x=0 y=0"
110 PASS poly1.points.numberOfItems is 4
111 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0"
112 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=0"
113 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100"
114 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100"
115 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100 0 100"
116 PASS dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), null)) is "x=0 y=0"
117 PASS poly1.points.numberOfItems is 4
118 PASS poly1.getAttribute('points') is "0 0 100 0 100 100 0 100"
119
120 Reset points attribute to 0 0 100 0 100 100 0 100
121 PASS poly1.setAttribute('points', '0 0 100 0 100 100 0 100') is undefined.
122
123 Test uncommon arguments for removeItem()
124 PASS poly1.points.removeItem(30) threw exception IndexSizeError: Failed to execute 'removeItem' on 'SVGPointList': The index provided (30) is greater than the maximum bound (4)..
125 PASS dumpPoint(poly1.points.removeItem('aString')) is "x=0 y=0"
126 PASS poly1.points.numberOfItems is 3
127 PASS dumpPoint(poly1.points.getItem(0)) is "x=100 y=0"
128 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=100"
129 PASS dumpPoint(poly1.points.getItem(0)) is "x=100 y=0"
130 PASS poly1.getAttribute('points').formatPointsAttribute() is "100 0 100 100 0 100"
131 PASS dumpPoint(poly1.points.removeItem(poly1)) is "x=100 y=0"
132 PASS poly1.points.numberOfItems is 2
133 PASS dumpPoint(poly1.points.getItem(0)) is "x=100 y=100"
134 PASS dumpPoint(poly1.points.getItem(1)) is "x=0 y=100"
135 PASS poly1.getAttribute('points').formatPointsAttribute() is "100 100 0 100"
136 PASS dumpPoint(poly1.points.removeItem(null)) is "x=100 y=100"
137 PASS poly1.points.numberOfItems is 1
138 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=100"
139 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 100"
140
141 Test uncommon arguments for appendItem()
142 PASS dumpPoint(poly1.points.appendItem(point)) is "x=200 y=100"
143 PASS poly1.points.numberOfItems is 2
144 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=100"
145 PASS dumpPoint(poly1.points.getItem(1)) is "x=200 y=100"
146 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 100 200 100"
147 PASS successfullyParsed is true
148
149 TEST COMPLETE
150