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

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

Issue 23530041: DevTools: Make VM script names less noisy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 var initialize_ConsoleTest = function() { 1 var initialize_ConsoleTest = function() {
2 2
3 InspectorTest.showConsolePanel = function() 3 InspectorTest.showConsolePanel = function()
4 { 4 {
5 WebInspector.showPanel("console"); 5 WebInspector.showPanel("console");
6 WebInspector.drawer.immediatelyFinishAnimation(); 6 WebInspector.drawer.immediatelyFinishAnimation();
7 } 7 }
8 8
9 InspectorTest.prepareConsoleMessageText = function(messageElement) 9 InspectorTest.prepareConsoleMessageText = function(messageElement)
10 { 10 {
11 var messageText = messageElement.textContent.replace(/\u200b/g, ""); 11 var messageText = messageElement.textContent.replace(/\u200b/g, "");
12 // Replace scriptIds with generic scriptId string to avoid flakiness. 12 // Replace scriptIds with generic scriptId string to avoid flakiness.
13 messageText = messageText.replace(/\[VM\]\s+\(\d+\)/g, "[VM] (scriptId)"); 13 messageText = messageText.replace(/VM\d+/g, "VM");
14 // Strip out InjectedScript from stack traces to avoid rebaselining each tim e InjectedScriptSource is edited. 14 // Strip out InjectedScript from stack traces to avoid rebaselining each tim e InjectedScriptSource is edited.
15 messageText = messageText.replace(/InjectedScript[\.a-zA-Z_]+ \[VM\] \(scrip tId\):\d+/g, ""); 15 messageText = messageText.replace(/InjectedScript[\.a-zA-Z_]+ VM:\d+/g, "");
16 // The message might be extremely long in case of dumping stack overflow mes sage. 16 // The message might be extremely long in case of dumping stack overflow mes sage.
17 messageText = messageText.substring(0, 1024); 17 messageText = messageText.substring(0, 1024);
18 return messageText; 18 return messageText;
19 } 19 }
20 20
21 InspectorTest.dumpConsoleMessages = function(printOriginatingCommand, dumpClassN ames) 21 InspectorTest.dumpConsoleMessages = function(printOriginatingCommand, dumpClassN ames)
22 { 22 {
23 var result = []; 23 var result = [];
24 var visibleMessagesIndices = WebInspector.consoleView._visibleMessagesIndice s; 24 var visibleMessagesIndices = WebInspector.consoleView._visibleMessagesIndice s;
25 for (var i = 0; i < visibleMessagesIndices.length; ++i) { 25 for (var i = 0; i < visibleMessagesIndices.length; ++i) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 } 104 }
105 } 105 }
106 106
107 InspectorTest.waitUntilMessageReceived = function(callback) 107 InspectorTest.waitUntilMessageReceived = function(callback)
108 { 108 {
109 InspectorTest.addSniffer(WebInspector.console, "addMessage", callback, false ); 109 InspectorTest.addSniffer(WebInspector.console, "addMessage", callback, false );
110 } 110 }
111 111
112 } 112 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698