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

Side by Side Diff: LayoutTests/inspector/console/console-format-expected.txt

Issue 135973010: Revert of DevTools: Fix console.log for arrays in some corner cases. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 6 years, 10 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 CONSOLE MESSAGE: line 26: test,test2,,,test4,,,,, 1 CONSOLE MESSAGE: line 26: test,test2,,,test4,,,,,
2 CONSOLE MESSAGE: line 27: %o 2 CONSOLE MESSAGE: line 27: %o
3 CONSOLE MESSAGE: line 28: %O 3 CONSOLE MESSAGE: line 28: %O
4 CONSOLE MESSAGE: line 29: Test for zero "%f" in formatter 4 CONSOLE MESSAGE: line 29: Test for zero "%f" in formatter
5 CONSOLE MESSAGE: line 12: /^url\(\s*(?:(?:"(?:[^\\\"]|(?:\\[\da-f]{1,6}\s?|\.))* "|'(?:[^\\\']|(?:\\[\da-f]{1,6}\s?|\.))*')|(?:[!#$%&*-~\w]|(?:\\[\da-f]{1,6}\s?| \.))*)\s*\)/i 5 CONSOLE MESSAGE: line 12: /^url\(\s*(?:(?:"(?:[^\\\"]|(?:\\[\da-f]{1,6}\s?|\.))* "|'(?:[^\\\']|(?:\\[\da-f]{1,6}\s?|\.))*')|(?:[!#$%&*-~\w]|(?:\\[\da-f]{1,6}\s?| \.))*)\s*\)/i
6 CONSOLE MESSAGE: line 13: /^url\(\s*(?:(?:"(?:[^\\\"]|(?:\\[\da-f]{1,6}\s?|\.))* "|'(?:[^\\\']|(?:\\[\da-f]{1,6}\s?|\.))*')|(?:[!#$%&*-~\w]|(?:\\[\da-f]{1,6}\s?| \.))*)\s*\)/i 6 CONSOLE MESSAGE: line 13: /^url\(\s*(?:(?:"(?:[^\\\"]|(?:\\[\da-f]{1,6}\s?|\.))* "|'(?:[^\\\']|(?:\\[\da-f]{1,6}\s?|\.))*')|(?:[!#$%&*-~\w]|(?:\\[\da-f]{1,6}\s?| \.))*)\s*\)/i
7 CONSOLE MESSAGE: line 12: /foo\\bar\sbaz/i 7 CONSOLE MESSAGE: line 12: /foo\\bar\sbaz/i
8 CONSOLE MESSAGE: line 13: /foo\\bar\sbaz/i 8 CONSOLE MESSAGE: line 13: /foo\\bar\sbaz/i
9 CONSOLE MESSAGE: line 12: test 9 CONSOLE MESSAGE: line 12: test
10 CONSOLE MESSAGE: line 13: test 10 CONSOLE MESSAGE: line 13: test
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 CONSOLE MESSAGE: line 12: [object Object] 42 CONSOLE MESSAGE: line 12: [object Object]
43 CONSOLE MESSAGE: line 13: [object Object] 43 CONSOLE MESSAGE: line 13: [object Object]
44 CONSOLE MESSAGE: line 12: NaN 44 CONSOLE MESSAGE: line 12: NaN
45 CONSOLE MESSAGE: line 13: NaN 45 CONSOLE MESSAGE: line 13: NaN
46 CONSOLE MESSAGE: line 12: Infinity 46 CONSOLE MESSAGE: line 12: Infinity
47 CONSOLE MESSAGE: line 13: Infinity 47 CONSOLE MESSAGE: line 13: Infinity
48 CONSOLE MESSAGE: line 12: -Infinity 48 CONSOLE MESSAGE: line 12: -Infinity
49 CONSOLE MESSAGE: line 13: -Infinity 49 CONSOLE MESSAGE: line 13: -Infinity
50 CONSOLE MESSAGE: line 12: test,test2,,,test4,,,,, 50 CONSOLE MESSAGE: line 12: test,test2,,,test4,,,,,
51 CONSOLE MESSAGE: line 13: test,test2,,,test4,,,,, 51 CONSOLE MESSAGE: line 13: test,test2,,,test4,,,,,
52 CONSOLE MESSAGE: line 12: 1,2,3,4
53 CONSOLE MESSAGE: line 13: 1,2,3,4
54 CONSOLE MESSAGE: line 12: [object Object] 52 CONSOLE MESSAGE: line 12: [object Object]
55 CONSOLE MESSAGE: line 13: [object Object] 53 CONSOLE MESSAGE: line 13: [object Object]
56 CONSOLE MESSAGE: line 12: function () {} 54 CONSOLE MESSAGE: line 12: function () {}
57 CONSOLE MESSAGE: line 13: function () {} 55 CONSOLE MESSAGE: line 13: function () {}
58 CONSOLE MESSAGE: line 12: [object Object] 56 CONSOLE MESSAGE: line 12: [object Object]
59 CONSOLE MESSAGE: line 13: [object Object] 57 CONSOLE MESSAGE: line 13: [object Object]
60 CONSOLE MESSAGE: line 12: [object SVGSVGElement] 58 CONSOLE MESSAGE: line 12: [object SVGSVGElement]
61 CONSOLE MESSAGE: line 13: [object SVGSVGElement] 59 CONSOLE MESSAGE: line 13: [object SVGSVGElement]
62 CONSOLE MESSAGE: line 12: [object Object] 60 CONSOLE MESSAGE: line 12: [object Object]
63 CONSOLE MESSAGE: line 13: [object Object] 61 CONSOLE MESSAGE: line 13: [object Object]
64 CONSOLE MESSAGE: line 12: 0 62 CONSOLE MESSAGE: line 12: 0
65 CONSOLE MESSAGE: line 13: 0 63 CONSOLE MESSAGE: line 13: 0
66 CONSOLE MESSAGE: line 12: 64 CONSOLE MESSAGE: line 12:
67 CONSOLE MESSAGE: line 13: 65 CONSOLE MESSAGE: line 13:
68 CONSOLE MESSAGE: line 12: function Object() { [native code] } 66 CONSOLE MESSAGE: line 12: function Object() { [native code] }
69 CONSOLE MESSAGE: line 13: function Object() { [native code] } 67 CONSOLE MESSAGE: line 13: function Object() { [native code] }
70 CONSOLE MESSAGE: line 12: [object Object] 68 CONSOLE MESSAGE: line 12: [object Object]
71 CONSOLE MESSAGE: line 13: [object Object] 69 CONSOLE MESSAGE: line 13: [object Object]
72 Tests that console logging dumps proper messages. 70 Tests that console logging dumps proper messages.
73 71
74 72 Array[10]0: "test"1: "test2"4: "test4"foo: Objectlength: 10__proto__: Array[0] console-format.html:26
75 73 Array[10]0: "test"1: "test2"4: "test4"foo: Objectlength: 10__proto__: Array[0] c onsole-format.html:27
76 Array[10] 74 Array[10]0: "test"1: "test2"4: "test4"foo: Objectlength: 10__proto__: Array[0] c onsole-format.html:28
77 0: "test"
78 1: "test2"
79 4: "test4"
80 foo: Object
81 length: 10
82 __proto__: Array[0] console-format.html:26
83
84 Array[10]
85 0: "test"
86 1: "test2"
87 4: "test4"
88 foo: Object
89 length: 10
90 __proto__: Array[0] console-format.html:27
91
92 Array[10]
93 0: "test"
94 1: "test2"
95 4: "test4"
96 foo: Object
97 length: 10
98 __proto__: Array[0] console-format.html:28
99
100 Test for zero "0" in formatter console-format.html:29 75 Test for zero "0" in formatter console-format.html:29
101
102 /^url\(\s*(?:(?:"(?:[^\\\"]|(?:\\[\da-f]{1,6}\s?|\.))*"|'(?:[^\\\']|(?:\\[\da-f] {1,6}\s?|\.))*')|(?:[!#$%&*-~\w]|(?:\\[\da-f]{1,6}\s?|\.))*)\s*\)/i console-form at.html:12 76 /^url\(\s*(?:(?:"(?:[^\\\"]|(?:\\[\da-f]{1,6}\s?|\.))*"|'(?:[^\\\']|(?:\\[\da-f] {1,6}\s?|\.))*')|(?:[!#$%&*-~\w]|(?:\\[\da-f]{1,6}\s?|\.))*)\s*\)/i console-form at.html:12
103 77 [/^url\(\s*(?:(?:"(?:[^\\\"]|(?:\\[\da-f]{1,6}\s?|\…?:[!#$%&*-~\w]|(?:\\[\da-f]{ 1,6}\s?|\.))*)\s*\)/i]0: /^url\(\s*(?:(?:"(?:[^\\\"]|(?:\\[\da-f]{1,6}\s?|\.))*" |'(?:[^\\\']|(?:\\[\da-f]{1,6}\s?|\.))*')|(?:[!#$%&*-~\w]|(?:\\[\da-f]{1,6}\s?|\ .))*)\s*\)/ilength: 1__proto__: Array[0] console-format.html:13
104 [/^url\(\s*(?:(?:"(?:[^\\\"]|(?:\\[\da-f]{1,6}\s?|\…?:[!#$%&*-~\w]|(?:\\[\da-f]{ 1,6}\s?|\.))*)\s*\)/i] 78 globals[0]
105 0: /^url\(\s*(?:(?:"(?:[^\\\"]|(?:\\[\da-f]{1,6}\s?|\.))*"|'(?:[^\\\']|(?:\\ [\da-f]{1,6}\s?|\.))*')|(?:[!#$%&*-~\w]|(?:\\[\da-f]{1,6}\s?|\.))*)\s*\)/i
106 length: 1
107 __proto__: Array[0] console-format.html:13
108
109 > globals[0]
110
111 /^url\(\s*(?:(?:"(?:[^\\\"]|(?:\\[\da-f]{1,6}\s?|\.))*"|'(?:[^\\\']|(?:\\[\da-f] {1,6}\s?|\.))*')|(?:[!#$%&*-~\w]|(?:\\[\da-f]{1,6}\s?|\.))*)\s*\)/i 79 /^url\(\s*(?:(?:"(?:[^\\\"]|(?:\\[\da-f]{1,6}\s?|\.))*"|'(?:[^\\\']|(?:\\[\da-f] {1,6}\s?|\.))*')|(?:[!#$%&*-~\w]|(?:\\[\da-f]{1,6}\s?|\.))*)\s*\)/i
112
113 /foo\\bar\sbaz/i console-format.html:12 80 /foo\\bar\sbaz/i console-format.html:12
114 81 [/foo\\bar\sbaz/i]0: /foo\\bar\sbaz/ilength: 1__proto__: Array[0] console-format .html:13
115 [/foo\\bar\sbaz/i] 82 globals[1]
116 0: /foo\\bar\sbaz/i
117 length: 1
118 __proto__: Array[0] console-format.html:13
119
120 > globals[1]
121
122 /foo\\bar\sbaz/i 83 /foo\\bar\sbaz/i
123
124 test console-format.html:12 84 test console-format.html:12
125
126 ["test"] console-format.html:13 85 ["test"] console-format.html:13
127 86 globals[2]
128 > globals[2]
129
130 "test" 87 "test"
131
132 test named "test" console-format.html:12 88 test named "test" console-format.html:12
133
134 ["test named "test""] console-format.html:13 89 ["test named "test""] console-format.html:13
135 90 globals[3]
136 > globals[3]
137
138 "test named "test"" 91 "test named "test""
139 92 Error {stack: (...)}stack: (...)get stack: function () { [native code] }set stac k: function () { [native code] }__proto__: d console-format.html:12
140 Error {stack: (...)} 93 [Error]0: Errorlength: 1__proto__: Array[0] console-format.html:13
141 stack: (...) 94 globals[4]
142 get stack: function () { [native code] } 95 Error {stack: (...)}stack: (...)get stack: function () { [native code] }set stac k: function () { [native code] }__proto__: d
143 set stack: function () { [native code] } 96 Error {stack: (...), message: "my error message"}message: "my error message"stac k: (...)get stack: function () { [native code] }set stack: function () { [native code] }__proto__: d console-format.html:12
144 __proto__: d console-format.html:12 97 [Error]0: Errorlength: 1__proto__: Array[0] console-format.html:13
145 98 globals[5]
146 [Error] 99 Error {stack: (...), message: "my error message"}message: "my error message"stac k: (...)get stack: function () { [native code] }set stack: function () { [native code] }__proto__: d
147 0: Error 100 <p id="p">Tests that console logging dumps proper messages.</p> console-format.h tml:12
148 length: 1 101 [p#p]0: p#plength: 1__proto__: Array[0] console-format.html:13
149 __proto__: Array[0] console-format.html:13 102 globals[6]
150 103 <p id="p">Tests that console logging dumps proper messages.</p>
151 > globals[4]
152
153 Error {stack: (...)}
154 stack: (...)
155 get stack: function () { [native code] }
156 set stack: function () { [native code] }
157 __proto__: d
158
159 Error {stack: (...), message: "my error message"}
160 message: "my error message"
161 stack: (...)
162 get stack: function () { [native code] }
163 set stack: function () { [native code] }
164 __proto__: d console-format.html:12
165
166 [Error]
167 0: Error
168 length: 1
169 __proto__: Array[0] console-format.html:13
170
171 > globals[5]
172
173 Error {stack: (...), message: "my error message"}
174 message: "my error message"
175 stack: (...)
176 get stack: function () { [native code] }
177 set stack: function () { [native code] }
178 __proto__: d
179
180
181 <p id="p">Tests that console logging dumps proper messages.</p> console- format.html:12
182
183 [p#p]
184 0: p#p
185 length: 1
186 __proto__: Array[0] console-format.html:13
187
188 > globals[6]
189
190
191 <p id="p">Tests that console logging dumps proper messages.</p>
192
193 function () { return 1; } console-format.html:12 104 function () { return 1; } console-format.html:12
194 105 [function]0: function () { return 1; }length: 1__proto__: Array[0] console-forma t.html:13
195 [function] 106 globals[7]
196 0: function () { return 1; }
197 length: 1
198 __proto__: Array[0] console-format.html:13
199
200 > globals[7]
201
202 function () { return 1; } console-format.html:38 107 function () { return 1; } console-format.html:38
203
204 function () { 108 function () {
205 return 2; 109 return 2;
206 } console-format.html:12 110 } console-format.html:12
207 111 [function]0: function () {length: 1__proto__: Array[0] console-format.html:13
208 [function] 112 globals[8]
209 0: function () {
210 length: 1
211 __proto__: Array[0] console-format.html:13
212
213 > globals[8]
214
215 function () { 113 function () {
216 return 2; 114 return 2;
217 } console-format.html:39 115 } console-format.html:39
218
219 0.12 console-format.html:12 116 0.12 console-format.html:12
220
221 [0.12] console-format.html:13 117 [0.12] console-format.html:13
222 118 globals[9]
223 > globals[9]
224
225 0.12 119 0.12
226
227 http://webkit.org/ console-format.html:12 120 http://webkit.org/ console-format.html:12
228
229 ["http://webkit.org/"] console-format.html:13 121 ["http://webkit.org/"] console-format.html:13
230 122 globals[10]
231 > globals[10]
232
233 "http://webkit.org/" 123 "http://webkit.org/"
234
235 null console-format.html:12 124 null console-format.html:12
236
237 [null] console-format.html:13 125 [null] console-format.html:13
238 126 globals[11]
239 > globals[11]
240
241 null 127 null
242
243 undefined console-format.html:12 128 undefined console-format.html:12
244
245 [undefined] console-format.html:13 129 [undefined] console-format.html:13
246 130 globals[12]
247 > globals[12]
248
249 undefined 131 undefined
250 132 Attr.specified is deprecated. Its value is always true. VM:449
251 Attr.specified is deprecated. Its value is always true. VM:460 133 attr="" console-format.html:12
252 134 [attr]0: attrlength: 1__proto__: Array[0] console-format.html:13
253 135 globals[13]
254 attr=​"" console-format.html:12 136 attr=""
255 137 attr="value""value" console-format.html:12
256 [attr] 138 [attr]0: attrlength: 1__proto__: Array[0] console-format.html:13
257 0: attr 139 globals[14]
258 length: 1 140 attr="value""value"
259 __proto__: Array[0] console-format.html:13 141 id="x""x" console-format.html:12
260 142 [id]0: idlength: 1__proto__: Array[0] console-format.html:13
261 > globals[13] 143 globals[15]
262 144 id="x""x"
263 145 Object {length: (...)}length: (...)get length: function length() { throw "Length called"; }__proto__: Object console-format.html:12
264 attr=​"" 146 [Object]0: Objectlength: 1__proto__: Array[0] console-format.html:13
265 147 globals[16]
266 148 Object {length: (...)}length: (...)get length: function length() { throw "Length called"; }__proto__: Object
267 attr=​"value"
268 "value" console-format.html:12
269
270 [attr]
271 0: attr
272 length: 1
273 __proto__: Array[0] console-format.html:13
274
275 > globals[14]
276
277
278 attr=​"value"
279 "value"
280
281
282 id=​"x"
283 "x" console-format.html:12
284
285 [id]
286 0: id
287 length: 1
288 __proto__: Array[0] console-format.html:13
289
290 > globals[15]
291
292
293 id=​"x"
294 "x"
295
296 Object {length: (...)}
297 length: (...)
298 get length: function length() { throw "Length called"; }
299 __proto__: Object console-format.html:12
300
301 [Object]
302 0: Object
303 length: 1
304 __proto__: Array[0] console-format.html:13
305
306 > globals[16]
307
308 Object {length: (...)}
309 length: (...)
310 get length: function length() { throw "Length called"; }
311 __proto__: Object
312
313 NaN console-format.html:12 149 NaN console-format.html:12
314
315 [NaN] console-format.html:13 150 [NaN] console-format.html:13
316 151 globals[17]
317 > globals[17]
318
319 NaN 152 NaN
320
321 Infinity console-format.html:12 153 Infinity console-format.html:12
322
323 [Infinity] console-format.html:13 154 [Infinity] console-format.html:13
324 155 globals[18]
325 > globals[18]
326
327 Infinity 156 Infinity
328
329 -Infinity console-format.html:12 157 -Infinity console-format.html:12
330
331 [-Infinity] console-format.html:13 158 [-Infinity] console-format.html:13
332 159 globals[19]
333 > globals[19]
334
335 -Infinity 160 -Infinity
336 161 ["test", "test2", 4: "test4", foo: Object]0: "test"1: "test2"4: "test4"foo: Obje ctlength: 10__proto__: Array[0] console-format.html:12
337 ["test", "test2", undefined × 2, "test4", undefined × 5, foo: Object] 162 [Array[10]]0: Array[10]length: 1__proto__: Array[0] console-format.html:13
338 0: "test" 163 globals[20]
339 1: "test2" 164 ["test", "test2", undefined × 2, "test4", undefined × 5]
340 4: "test4"
341 foo: Object
342 length: 10
343 __proto__: Array[0] console-format.html:12
344
345 [Array[10]]
346 0: Array[10]
347 length: 1
348 __proto__: Array[0] console-format.html:13
349
350 > globals[20]
351
352 ["test", "test2", undefined × 2, "test4", undefined × 5, foo: Object
353 __proto__: Object]
354
355 [1, 2, 3, 4, index0: 0, index1: 1, index2: 2, index3: 3, index4: 4…]
356 0: 1
357 1: 2
358 2: 3
359 3: 4
360 index0: 0
361 index1: 1
362 index2: 2
363 index3: 3
364 index4: 4
365 index5: 5
366 length: 4
367 __proto__: Array[0] console-format.html:12
368
369 [Array[4]]
370 0: Array[4]
371 length: 1
372 __proto__: Array[0] console-format.html:13
373
374 > globals[21]
375
376 [1, 2, 3, 4, index0: 0, index1: 1, index2: 2, index3: 3, index4: 4…]
377
378 Object {} console-format.html:12 165 Object {} console-format.html:12
379 166 [Object]0: Objectlength: 1__proto__: Array[0] console-format.html:13
380 [Object] 167 globals[21]
381 0: Object 168 Object {}
382 length: 1 169 [function]0: function () {}length: 1__proto__: Array[0] console-format.html:12
383 __proto__: Array[0] console-format.html:13 170 [Array[1]]0: Array[1]length: 1__proto__: Array[0] console-format.html:13
384 171 globals[22]
385 > globals[22] 172 [function () {}]
386 173 Object {bar: "bar", foo: "foo"} console-format.html:12
174 [Object]0: Objectlength: 1__proto__: Array[0] console-format.html:13
175 globals[23]
176 Object {bar: "bar", foo: "foo"}
177 <svg id="svg-node"></svg> console-format.html:12
178 [svg#svg-node]0: svg#svg-nodelength: 1__proto__: Array[0] console-format.html:13
179 globals[24]
180 <svg id="svg-node"></svg>
181 Object {bar: (...), foo: 1}bar: (...)get bar: function () { return this.bar; }se t bar: function (x) { this.bar = x; }getFoo: function () { return this.foo; }__p roto__: Object console-format.html:12
182 [Object]0: Objectlength: 1__proto__: Array[0] console-format.html:13
183 globals[25]
184 Object {bar: (...), foo: 1}bar: (...)get bar: function () { return this.bar; }se t bar: function (x) { this.bar = x; }getFoo: function () { return this.foo; }__p roto__: Object
185 -0 console-format.html:12
186 [-0] console-format.html:13
187 globals[26]
188 -0
189 Object {} console-format.html:12
190 [Object]0: Objectlength: 1__proto__: Array[0] console-format.html:13
191 globals[27]
192 Object {}
193 function Object() { [native code] } console-format.html:12
194 [function]0: function Object() { [native code] }length: 1__proto__: Array[0] con sole-format.html:13
195 globals[28]
196 function Object() { [native code] }
197 Object {} console-format.html:12
198 [Object]0: Objectlength: 1__proto__: Array[0] console-format.html:13
199 globals[29]
387 Object {} 200 Object {}
388 201
389 [function]
390 0: function () {}
391 length: 1
392 __proto__: Array[0] console-format.html:12
393
394 [Array[1]]
395 0: Array[1]
396 length: 1
397 __proto__: Array[0] console-format.html:13
398
399 > globals[23]
400
401 [function () {}]
402
403 Object {bar: "bar", foo: "foo"} console-format.html:12
404
405 [Object]
406 0: Object
407 length: 1
408 __proto__: Array[0] console-format.html:13
409
410 > globals[24]
411
412 Object {bar: "bar", foo: "foo"}
413
414
415 <svg id=​"svg-node">​</svg>​ console-format.html:12
416
417 [svg#svg-node]
418 0: svg#svg-node
419 length: 1
420 __proto__: Array[0] console-format.html:13
421
422 > globals[25]
423
424
425 <svg id=​"svg-node">​</svg>​
426
427 Object {bar: (...), foo: 1}
428 bar: (...)
429 get bar: function () { return this.bar; }
430 set bar: function (x) { this.bar = x; }
431 getFoo: function () { return this.foo; }
432 __proto__: Object console-format.html:12
433
434 [Object]
435 0: Object
436 length: 1
437 __proto__: Array[0] console-format.html:13
438
439 > globals[26]
440
441 Object {bar: (...), foo: 1}
442 bar: (...)
443 get bar: function () { return this.bar; }
444 set bar: function (x) { this.bar = x; }
445 getFoo: function () { return this.foo; }
446 __proto__: Object
447
448 -0 console-format.html:12
449
450 [-0] console-format.html:13
451
452 > globals[27]
453
454 -0
455
456 Object {} console-format.html:12
457
458 [Object]
459 0: Object
460 length: 1
461 __proto__: Array[0] console-format.html:13
462
463 > globals[28]
464
465 Object {}
466
467 function Object() { [native code] } console-format.html:12
468
469 [function]
470 0: function Object() { [native code] }
471 length: 1
472 __proto__: Array[0] console-format.html:13
473
474 > globals[29]
475
476 function Object() { [native code] }
477
478 Object {} console-format.html:12
479
480 [Object]
481 0: Object
482 length: 1
483 __proto__: Array[0] console-format.html:13
484
485 > globals[30]
486
487 Object {}
488
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698