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

Side by Side Diff: LayoutTests/svg/dom/SVGPointList-basics-expected.txt

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 This is a test of the simple SVGPointList API parts. 1 This is a test of the simple SVGPointList API parts.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS poly1.points.numberOfItems is 4 6 PASS poly1.points.numberOfItems is 4
7 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" 7 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0"
8 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 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" 9 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100"
10 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100" 10 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100"
(...skipping 16 matching lines...) Expand all
27 Reset points attribute to 0 0 100 0 100 100 0 100 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. 28 PASS poly1.setAttribute('points', '0 0 100 0 100 100 0 100') is undefined.
29 PASS poly1.points.numberOfItems is 4 29 PASS poly1.points.numberOfItems is 4
30 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" 30 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0"
31 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 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" 32 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100"
33 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 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" 34 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 0 100 0 100 100 0 100"
35 35
36 Test uncommon arguments for getItem() 36 Test uncommon arguments for getItem()
37 PASS poly1.points.getItem(30) threw exception Error: IndexSizeError: DOM Excepti on 1. 37 PASS poly1.points.getItem(30) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
38 PASS poly1.points.getItem('aString') is poly1.points.getItem(0) 38 PASS poly1.points.getItem('aString') is poly1.points.getItem(0)
39 PASS poly1.points.getItem(poly1) 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) 40 PASS poly1.points.getItem(null) is poly1.points.getItem(0)
41 41
42 Test uncommon arguments for insertItemBefore() 42 Test uncommon arguments for insertItemBefore()
43 PASS poly1.points.insertItemBefore(30) threw exception TypeError: Not enough arg uments. 43 PASS poly1.points.insertItemBefore(30) threw exception TypeError: Not enough arg uments.
44 PASS poly1.points.insertItemBefore('aString') threw exception TypeError: Not eno ugh arguments. 44 PASS poly1.points.insertItemBefore('aString') threw exception TypeError: Not eno ugh arguments.
45 PASS poly1.points.insertItemBefore(poly1) threw exception TypeError: Not enough arguments. 45 PASS poly1.points.insertItemBefore(poly1) threw exception TypeError: Not enough arguments.
46 PASS poly1.points.insertItemBefore(null) threw exception TypeError: Not enough a rguments. 46 PASS poly1.points.insertItemBefore(null) threw exception TypeError: Not enough a rguments.
47 PASS dumpPoint(poly1.points.insertItemBefore(poly1.points.getItem(1), 'aString') ) is "x=100 y=0" 47 PASS dumpPoint(poly1.points.insertItemBefore(poly1.points.getItem(1), 'aString') ) is "x=100 y=0"
(...skipping 19 matching lines...) Expand all
67 PASS dumpPoint(poly1.points.insertItemBefore(poly1.points.getItem(1), 0)) is "x= 0 y=0" 67 PASS dumpPoint(poly1.points.insertItemBefore(poly1.points.getItem(1), 0)) is "x= 0 y=0"
68 PASS poly1.points.numberOfItems is 4 68 PASS poly1.points.numberOfItems is 4
69 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" 69 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0"
70 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 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" 71 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100"
72 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 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" 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: Type error. 74 PASS poly1.points.insertItemBefore(30, 0) threw exception TypeError: Type error.
75 PASS poly1.points.insertItemBefore('aString', 0) threw exception TypeError: Type error. 75 PASS poly1.points.insertItemBefore('aString', 0) threw exception TypeError: Type error.
76 PASS poly1.points.insertItemBefore(poly1, 0) threw exception TypeError: Type err or. 76 PASS poly1.points.insertItemBefore(poly1, 0) threw exception TypeError: Type err or.
77 PASS poly1.points.insertItemBefore(null, 0) threw exception Error: SVG_WRONG_TYP E_ERR: DOM SVG Exception 0. 77 PASS poly1.points.insertItemBefore(null, 0) threw exception SVG_WRONG_TYPE_ERR: An object of the wrong type was passed to an operation..
78 78
79 Test uncommon arguments for replaceItem() 79 Test uncommon arguments for replaceItem()
80 PASS poly1.points.replaceItem(30) threw exception TypeError: Not enough argument s. 80 PASS poly1.points.replaceItem(30) threw exception TypeError: Not enough argument s.
81 PASS poly1.points.replaceItem('aString') threw exception TypeError: Not enough a rguments. 81 PASS poly1.points.replaceItem('aString') threw exception TypeError: Not enough a rguments.
82 PASS poly1.points.replaceItem(poly1) threw exception TypeError: Not enough argum ents. 82 PASS poly1.points.replaceItem(poly1) threw exception TypeError: Not enough argum ents.
83 PASS poly1.points.replaceItem(null, 0) threw exception Error: SVG_WRONG_TYPE_ERR : DOM SVG Exception 0. 83 PASS poly1.points.replaceItem(null, 0) threw exception SVG_WRONG_TYPE_ERR: An ob ject of the wrong type was passed to an operation..
84 PASS poly1.points.replaceItem('aString', 0) threw exception TypeError: Type erro r. 84 PASS poly1.points.replaceItem('aString', 0) threw exception TypeError: Type erro r.
85 PASS poly1.points.replaceItem(poly1, 0) threw exception TypeError: Type error. 85 PASS poly1.points.replaceItem(poly1, 0) threw exception TypeError: Type error.
86 PASS poly1.points.replaceItem(1, 0) threw exception TypeError: Type error. 86 PASS poly1.points.replaceItem(1, 0) threw exception TypeError: Type error.
87 87
88 Test uncommon arguments for replaceItem() and xml-dom synchronization 88 Test uncommon arguments for replaceItem() and xml-dom synchronization
89 PASS poly1.points.numberOfItems is 4 89 PASS poly1.points.numberOfItems is 4
90 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0" 90 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=0"
91 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 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" 92 PASS dumpPoint(poly1.points.getItem(2)) is "x=100 y=100"
93 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100" 93 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 y=100"
(...skipping 20 matching lines...) Expand all
114 PASS dumpPoint(poly1.points.getItem(3)) is "x=0 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" 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" 116 PASS dumpPoint(poly1.points.replaceItem(poly1.points.getItem(0), null)) is "x=0 y=0"
117 PASS poly1.points.numberOfItems is 4 117 PASS poly1.points.numberOfItems is 4
118 PASS poly1.getAttribute('points') is "0 0 100 0 100 100 0 100" 118 PASS poly1.getAttribute('points') is "0 0 100 0 100 100 0 100"
119 119
120 Reset points attribute to 0 0 100 0 100 100 0 100 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. 121 PASS poly1.setAttribute('points', '0 0 100 0 100 100 0 100') is undefined.
122 122
123 Test uncommon arguments for removeItem() 123 Test uncommon arguments for removeItem()
124 PASS poly1.points.removeItem(30) threw exception Error: IndexSizeError: DOM Exce ption 1. 124 PASS poly1.points.removeItem(30) threw exception IndexSizeError: Index or size w as negative, or greater than the allowed value..
125 PASS dumpPoint(poly1.points.removeItem('aString')) is "x=0 y=0" 125 PASS dumpPoint(poly1.points.removeItem('aString')) is "x=0 y=0"
126 PASS poly1.points.numberOfItems is 3 126 PASS poly1.points.numberOfItems is 3
127 PASS dumpPoint(poly1.points.getItem(0)) is "x=100 y=0" 127 PASS dumpPoint(poly1.points.getItem(0)) is "x=100 y=0"
128 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=100" 128 PASS dumpPoint(poly1.points.getItem(1)) is "x=100 y=100"
129 PASS dumpPoint(poly1.points.getItem(0)) is "x=100 y=0" 129 PASS dumpPoint(poly1.points.getItem(0)) is "x=100 y=0"
130 PASS poly1.getAttribute('points').formatPointsAttribute() is "100 0 100 100 0 10 0" 130 PASS poly1.getAttribute('points').formatPointsAttribute() is "100 0 100 100 0 10 0"
131 PASS dumpPoint(poly1.points.removeItem(poly1)) is "x=100 y=0" 131 PASS dumpPoint(poly1.points.removeItem(poly1)) is "x=100 y=0"
132 PASS poly1.points.numberOfItems is 2 132 PASS poly1.points.numberOfItems is 2
133 PASS dumpPoint(poly1.points.getItem(0)) is "x=100 y=100" 133 PASS dumpPoint(poly1.points.getItem(0)) is "x=100 y=100"
134 PASS dumpPoint(poly1.points.getItem(1)) is "x=0 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" 135 PASS poly1.getAttribute('points').formatPointsAttribute() is "100 100 0 100"
136 PASS dumpPoint(poly1.points.removeItem(null)) is "x=100 y=100" 136 PASS dumpPoint(poly1.points.removeItem(null)) is "x=100 y=100"
137 PASS poly1.points.numberOfItems is 1 137 PASS poly1.points.numberOfItems is 1
138 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=100" 138 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=100"
139 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 100" 139 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 100"
140 140
141 Test uncommon arguments for appendItem() 141 Test uncommon arguments for appendItem()
142 PASS poly1.points.appendItem(30) threw exception TypeError: Type error. 142 PASS poly1.points.appendItem(30) threw exception TypeError: Type error.
143 PASS poly1.points.appendItem('aString') threw exception TypeError: Type error. 143 PASS poly1.points.appendItem('aString') threw exception TypeError: Type error.
144 PASS poly1.points.appendItem(poly1) threw exception TypeError: Type error. 144 PASS poly1.points.appendItem(poly1) threw exception TypeError: Type error.
145 PASS poly1.points.appendItem(null) threw exception Error: SVG_WRONG_TYPE_ERR: DO M SVG Exception 0. 145 PASS poly1.points.appendItem(null) threw exception SVG_WRONG_TYPE_ERR: An object of the wrong type was passed to an operation..
146 PASS dumpPoint(poly1.points.appendItem(point)) is "x=200 y=100" 146 PASS dumpPoint(poly1.points.appendItem(point)) is "x=200 y=100"
147 PASS poly1.points.numberOfItems is 2 147 PASS poly1.points.numberOfItems is 2
148 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=100" 148 PASS dumpPoint(poly1.points.getItem(0)) is "x=0 y=100"
149 PASS dumpPoint(poly1.points.getItem(1)) is "x=200 y=100" 149 PASS dumpPoint(poly1.points.getItem(1)) is "x=200 y=100"
150 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 100 200 100" 150 PASS poly1.getAttribute('points').formatPointsAttribute() is "0 100 200 100"
151 PASS successfullyParsed is true 151 PASS successfullyParsed is true
152 152
153 TEST COMPLETE 153 TEST COMPLETE
154 154
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698