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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-log-custom-elements.html

Issue 2056433002: DevTools: properly format custom elements without nodenames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-log-custom-elements-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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>
6 function registerNonElement()
7 {
8 var nonElementProto = {
9 createdCallback: function()
10 {
11 console.dir(this);
12 }
13 };
14 var nonElementOptions = { prototype: nonElementProto };
15 document.registerElement("foo-bar", nonElementOptions);
16 }
17
18 function registerElement()
19 {
20 var elementProto = Object.create(HTMLElement.prototype);
21 elementProto.createdCallback = function()
22 {
23 console.dir(this);
24 };
25 var elementOptions = { prototype: elementProto };
26 document.registerElement("foo-bar2", elementOptions);
27 }
28
29 function test()
30 {
31 InspectorTest.waitUntilMessageReceived(step1);
32 InspectorTest.evaluateInPage("registerNonElement();");
33
34 function step1()
35 {
36 InspectorTest.waitUntilMessageReceived(step2);
37 InspectorTest.evaluateInPage("registerElement();");
38 }
39
40 function step2()
41 {
42 InspectorTest.dumpConsoleMessages();
43 InspectorTest.completeTest();
44 }
45 }
46 </script>
47 </head>
48
49 <body onload="runTest()">
50 <foo-bar></foo-bar>
51 <foo-bar2></foo-bar2>
52 <p>
53 Tests that logging custom elements uses proper formatting.
54 </p>
55
56 </body>
57 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-log-custom-elements-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698