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

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

Issue 143263003: DevTools: Fix console.log for arrays in some corner cases. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
52 CONSOLE MESSAGE: line 12: [object Object] 54 CONSOLE MESSAGE: line 12: [object Object]
53 CONSOLE MESSAGE: line 13: [object Object] 55 CONSOLE MESSAGE: line 13: [object Object]
54 CONSOLE MESSAGE: line 12: function () {} 56 CONSOLE MESSAGE: line 12: function () {}
55 CONSOLE MESSAGE: line 13: function () {} 57 CONSOLE MESSAGE: line 13: function () {}
56 CONSOLE MESSAGE: line 12: [object Object] 58 CONSOLE MESSAGE: line 12: [object Object]
57 CONSOLE MESSAGE: line 13: [object Object] 59 CONSOLE MESSAGE: line 13: [object Object]
58 CONSOLE MESSAGE: line 12: [object SVGSVGElement] 60 CONSOLE MESSAGE: line 12: [object SVGSVGElement]
59 CONSOLE MESSAGE: line 13: [object SVGSVGElement] 61 CONSOLE MESSAGE: line 13: [object SVGSVGElement]
60 CONSOLE MESSAGE: line 12: [object Object] 62 CONSOLE MESSAGE: line 12: [object Object]
61 CONSOLE MESSAGE: line 13: [object Object] 63 CONSOLE MESSAGE: line 13: [object Object]
62 CONSOLE MESSAGE: line 12: 0 64 CONSOLE MESSAGE: line 12: 0
63 CONSOLE MESSAGE: line 13: 0 65 CONSOLE MESSAGE: line 13: 0
64 CONSOLE MESSAGE: line 12: 66 CONSOLE MESSAGE: line 12:
65 CONSOLE MESSAGE: line 13: 67 CONSOLE MESSAGE: line 13:
66 CONSOLE MESSAGE: line 12: function Object() { [native code] } 68 CONSOLE MESSAGE: line 12: function Object() { [native code] }
67 CONSOLE MESSAGE: line 13: function Object() { [native code] } 69 CONSOLE MESSAGE: line 13: function Object() { [native code] }
68 CONSOLE MESSAGE: line 12: [object Object] 70 CONSOLE MESSAGE: line 12: [object Object]
69 CONSOLE MESSAGE: line 13: [object Object] 71 CONSOLE MESSAGE: line 13: [object Object]
70 Tests that console logging dumps proper messages. 72 Tests that console logging dumps proper messages.
71 73
72 Array[10]0: "test"1: "test2"4: "test4"foo: Objectlength: 10__proto__: Array[0] console-format.html:26 74
73 Array[10]0: "test"1: "test2"4: "test4"foo: Objectlength: 10__proto__: Array[0] c onsole-format.html:27 75
74 Array[10]0: "test"1: "test2"4: "test4"foo: Objectlength: 10__proto__: Array[0] c onsole-format.html:28 76 Array[10]
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
75 Test for zero "0" in formatter console-format.html:29 100 Test for zero "0" in formatter console-format.html:29
101
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 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
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 103
78 globals[0] 104 [/^url\(\s*(?:(?:"(?:[^\\\"]|(?:\\[\da-f]{1,6}\s?|\…?:[!#$%&*-~\w]|(?:\\[\da-f]{ 1,6}\s?|\.))*)\s*\)/i]
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
79 /^url\(\s*(?:(?:"(?:[^\\\"]|(?:\\[\da-f]{1,6}\s?|\.))*"|'(?:[^\\\']|(?:\\[\da-f] {1,6}\s?|\.))*')|(?:[!#$%&*-~\w]|(?:\\[\da-f]{1,6}\s?|\.))*)\s*\)/i 111 /^url\(\s*(?:(?:"(?:[^\\\"]|(?:\\[\da-f]{1,6}\s?|\.))*"|'(?:[^\\\']|(?:\\[\da-f] {1,6}\s?|\.))*')|(?:[!#$%&*-~\w]|(?:\\[\da-f]{1,6}\s?|\.))*)\s*\)/i
112
80 /foo\\bar\sbaz/i console-format.html:12 113 /foo\\bar\sbaz/i console-format.html:12
81 [/foo\\bar\sbaz/i]0: /foo\\bar\sbaz/ilength: 1__proto__: Array[0] console-format .html:13 114
82 globals[1] 115 [/foo\\bar\sbaz/i]
116 0: /foo\\bar\sbaz/i
117 length: 1
118 __proto__: Array[0] console-format.html:13
119
120 > globals[1]
121
83 /foo\\bar\sbaz/i 122 /foo\\bar\sbaz/i
123
84 test console-format.html:12 124 test console-format.html:12
125
85 ["test"] console-format.html:13 126 ["test"] console-format.html:13
86 globals[2] 127
128 > globals[2]
129
87 "test" 130 "test"
131
88 test named "test" console-format.html:12 132 test named "test" console-format.html:12
133
89 ["test named "test""] console-format.html:13 134 ["test named "test""] console-format.html:13
90 globals[3] 135
136 > globals[3]
137
91 "test named "test"" 138 "test named "test""
92 Error {stack: (...)}stack: (...)get stack: function () { [native code] }set stac k: function () { [native code] }__proto__: d console-format.html:12 139
93 [Error]0: Errorlength: 1__proto__: Array[0] console-format.html:13 140 Error {stack: (...)}
94 globals[4] 141 stack: (...)
95 Error {stack: (...)}stack: (...)get stack: function () { [native code] }set stac k: function () { [native code] }__proto__: d 142 get 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 143 set stack: function () { [native code] }
97 [Error]0: Errorlength: 1__proto__: Array[0] console-format.html:13 144 __proto__: d console-format.html:12
98 globals[5] 145
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 146 [Error]
100 <p id="p">Tests that console logging dumps proper messages.</p> console-format.h tml:12 147 0: Error
101 [p#p]0: p#plength: 1__proto__: Array[0] console-format.html:13 148 length: 1
102 globals[6] 149 __proto__: Array[0] console-format.html:13
103 <p id="p">Tests that console logging dumps proper messages.</p> 150
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
104 function () { return 1; } console-format.html:12 193 function () { return 1; } console-format.html:12
105 [function]0: function () { return 1; }length: 1__proto__: Array[0] console-forma t.html:13 194
106 globals[7] 195 [function]
196 0: function () { return 1; }
197 length: 1
198 __proto__: Array[0] console-format.html:13
199
200 > globals[7]
201
107 function () { return 1; } console-format.html:38 202 function () { return 1; } console-format.html:38
203
108 function () { 204 function () {
109 return 2; 205 return 2;
110 } console-format.html:12 206 } console-format.html:12
111 [function]0: function () {length: 1__proto__: Array[0] console-format.html:13 207
112 globals[8] 208 [function]
209 0: function () {
210 length: 1
211 __proto__: Array[0] console-format.html:13
212
213 > globals[8]
214
113 function () { 215 function () {
114 return 2; 216 return 2;
115 } console-format.html:39 217 } console-format.html:39
218
116 0.12 console-format.html:12 219 0.12 console-format.html:12
220
117 [0.12] console-format.html:13 221 [0.12] console-format.html:13
118 globals[9] 222
223 > globals[9]
224
119 0.12 225 0.12
226
120 http://webkit.org/ console-format.html:12 227 http://webkit.org/ console-format.html:12
228
121 ["http://webkit.org/"] console-format.html:13 229 ["http://webkit.org/"] console-format.html:13
122 globals[10] 230
231 > globals[10]
232
123 "http://webkit.org/" 233 "http://webkit.org/"
234
124 null console-format.html:12 235 null console-format.html:12
236
125 [null] console-format.html:13 237 [null] console-format.html:13
126 globals[11] 238
239 > globals[11]
240
127 null 241 null
242
128 undefined console-format.html:12 243 undefined console-format.html:12
244
129 [undefined] console-format.html:13 245 [undefined] console-format.html:13
130 globals[12] 246
247 > globals[12]
248
131 undefined 249 undefined
132 Attr.specified is deprecated. Its value is always true. VM:448 250
133 attr="" console-format.html:12 251 Attr.specified is deprecated. Its value is always true. VM:459
134 [attr]0: attrlength: 1__proto__: Array[0] console-format.html:13 252
135 globals[13] 253
136 attr="" 254 attr="" console-format.html:12
137 attr="value""value" console-format.html:12 255
138 [attr]0: attrlength: 1__proto__: Array[0] console-format.html:13 256 [attr]
139 globals[14] 257 0: attr
140 attr="value""value" 258 length: 1
141 id="x""x" console-format.html:12 259 __proto__: Array[0] console-format.html:13
142 [id]0: idlength: 1__proto__: Array[0] console-format.html:13 260
143 globals[15] 261 > globals[13]
144 id="x""x" 262
145 Object {length: (...)}length: (...)get length: function length() { throw "Length called"; }__proto__: Object console-format.html:12 263
146 [Object]0: Objectlength: 1__proto__: Array[0] console-format.html:13 264 attr=​""
147 globals[16] 265
148 Object {length: (...)}length: (...)get length: function length() { throw "Length called"; }__proto__: Object 266
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
149 NaN console-format.html:12 313 NaN console-format.html:12
314
150 [NaN] console-format.html:13 315 [NaN] console-format.html:13
151 globals[17] 316
317 > globals[17]
318
152 NaN 319 NaN
320
153 Infinity console-format.html:12 321 Infinity console-format.html:12
322
154 [Infinity] console-format.html:13 323 [Infinity] console-format.html:13
155 globals[18] 324
325 > globals[18]
326
156 Infinity 327 Infinity
328
157 -Infinity console-format.html:12 329 -Infinity console-format.html:12
330
158 [-Infinity] console-format.html:13 331 [-Infinity] console-format.html:13
159 globals[19] 332
333 > globals[19]
334
160 -Infinity 335 -Infinity
161 ["test", "test2", 4: "test4", foo: Object]0: "test"1: "test2"4: "test4"foo: Obje ctlength: 10__proto__: Array[0] console-format.html:12 336
162 [Array[10]]0: Array[10]length: 1__proto__: Array[0] console-format.html:13 337 ["test", "test2", undefined × 2, "test4", undefined × 5, foo: Object]
163 globals[20] 338 0: "test"
164 ["test", "test2", undefined × 2, "test4", undefined × 5] 339 1: "test2"
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
165 Object {} console-format.html:12 378 Object {} console-format.html:12
166 [Object]0: Objectlength: 1__proto__: Array[0] console-format.html:13 379
167 globals[21] 380 [Object]
381 0: Object
382 length: 1
383 __proto__: Array[0] console-format.html:13
384
385 > globals[22]
386
168 Object {} 387 Object {}
169 [function]0: function () {}length: 1__proto__: Array[0] console-format.html:12 388
170 [Array[1]]0: Array[1]length: 1__proto__: Array[0] console-format.html:13 389 [function]
171 globals[22] 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
172 [function () {}] 401 [function () {}]
402
173 Object {bar: "bar", foo: "foo"} console-format.html:12 403 Object {bar: "bar", foo: "foo"} console-format.html:12
174 [Object]0: Objectlength: 1__proto__: Array[0] console-format.html:13 404
175 globals[23] 405 [Object]
406 0: Object
407 length: 1
408 __proto__: Array[0] console-format.html:13
409
410 > globals[24]
411
176 Object {bar: "bar", foo: "foo"} 412 Object {bar: "bar", foo: "foo"}
177 <svg id="svg-node"></svg> console-format.html:12 413
178 [svg#svg-node]0: svg#svg-nodelength: 1__proto__: Array[0] console-format.html:13 414
179 globals[24] 415 <svg id="svg-node"></svg> console-format.html:12
180 <svg id="svg-node"></svg> 416
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 417 [svg#svg-node]
182 [Object]0: Objectlength: 1__proto__: Array[0] console-format.html:13 418 0: svg#svg-node
183 globals[25] 419 length: 1
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 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
185 -0 console-format.html:12 448 -0 console-format.html:12
449
186 [-0] console-format.html:13 450 [-0] console-format.html:13
187 globals[26] 451
452 > globals[27]
453
188 -0 454 -0
455
189 Object {} console-format.html:12 456 Object {} console-format.html:12
190 [Object]0: Objectlength: 1__proto__: Array[0] console-format.html:13 457
191 globals[27] 458 [Object]
459 0: Object
460 length: 1
461 __proto__: Array[0] console-format.html:13
462
463 > globals[28]
464
192 Object {} 465 Object {}
466
193 function Object() { [native code] } console-format.html:12 467 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 468
195 globals[28] 469 [function]
470 0: function Object() { [native code] }
471 length: 1
472 __proto__: Array[0] console-format.html:13
473
474 > globals[29]
475
196 function Object() { [native code] } 476 function Object() { [native code] }
477
197 Object {} console-format.html:12 478 Object {} console-format.html:12
198 [Object]0: Objectlength: 1__proto__: Array[0] console-format.html:13 479
199 globals[29] 480 [Object]
481 0: Object
482 length: 1
483 __proto__: Array[0] console-format.html:13
484
485 > globals[30]
486
200 Object {} 487 Object {}
201 488
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698