Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-dir-es6.html
blob9c568bf9e50f4d37bb62c3275778529ba4687b54
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script>
7 function onload()
9 var obj = new Object();
10 obj["a"] = 1;
11 obj[Symbol()] = 2;
12 obj[Symbol("a")] = 3;
13 obj[Symbol("a")] = Symbol.iterator;
14 obj[Symbol.iterator] = Symbol("foo");
15 console.dir(obj);
17 // This used to crash in debug build.
18 console.dir(Symbol());
20 [new Map(), new WeakMap()].forEach(function(m) {
21 m.set(obj, {foo: 1});
22 console.dir(m);
23 });
24 [new Set(), new WeakSet()].forEach(function(s) {
25 s.add(obj);
26 console.dir(s);
27 });
29 // Test circular dependency by entries.
30 var s1 = new Set();
31 var s2 = new Set();
32 s1.add(s2);
33 s2.add(s1);
34 console.dir(s1);
36 // Test "No Entries" placeholder.
37 console.dir(new WeakMap());
39 // Test Map/Set iterators.
40 var m = new Map();
41 m.set(obj, {foo: 1});
42 var s = new Set();
43 s.add(obj);
44 [m, s].forEach(function(c) {
45 console.dir(c.keys());
46 console.dir(c.values());
47 console.dir(c.entries());
48 });
50 runTest();
53 function test()
55 InspectorTest.expandConsoleMessages(dumpConsoleMessages);
57 function dumpConsoleMessages()
59 InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textContentWithLineBreaks);
60 InspectorTest.completeTest();
64 </script>
65 </head>
67 <body onload="onload()">
68 <p>
69 Tests that console logging dumps proper messages.
70 </p>
72 </body>
73 </html>