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

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

Issue 657063002: Show stack traces in console for unhandled promise rejection messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed debugger-pause-on-promise-rejection.html test Created 6 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-uncaught-promise.html » ('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.preloadPanel("console"); 3 InspectorTest.preloadPanel("console");
4 4
5 InspectorTest.evaluateInConsole = function(code, callback) 5 InspectorTest.evaluateInConsole = function(code, callback)
6 { 6 {
7 callback = InspectorTest.safeWrap(callback); 7 callback = InspectorTest.safeWrap(callback);
8 8
9 var consoleView = WebInspector.ConsolePanel._view(); 9 var consoleView = WebInspector.ConsolePanel._view();
10 consoleView.visible = true; 10 consoleView.visible = true;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 InspectorTest.fixConsoleViewportDimensions = function(width, height) 66 InspectorTest.fixConsoleViewportDimensions = function(width, height)
67 { 67 {
68 var viewport = WebInspector.ConsolePanel._view()._viewport; 68 var viewport = WebInspector.ConsolePanel._view()._viewport;
69 viewport.element.style.width = width + "px"; 69 viewport.element.style.width = width + "px";
70 viewport.element.style.height = height + "px"; 70 viewport.element.style.height = height + "px";
71 viewport.element.style.position = "absolute"; 71 viewport.element.style.position = "absolute";
72 viewport.invalidate(); 72 viewport.invalidate();
73 } 73 }
74 74
75 InspectorTest.consoleMessagesCount = function()
76 {
77 var consoleView = WebInspector.ConsolePanel._view();
78 return consoleView._consoleMessages.length;
79 }
80
75 InspectorTest.dumpConsoleMessages = function(printOriginatingCommand, dumpClassN ames, formatter) 81 InspectorTest.dumpConsoleMessages = function(printOriginatingCommand, dumpClassN ames, formatter)
76 { 82 {
77 InspectorTest.addResults(InspectorTest.dumpConsoleMessagesIntoArray(printOri ginatingCommand, dumpClassNames, formatter)); 83 InspectorTest.addResults(InspectorTest.dumpConsoleMessagesIntoArray(printOri ginatingCommand, dumpClassNames, formatter));
78 } 84 }
79 85
80 InspectorTest.dumpConsoleMessagesIntoArray = function(printOriginatingCommand, d umpClassNames, formatter) 86 InspectorTest.dumpConsoleMessagesIntoArray = function(printOriginatingCommand, d umpClassNames, formatter)
81 { 87 {
82 formatter = formatter || InspectorTest.prepareConsoleMessageText; 88 formatter = formatter || InspectorTest.prepareConsoleMessageText;
83 var result = []; 89 var result = [];
84 InspectorTest.disableConsoleViewport(); 90 InspectorTest.disableConsoleViewport();
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 } 276 }
271 if (!option) { 277 if (!option) {
272 InspectorTest.addResult("FAILED: context with prefix: " + namePrefix + " not found in the context list"); 278 InspectorTest.addResult("FAILED: context with prefix: " + namePrefix + " not found in the context list");
273 return; 279 return;
274 } 280 }
275 option.selected = true; 281 option.selected = true;
276 WebInspector.ConsolePanel._view()._executionContextChanged(); 282 WebInspector.ConsolePanel._view()._executionContextChanged();
277 } 283 }
278 284
279 } 285 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-uncaught-promise.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698