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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-callstack-promises.html

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
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/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script> 5 <script>
6 6
7 function timeoutPromise(value, ms) 7 function timeoutPromise(value, ms)
8 { 8 {
9 return new Promise(function promiseCallback(resolve, reject) { 9 return new Promise(function promiseCallback(resolve, reject) {
10 function resolvePromise() 10 function resolvePromise()
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 function doTestPromiseResolveAndReject() 134 function doTestPromiseResolveAndReject()
135 { 135 {
136 Promise.resolve(1).then(thenCallback, errorCallback); 136 Promise.resolve(1).then(thenCallback, errorCallback);
137 Promise.reject(Error("2")).then(thenCallback, errorCallback); 137 Promise.reject(Error("2")).then(thenCallback, errorCallback);
138 } 138 }
139 139
140 var test = function() 140 var test = function()
141 { 141 {
142 var totalDebuggerStatements = 14; 142 var totalDebuggerStatements = 14;
143 var maxAsyncCallStackDepth = 4; 143 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements);
144 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallSt ackDepth);
145 } 144 }
146 145
147 </script> 146 </script>
148 </head> 147 </head>
149 148
150 <body onload="runTest()"> 149 <body onload="runTest()">
151 <p> 150 <p>
152 Tests asynchronous call stacks for Promises. 151 Tests asynchronous call stacks for Promises.
153 </p> 152 </p>
154 153
155 </body> 154 </body>
156 </html> 155 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698