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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js

Issue 2472183002: DevTools: Fix wrapping bugs in console (Closed)
Patch Set: fix tests, remove unnecessary consoleView class 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-log-linkify-links-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
1 var initialize_ConsoleTest = function() { 1 var initialize_ConsoleTest = function() {
2 2
3 InspectorTest.preloadModule("source_frame"); 3 InspectorTest.preloadModule("source_frame");
4 InspectorTest.preloadPanel("console"); 4 InspectorTest.preloadPanel("console");
5 5
6 InspectorTest.selectMainExecutionContext = function() 6 InspectorTest.selectMainExecutionContext = function()
7 { 7 {
8 var executionContexts = InspectorTest.mainTarget.runtimeModel.executionConte xts(); 8 var executionContexts = InspectorTest.mainTarget.runtimeModel.executionConte xts();
9 for (var context of executionContexts) { 9 for (var context of executionContexts) {
10 if (context.isDefault) { 10 if (context.isDefault) {
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 197 }
198 198
199 InspectorTest.dumpConsoleMessagesWithStyles = function(sortMessages) 199 InspectorTest.dumpConsoleMessagesWithStyles = function(sortMessages)
200 { 200 {
201 var result = []; 201 var result = [];
202 var messageViews = WebInspector.ConsoleView.instance()._visibleViewMessages; 202 var messageViews = WebInspector.ConsoleView.instance()._visibleViewMessages;
203 for (var i = 0; i < messageViews.length; ++i) { 203 for (var i = 0; i < messageViews.length; ++i) {
204 var element = messageViews[i].element(); 204 var element = messageViews[i].element();
205 var messageText = InspectorTest.prepareConsoleMessageText(element); 205 var messageText = InspectorTest.prepareConsoleMessageText(element);
206 InspectorTest.addResult(messageText); 206 InspectorTest.addResult(messageText);
207 var spans = element.querySelectorAll(".console-message-text > span *"); 207 var spans = element.querySelectorAll(".console-message-text *");
208 for (var j = 0; j < spans.length; ++j) 208 for (var j = 0; j < spans.length; ++j)
209 InspectorTest.addResult("Styled text #" + j + ": " + (spans[j].style .cssText || "NO STYLES DEFINED")); 209 InspectorTest.addResult("Styled text #" + j + ": " + (spans[j].style .cssText || "NO STYLES DEFINED"));
210 } 210 }
211 } 211 }
212 212
213 InspectorTest.dumpConsoleMessagesWithClasses = function(sortMessages) { 213 InspectorTest.dumpConsoleMessagesWithClasses = function(sortMessages) {
214 var result = []; 214 var result = [];
215 var messageViews = WebInspector.ConsoleView.instance()._visibleViewMessages; 215 var messageViews = WebInspector.ConsoleView.instance()._visibleViewMessages;
216 for (var i = 0; i < messageViews.length; ++i) { 216 for (var i = 0; i < messageViews.length; ++i) {
217 var element = messageViews[i].element(); 217 var element = messageViews[i].element();
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 if (consoleView._visibleViewMessages.length === expectedCount) { 418 if (consoleView._visibleViewMessages.length === expectedCount) {
419 InspectorTest.addResult("Message count: " + expectedCount); 419 InspectorTest.addResult("Message count: " + expectedCount);
420 callback(); 420 callback();
421 } else { 421 } else {
422 InspectorTest.addSniffer(consoleView, "_messageAppendedForTests", ch eckAndReturn); 422 InspectorTest.addSniffer(consoleView, "_messageAppendedForTests", ch eckAndReturn);
423 } 423 }
424 } 424 }
425 } 425 }
426 426
427 } 427 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-log-linkify-links-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698