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

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

Issue 2650943009: [DevTools] increase AsyncCallStackDepth to 8 (Closed)
Patch Set: added missing test 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-fetch.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 function scheduleTestFunction() 1 function scheduleTestFunction()
2 { 2 {
3 setTimeout(testFunction, 0); 3 setTimeout(testFunction, 0);
4 } 4 }
5 5
6 var initialize_DebuggerTest = function() { 6 var initialize_DebuggerTest = function() {
7 7
8 InspectorTest.preloadPanel("sources"); 8 InspectorTest.preloadPanel("sources");
9 9
10 InspectorTest.startDebuggerTest = function(callback, quiet) 10 InspectorTest.startDebuggerTest = function(callback, quiet)
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 InspectorTest.runTestFunctionAndWaitUntilPausedPromise = function() 97 InspectorTest.runTestFunctionAndWaitUntilPausedPromise = function()
98 { 98 {
99 var cb; 99 var cb;
100 var p = new Promise(fullfill => cb = fullfill); 100 var p = new Promise(fullfill => cb = fullfill);
101 InspectorTest.runTestFunctionAndWaitUntilPaused(cb); 101 InspectorTest.runTestFunctionAndWaitUntilPaused(cb);
102 return p; 102 return p;
103 } 103 }
104 104
105 InspectorTest.runAsyncCallStacksTest = function(totalDebuggerStatements, maxAsyn cCallStackDepth) 105 InspectorTest.runAsyncCallStacksTest = function(totalDebuggerStatements, maxAsyn cCallStackDepth)
106 { 106 {
107 var defaultMaxAsyncCallStackDepth = 8;
108
107 InspectorTest.setQuiet(true); 109 InspectorTest.setQuiet(true);
108 InspectorTest.startDebuggerTest(step1); 110 InspectorTest.startDebuggerTest(step1);
109 111
110 function step1() 112 function step1()
111 { 113 {
112 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDept h, step2); 114 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDept h || defaultMaxAsyncCallStackDepth, step2);
113 } 115 }
114 116
115 function step2() 117 function step2()
116 { 118 {
117 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); 119 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
118 } 120 }
119 121
120 var step = 0; 122 var step = 0;
121 var callStacksOutput = []; 123 var callStacksOutput = [];
122 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) 124 function didPause(callFrames, reason, breakpointIds, asyncStackTrace)
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 { 724 {
723 var textEditor = sourceFrame._textEditor; 725 var textEditor = sourceFrame._textEditor;
724 var lineLength = textEditor.line(lineNumber).length; 726 var lineLength = textEditor.line(lineNumber).length;
725 var lineRange = new Common.TextRange(lineNumber, 0, lineNumber, lineLength); 727 var lineRange = new Common.TextRange(lineNumber, 0, lineNumber, lineLength);
726 var bookmarks = textEditor.bookmarks(lineRange, Sources.JavaScriptSourceFram e.BreakpointDecoration._bookmarkSymbol); 728 var bookmarks = textEditor.bookmarks(lineRange, Sources.JavaScriptSourceFram e.BreakpointDecoration._bookmarkSymbol);
727 bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn - bookmark2.position().startColumn); 729 bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn - bookmark2.position().startColumn);
728 bookmarks[index][Sources.JavaScriptSourceFrame.BreakpointDecoration._element SymbolForTest].click(); 730 bookmarks[index][Sources.JavaScriptSourceFrame.BreakpointDecoration._element SymbolForTest].click();
729 } 731 }
730 732
731 }; 733 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-fetch.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698