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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-callstack-set-interval.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 var intervalId; 6 var intervalId;
7 var count = 0; 7 var count = 0;
8 8
9 function testFunction() 9 function testFunction()
10 { 10 {
11 intervalId = setInterval(callback, 0); 11 intervalId = setInterval(callback, 0);
12 } 12 }
13 13
14 function callback() 14 function callback()
15 { 15 {
16 if (count === 0) { 16 if (count === 0) {
17 debugger; 17 debugger;
18 } else if (count === 1) { 18 } else if (count === 1) {
19 debugger; 19 debugger;
20 } else { 20 } else {
21 clearInterval(intervalId); 21 clearInterval(intervalId);
22 debugger; 22 debugger;
23 } 23 }
24 ++count; 24 ++count;
25 } 25 }
26 26
27 function test() 27 function test()
28 { 28 {
29 var totalDebuggerStatements = 3; 29 var totalDebuggerStatements = 3;
30 var maxAsyncCallStackDepth = 4; 30 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements);
31 InspectorTest.runAsyncCallStacksTest(totalDebuggerStatements, maxAsyncCallSt ackDepth);
32 } 31 }
33 32
34 </script> 33 </script>
35 </head> 34 </head>
36 35
37 <body onload="runTest()"> 36 <body onload="runTest()">
38 <p> 37 <p>
39 Tests asynchronous call stacks for setInterval. 38 Tests asynchronous call stacks for setInterval.
40 </p> 39 </p>
41 </body> 40 </body>
42 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698