Web Inspector: WebInspector.Object.addEventListener is O(n), make it O(1)
[WebKit-https.git] / LayoutTests / inspector / console / console-api-expected.txt
1 CONSOLE MESSAGE: line 3: console.log
2 CONSOLE MESSAGE: line 3: console.warn
3 CONSOLE MESSAGE: line 3: console.error
4 CONSOLE MESSAGE: line 3: console.debug
5 CONSOLE MESSAGE: line 3: console.info
6 CONSOLE MESSAGE: line 3: assertion message
7 CONSOLE MESSAGE: line 3: string message
8 CONSOLE MESSAGE: line 3: message
9 CONSOLE MESSAGE: line 3: message
10 CONSOLE MESSAGE: line 3: message
11 CONSOLE MESSAGE: line 3: message
12 CONSOLE MESSAGE: line 3: message
13 CONSOLE MESSAGE: line 3: [object Object]
14 CONSOLE MESSAGE: line 3: [object Object]
15 CONSOLE MESSAGE: line 3: groupName
16 CONSOLE MESSAGE: groupName
17 CONSOLE MESSAGE: line 3: collapsedGroupName
18 CONSOLE MESSAGE: collapsedGroupName
19
20 STEP: console.log('console.log')
21 {
22   "_listeners": null,
23   "_source": "console-api",
24   "_level": "log",
25   "_messageText": "console.log",
26   "_type": "log",
27   "_url": null,
28   "_line": 3,
29   "_column": 12,
30   "_repeatCount": 1,
31   "_parameters": [
32     {
33       "_type": "string",
34       "_description": "console.log",
35       "_hasChildren": false,
36       "_value": "console.log"
37     }
38   ],
39   "_stackTrace": "<filtered>",
40   "_request": null
41 }
42
43 STEP: console.warn('console.warn')
44 {
45   "_listeners": null,
46   "_source": "console-api",
47   "_level": "warning",
48   "_messageText": "console.warn",
49   "_type": "log",
50   "_url": null,
51   "_line": 3,
52   "_column": 13,
53   "_repeatCount": 1,
54   "_parameters": [
55     {
56       "_type": "string",
57       "_description": "console.warn",
58       "_hasChildren": false,
59       "_value": "console.warn"
60     }
61   ],
62   "_stackTrace": "<filtered>",
63   "_request": null
64 }
65
66 STEP: console.error('console.error')
67 {
68   "_listeners": null,
69   "_source": "console-api",
70   "_level": "error",
71   "_messageText": "console.error",
72   "_type": "log",
73   "_url": null,
74   "_line": 3,
75   "_column": 14,
76   "_repeatCount": 1,
77   "_parameters": [
78     {
79       "_type": "string",
80       "_description": "console.error",
81       "_hasChildren": false,
82       "_value": "console.error"
83     }
84   ],
85   "_stackTrace": "<filtered>",
86   "_request": null
87 }
88
89 STEP: console.debug('console.debug')
90 {
91   "_listeners": null,
92   "_source": "console-api",
93   "_level": "debug",
94   "_messageText": "console.debug",
95   "_type": "log",
96   "_url": null,
97   "_line": 3,
98   "_column": 14,
99   "_repeatCount": 1,
100   "_parameters": [
101     {
102       "_type": "string",
103       "_description": "console.debug",
104       "_hasChildren": false,
105       "_value": "console.debug"
106     }
107   ],
108   "_stackTrace": "<filtered>",
109   "_request": null
110 }
111
112 STEP: console.info('console.info')
113 {
114   "_listeners": null,
115   "_source": "console-api",
116   "_level": "info",
117   "_messageText": "console.info",
118   "_type": "log",
119   "_url": null,
120   "_line": 3,
121   "_column": 13,
122   "_repeatCount": 1,
123   "_parameters": [
124     {
125       "_type": "string",
126       "_description": "console.info",
127       "_hasChildren": false,
128       "_value": "console.info"
129     }
130   ],
131   "_stackTrace": "<filtered>",
132   "_request": null
133 }
134
135 STEP: console.assert(false, 'assertion message')
136 {
137   "_listeners": null,
138   "_source": "console-api",
139   "_level": "error",
140   "_messageText": "assertion message",
141   "_type": "assert",
142   "_url": null,
143   "_line": 3,
144   "_column": 15,
145   "_repeatCount": 1,
146   "_parameters": [
147     {
148       "_type": "string",
149       "_description": "assertion message",
150       "_hasChildren": false,
151       "_value": "assertion message"
152     }
153   ],
154   "_stackTrace": "<filtered>",
155   "_request": null
156 }
157
158 STEP: console.trace()
159 {
160   "_listeners": null,
161   "_source": "console-api",
162   "_level": "log",
163   "_messageText": "",
164   "_type": "trace",
165   "_url": null,
166   "_line": 3,
167   "_column": 14,
168   "_repeatCount": 1,
169   "_stackTrace": "<filtered>",
170   "_request": null
171 }
172
173 STEP: console.log('string message', string)
174 {
175   "_listeners": null,
176   "_source": "console-api",
177   "_level": "log",
178   "_messageText": "string message",
179   "_type": "log",
180   "_url": null,
181   "_line": 3,
182   "_column": 12,
183   "_repeatCount": 1,
184   "_parameters": [
185     {
186       "_type": "string",
187       "_description": "string message",
188       "_hasChildren": false,
189       "_value": "string message"
190     },
191     {
192       "_type": "string",
193       "_description": "string",
194       "_hasChildren": false,
195       "_value": "string"
196     }
197   ],
198   "_stackTrace": "<filtered>",
199   "_request": null
200 }
201
202 STEP: console.log('message', object, object)
203 {
204   "_listeners": null,
205   "_source": "console-api",
206   "_level": "log",
207   "_messageText": "message",
208   "_type": "log",
209   "_url": null,
210   "_line": 3,
211   "_column": 12,
212   "_repeatCount": 1,
213   "_parameters": [
214     {
215       "_type": "string",
216       "_description": "message",
217       "_hasChildren": false,
218       "_value": "message"
219     },
220     {
221       "_type": "object",
222       "_objectId": "<filtered>",
223       "_description": "Object",
224       "_hasChildren": true,
225       "_preview": {
226         "_listeners": null,
227         "_type": "object",
228         "_description": "Object",
229         "_lossless": true,
230         "_overflow": false,
231         "_properties": [
232           {
233             "_listeners": null,
234             "_name": "a",
235             "_type": "number",
236             "_value": "1"
237           }
238         ],
239         "_entries": null
240       }
241     },
242     {
243       "_type": "object",
244       "_objectId": "<filtered>",
245       "_description": "Object",
246       "_hasChildren": true,
247       "_preview": {
248         "_listeners": null,
249         "_type": "object",
250         "_description": "Object",
251         "_lossless": true,
252         "_overflow": false,
253         "_properties": [
254           {
255             "_listeners": null,
256             "_name": "a",
257             "_type": "number",
258             "_value": "1"
259           }
260         ],
261         "_entries": null
262       }
263     }
264   ],
265   "_stackTrace": "<filtered>",
266   "_request": null
267 }
268
269 STEP: console.error('message', object)
270 {
271   "_listeners": null,
272   "_source": "console-api",
273   "_level": "error",
274   "_messageText": "message",
275   "_type": "log",
276   "_url": null,
277   "_line": 3,
278   "_column": 14,
279   "_repeatCount": 1,
280   "_parameters": [
281     {
282       "_type": "string",
283       "_description": "message",
284       "_hasChildren": false,
285       "_value": "message"
286     },
287     {
288       "_type": "object",
289       "_objectId": "<filtered>",
290       "_description": "Object",
291       "_hasChildren": true,
292       "_preview": {
293         "_listeners": null,
294         "_type": "object",
295         "_description": "Object",
296         "_lossless": true,
297         "_overflow": false,
298         "_properties": [
299           {
300             "_listeners": null,
301             "_name": "a",
302             "_type": "number",
303             "_value": "1"
304           }
305         ],
306         "_entries": null
307       }
308     }
309   ],
310   "_stackTrace": "<filtered>",
311   "_request": null
312 }
313
314 STEP: console.warn('message', object)
315 {
316   "_listeners": null,
317   "_source": "console-api",
318   "_level": "warning",
319   "_messageText": "message",
320   "_type": "log",
321   "_url": null,
322   "_line": 3,
323   "_column": 13,
324   "_repeatCount": 1,
325   "_parameters": [
326     {
327       "_type": "string",
328       "_description": "message",
329       "_hasChildren": false,
330       "_value": "message"
331     },
332     {
333       "_type": "object",
334       "_objectId": "<filtered>",
335       "_description": "Object",
336       "_hasChildren": true,
337       "_preview": {
338         "_listeners": null,
339         "_type": "object",
340         "_description": "Object",
341         "_lossless": true,
342         "_overflow": false,
343         "_properties": [
344           {
345             "_listeners": null,
346             "_name": "a",
347             "_type": "number",
348             "_value": "1"
349           }
350         ],
351         "_entries": null
352       }
353     }
354   ],
355   "_stackTrace": "<filtered>",
356   "_request": null
357 }
358
359 STEP: console.debug('message', object)
360 {
361   "_listeners": null,
362   "_source": "console-api",
363   "_level": "debug",
364   "_messageText": "message",
365   "_type": "log",
366   "_url": null,
367   "_line": 3,
368   "_column": 14,
369   "_repeatCount": 1,
370   "_parameters": [
371     {
372       "_type": "string",
373       "_description": "message",
374       "_hasChildren": false,
375       "_value": "message"
376     },
377     {
378       "_type": "object",
379       "_objectId": "<filtered>",
380       "_description": "Object",
381       "_hasChildren": true,
382       "_preview": {
383         "_listeners": null,
384         "_type": "object",
385         "_description": "Object",
386         "_lossless": true,
387         "_overflow": false,
388         "_properties": [
389           {
390             "_listeners": null,
391             "_name": "a",
392             "_type": "number",
393             "_value": "1"
394           }
395         ],
396         "_entries": null
397       }
398     }
399   ],
400   "_stackTrace": "<filtered>",
401   "_request": null
402 }
403
404 STEP: console.info('message', object)
405 {
406   "_listeners": null,
407   "_source": "console-api",
408   "_level": "info",
409   "_messageText": "message",
410   "_type": "log",
411   "_url": null,
412   "_line": 3,
413   "_column": 13,
414   "_repeatCount": 1,
415   "_parameters": [
416     {
417       "_type": "string",
418       "_description": "message",
419       "_hasChildren": false,
420       "_value": "message"
421     },
422     {
423       "_type": "object",
424       "_objectId": "<filtered>",
425       "_description": "Object",
426       "_hasChildren": true,
427       "_preview": {
428         "_listeners": null,
429         "_type": "object",
430         "_description": "Object",
431         "_lossless": true,
432         "_overflow": false,
433         "_properties": [
434           {
435             "_listeners": null,
436             "_name": "a",
437             "_type": "number",
438             "_value": "1"
439           }
440         ],
441         "_entries": null
442       }
443     }
444   ],
445   "_stackTrace": "<filtered>",
446   "_request": null
447 }
448
449 STEP: console.dir(object)
450 {
451   "_listeners": null,
452   "_source": "console-api",
453   "_level": "log",
454   "_messageText": "[object Object]",
455   "_type": "dir",
456   "_url": null,
457   "_line": 3,
458   "_column": 12,
459   "_repeatCount": 1,
460   "_parameters": [
461     {
462       "_type": "object",
463       "_objectId": "<filtered>",
464       "_description": "Object",
465       "_hasChildren": true,
466       "_preview": {
467         "_listeners": null,
468         "_type": "object",
469         "_description": "Object",
470         "_lossless": true,
471         "_overflow": false,
472         "_properties": [
473           {
474             "_listeners": null,
475             "_name": "a",
476             "_type": "number",
477             "_value": "1"
478           }
479         ],
480         "_entries": null
481       }
482     }
483   ],
484   "_stackTrace": "<filtered>",
485   "_request": null
486 }
487
488 STEP: console.dirxml(object)
489 {
490   "_listeners": null,
491   "_source": "console-api",
492   "_level": "log",
493   "_messageText": "[object Object]",
494   "_type": "dirxml",
495   "_url": null,
496   "_line": 3,
497   "_column": 15,
498   "_repeatCount": 1,
499   "_parameters": [
500     {
501       "_type": "object",
502       "_objectId": "<filtered>",
503       "_description": "Object",
504       "_hasChildren": true,
505       "_preview": {
506         "_listeners": null,
507         "_type": "object",
508         "_description": "Object",
509         "_lossless": true,
510         "_overflow": false,
511         "_properties": [
512           {
513             "_listeners": null,
514             "_name": "a",
515             "_type": "number",
516             "_value": "1"
517           }
518         ],
519         "_entries": null
520       }
521     }
522   ],
523   "_stackTrace": "<filtered>",
524   "_request": null
525 }
526
527 STEP: console.group('groupName')
528 {
529   "_listeners": null,
530   "_source": "console-api",
531   "_level": "log",
532   "_messageText": "groupName",
533   "_type": "startGroup",
534   "_url": null,
535   "_line": 3,
536   "_column": 14,
537   "_repeatCount": 1,
538   "_parameters": [
539     {
540       "_type": "string",
541       "_description": "groupName",
542       "_hasChildren": false,
543       "_value": "groupName"
544     }
545   ],
546   "_stackTrace": "<filtered>",
547   "_request": null
548 }
549
550 STEP: console.groupEnd('groupName')
551 {
552   "_listeners": null,
553   "_source": "console-api",
554   "_level": "log",
555   "_messageText": "groupName",
556   "_type": "endGroup",
557   "_url": null,
558   "_line": 0,
559   "_column": 0,
560   "_repeatCount": 1,
561   "_parameters": [
562     {
563       "_type": "string",
564       "_description": "groupName",
565       "_hasChildren": false,
566       "_value": "groupName"
567     }
568   ],
569   "_stackTrace": "<filtered>",
570   "_request": null
571 }
572
573 STEP: console.groupCollapsed('collapsedGroupName')
574 {
575   "_listeners": null,
576   "_source": "console-api",
577   "_level": "log",
578   "_messageText": "collapsedGroupName",
579   "_type": "startGroupCollapsed",
580   "_url": null,
581   "_line": 3,
582   "_column": 23,
583   "_repeatCount": 1,
584   "_parameters": [
585     {
586       "_type": "string",
587       "_description": "collapsedGroupName",
588       "_hasChildren": false,
589       "_value": "collapsedGroupName"
590     }
591   ],
592   "_stackTrace": "<filtered>",
593   "_request": null
594 }
595
596 STEP: console.groupEnd('collapsedGroupName')
597 {
598   "_listeners": null,
599   "_source": "console-api",
600   "_level": "log",
601   "_messageText": "collapsedGroupName",
602   "_type": "endGroup",
603   "_url": null,
604   "_line": 0,
605   "_column": 0,
606   "_repeatCount": 1,
607   "_parameters": [
608     {
609       "_type": "string",
610       "_description": "collapsedGroupName",
611       "_hasChildren": false,
612       "_value": "collapsedGroupName"
613     }
614   ],
615   "_stackTrace": "<filtered>",
616   "_request": null
617 }
618
619 STEP: console.count()
620 {
621   "_listeners": null,
622   "_source": "console-api",
623   "_level": "debug",
624   "_messageText": "<no label>: 1",
625   "_type": "log",
626   "_url": null,
627   "_line": 3,
628   "_column": 14,
629   "_repeatCount": 1,
630   "_stackTrace": "<filtered>",
631   "_request": null
632 }
633
634 STEP: console.count()
635 {
636   "_listeners": null,
637   "_source": "console-api",
638   "_level": "debug",
639   "_messageText": "<no label>: 2",
640   "_type": "log",
641   "_url": null,
642   "_line": 3,
643   "_column": 14,
644   "_repeatCount": 1,
645   "_stackTrace": "<filtered>",
646   "_request": null
647 }
648
649 STEP: console.count('')
650 {
651   "_listeners": null,
652   "_source": "console-api",
653   "_level": "debug",
654   "_messageText": "<no label>: 3",
655   "_type": "log",
656   "_url": null,
657   "_line": 3,
658   "_column": 14,
659   "_repeatCount": 1,
660   "_stackTrace": "<filtered>",
661   "_request": null
662 }
663
664 STEP: console.count('    ')
665 {
666   "_listeners": null,
667   "_source": "console-api",
668   "_level": "debug",
669   "_messageText": "    : 1",
670   "_type": "log",
671   "_url": null,
672   "_line": 3,
673   "_column": 14,
674   "_repeatCount": 1,
675   "_stackTrace": "<filtered>",
676   "_request": null
677 }
678
679 STEP: console.count('')
680 {
681   "_listeners": null,
682   "_source": "console-api",
683   "_level": "debug",
684   "_messageText": "<no label>: 4",
685   "_type": "log",
686   "_url": null,
687   "_line": 3,
688   "_column": 14,
689   "_repeatCount": 1,
690   "_stackTrace": "<filtered>",
691   "_request": null
692 }
693
694 STEP: console.count('    ')
695 {
696   "_listeners": null,
697   "_source": "console-api",
698   "_level": "debug",
699   "_messageText": "    : 2",
700   "_type": "log",
701   "_url": null,
702   "_line": 3,
703   "_column": 14,
704   "_repeatCount": 1,
705   "_stackTrace": "<filtered>",
706   "_request": null
707 }
708
709 STEP: console.count(string)
710 {
711   "_listeners": null,
712   "_source": "console-api",
713   "_level": "debug",
714   "_messageText": "string: 1",
715   "_type": "log",
716   "_url": null,
717   "_line": 3,
718   "_column": 14,
719   "_repeatCount": 1,
720   "_stackTrace": "<filtered>",
721   "_request": null
722 }
723
724 STEP: console.count(string)
725 {
726   "_listeners": null,
727   "_source": "console-api",
728   "_level": "debug",
729   "_messageText": "string: 2",
730   "_type": "log",
731   "_url": null,
732   "_line": 3,
733   "_column": 14,
734   "_repeatCount": 1,
735   "_stackTrace": "<filtered>",
736   "_request": null
737 }
738
739 STEP: console.count(object)
740 {
741   "_listeners": null,
742   "_source": "console-api",
743   "_level": "debug",
744   "_messageText": "[object Object]: 1",
745   "_type": "log",
746   "_url": null,
747   "_line": 3,
748   "_column": 14,
749   "_repeatCount": 1,
750   "_stackTrace": "<filtered>",
751   "_request": null
752 }
753
754 STEP: console.count(object)
755 {
756   "_listeners": null,
757   "_source": "console-api",
758   "_level": "debug",
759   "_messageText": "[object Object]: 2",
760   "_type": "log",
761   "_url": null,
762   "_line": 3,
763   "_column": 14,
764   "_repeatCount": 1,
765   "_stackTrace": "<filtered>",
766   "_request": null
767 }
768
769 STEP: console.count(otherObject)
770 {
771   "_listeners": null,
772   "_source": "console-api",
773   "_level": "debug",
774   "_messageText": "[object Object]: 3",
775   "_type": "log",
776   "_url": null,
777   "_line": 3,
778   "_column": 14,
779   "_repeatCount": 1,
780   "_stackTrace": "<filtered>",
781   "_request": null
782 }
783
784 STEP: console.count(otherObject)
785 {
786   "_listeners": null,
787   "_source": "console-api",
788   "_level": "debug",
789   "_messageText": "[object Object]: 4",
790   "_type": "log",
791   "_url": null,
792   "_line": 3,
793   "_column": 14,
794   "_repeatCount": 1,
795   "_stackTrace": "<filtered>",
796   "_request": null
797 }
798
799 STEP: console.count(number)
800 {
801   "_listeners": null,
802   "_source": "console-api",
803   "_level": "debug",
804   "_messageText": "42: 1",
805   "_type": "log",
806   "_url": null,
807   "_line": 3,
808   "_column": 14,
809   "_repeatCount": 1,
810   "_stackTrace": "<filtered>",
811   "_request": null
812 }
813
814 STEP: console.count(number)
815 {
816   "_listeners": null,
817   "_source": "console-api",
818   "_level": "debug",
819   "_messageText": "42: 2",
820   "_type": "log",
821   "_url": null,
822   "_line": 3,
823   "_column": 14,
824   "_repeatCount": 1,
825   "_stackTrace": "<filtered>",
826   "_request": null
827 }
828