3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/console-test.js"></script>
9 var obj
= new Object();
13 obj
[Symbol("a")] = Symbol
.iterator
;
14 obj
[Symbol
.iterator
] = Symbol("foo");
17 // This used to crash in debug build.
18 console
.dir(Symbol());
20 [new Map(), new WeakMap()].forEach(function(m
) {
24 [new Set(), new WeakSet()].forEach(function(s
) {
29 // Test circular dependency by entries.
36 // Test "No Entries" placeholder.
37 console
.dir(new WeakMap());
39 // Test Map/Set iterators.
44 [m
, s
].forEach(function(c
) {
45 console
.dir(c
.keys());
46 console
.dir(c
.values());
47 console
.dir(c
.entries());
55 InspectorTest
.expandConsoleMessages(dumpConsoleMessages
);
57 function dumpConsoleMessages()
59 InspectorTest
.dumpConsoleMessages(false, false, InspectorTest
.textContentWithLineBreaks
);
60 InspectorTest
.completeTest();
67 <body onload=
"onload()">
69 Tests that console logging dumps proper messages.