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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script> 4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script> 5 <script>
6 6
7 var a = {name: "a"}; 7 var a = {name: "a"};
8 var b = {name: "b"}; 8 var b = {name: "b"};
9 var c = {name: "c"}; 9 var c = {name: "c"};
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 window.devtoolsFormatters = [formatter2, formatter1, formatterWithConfig1, f ormatterWithConfig2, selfReferencingFormatter]; 129 window.devtoolsFormatters = [formatter2, formatter1, formatterWithConfig1, f ormatterWithConfig2, selfReferencingFormatter];
130 } 130 }
131 131
132 function test() 132 function test()
133 { 133 {
134 InspectorTest.mainTarget.runtimeAgent().setCustomObjectFormatterEnabled(true ); 134 InspectorTest.mainTarget.runtimeAgent().setCustomObjectFormatterEnabled(true );
135 InspectorTest.evaluateInPage("logVars()", expandVariablesInConsole); 135 InspectorTest.evaluateInPage("logVars()", expandVariablesInConsole);
136 136
137 function expandVariablesInConsole() 137 function expandVariablesInConsole()
138 { 138 {
139 var consoleView = WebInspector.ConsoleView.instance(); 139 var consoleView = Console.ConsoleView.instance();
140 if (consoleView._needsFullUpdate) 140 if (consoleView._needsFullUpdate)
141 consoleView._updateMessageList(); 141 consoleView._updateMessageList();
142 var viewMessages = consoleView._visibleViewMessages; 142 var viewMessages = consoleView._visibleViewMessages;
143 for (var i = 0; i < viewMessages.length; ++i) { 143 for (var i = 0; i < viewMessages.length; ++i) {
144 var uiMessage = viewMessages[i]; 144 var uiMessage = viewMessages[i];
145 var customElement = uiMessage.contentElement().querySelector("span / deep/ .custom-expandable-section-header"); 145 var customElement = uiMessage.contentElement().querySelector("span / deep/ .custom-expandable-section-header");
146 if (customElement) 146 if (customElement)
147 customElement.click(); 147 customElement.click();
148 } 148 }
149 149
150 InspectorTest.deprecatedRunAfterPendingDispatches(dumpExpanded); 150 InspectorTest.deprecatedRunAfterPendingDispatches(dumpExpanded);
151 } 151 }
152 152
153 function dumpExpanded() 153 function dumpExpanded()
154 { 154 {
155 InspectorTest.dumpConsoleMessages(); 155 InspectorTest.dumpConsoleMessages();
156 InspectorTest.completeTest(); 156 InspectorTest.completeTest();
157 } 157 }
158 } 158 }
159 </script> 159 </script>
160 </head> 160 </head>
161 161
162 <body onload="runTest()"> 162 <body onload="runTest()">
163 <p>Tests that console logging dumps properly when there are multiple custom form atters on the page</p> 163 <p>Tests that console logging dumps properly when there are multiple custom form atters on the page</p>
164 </body> 164 </body>
165 </html> 165 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698