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

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

Issue 2658723005: DevTools: remove deprecated shadow dom selectors from inspector LayoutTests (Closed)
Patch Set: consistent quotes Created 3 years, 10 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
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 InspectorTest.evaluateInPage("logVars()", expandVariablesInConsole); 135 InspectorTest.evaluateInPage("logVars()", expandVariablesInConsole);
136 136
137 function expandVariablesInConsole() 137 function expandVariablesInConsole()
138 { 138 {
139 var consoleView = Console.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 shadowRoot = uiMessage.contentElement().querySelector(".console- message-text *").shadowRoot;
146 var customElement = shadowRoot ? shadowRoot.querySelector(".custom-e xpandable-section-header") : null;
146 if (customElement) 147 if (customElement)
147 customElement.click(); 148 customElement.click();
148 } 149 }
149 150
150 InspectorTest.deprecatedRunAfterPendingDispatches(dumpExpanded); 151 InspectorTest.deprecatedRunAfterPendingDispatches(dumpExpanded);
151 } 152 }
152 153
153 function dumpExpanded() 154 function dumpExpanded()
154 { 155 {
155 InspectorTest.dumpConsoleMessages(); 156 InspectorTest.dumpConsoleMessages();
156 InspectorTest.completeTest(); 157 InspectorTest.completeTest();
157 } 158 }
158 } 159 }
159 </script> 160 </script>
160 </head> 161 </head>
161 162
162 <body onload="runTest()"> 163 <body onload="runTest()">
163 <p>Tests that console logging dumps properly when there are multiple custom form atters on the page</p> 164 <p>Tests that console logging dumps properly when there are multiple custom form atters on the page</p>
164 </body> 165 </body>
165 </html> 166 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698