Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-dir.html
blobb6d07461008e72928541b20efb10dd7c607de9f1
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
6 <script>
7 function onload()
9 console.dir(["test1", "test2"]);
10 console.dir(document.childNodes);
11 console.dir(document.evaluate("//head", document, null, XPathResult.ANY_TYPE, null));
13 // Object with properties containing whitespaces
14 var obj = { $foo5_: 0 };
15 obj[" a b "] = " a b ";
16 obj["c d"] = "c d";
17 obj[""] = "";
18 obj[" "] = " ";
19 obj["a\n\nb\nc"] = "a\n\nb\nc";
20 obj["negZero"] = -0;
21 console.dir(obj);
23 // This should correctly display information about the function.
24 console.dir(function() {});
26 // Test function inferred name in prototype constructor.
27 var outer = { inner: function() {} };
28 console.dir(new outer.inner());
30 // Test "No Properties" placeholder.
31 console.dir({ __proto__: null });
32 console.dir({ foo: { __proto__: null }});
33 // Test "No Scopes" placeholder.
34 console.dir(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").get);
36 // Test big typed array: should be no crash or timeout.
37 var bigTypedArray = new Uint8Array(new ArrayBuffer(400 * 1000 * 1000));
38 bigTypedArray["FAIL"] = "FAIL: Object.getOwnPropertyNames() should not have been run";
39 console.dir(bigTypedArray);
41 runTest();
43 //# sourceURL=console-dir.html
44 </script>
46 <script>
47 function test()
49 InspectorTest.expandConsoleMessages(step1, expandTreeElementFilter);
51 function expandTreeElementFilter(treeElement)
53 var name = treeElement.nameElement && treeElement.nameElement.textContent;
54 return name === "foo" || treeElement.title === "<function scope>";
57 function step1()
59 InspectorTest.expandConsoleMessages(dumpConsoleMessages, expandTreeElementFilter);
62 function dumpConsoleMessages()
64 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames();
65 InspectorTest.completeTest();
69 </script>
70 </head>
72 <body onload="onload()">
73 <p>
74 Tests that console logging dumps proper messages.
75 </p>
77 </body>
78 </html>