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

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

Issue 1857713004: DevTools: simplify the async instrumentation harness. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 testFunction() 7 function testFunction()
8 { 8 {
9 setTimeout(timeoutOffCapturing, 0); 9 setTimeout(timeoutOffCapturing, 0);
10 } 10 }
11 11
12 function timeoutOffCapturing() 12 function timeoutOffCapturing()
13 { 13 {
14 setTimeout(timeoutOffCapturing2, 0); 14 setTimeout(timeoutOffCapturing2, 0);
15 debugger; // Will start capturing async stacks from this point. 15 debugger;
16 setTimeout(timeoutOnCapturing, 0); 16 setTimeout(timeoutOnCapturing, 0);
17 } 17 }
18 18
19 function timeoutOffCapturing2() 19 function timeoutOffCapturing2()
20 { 20 {
21 debugger; 21 debugger;
22 } 22 }
23 23
24 function timeoutOnCapturing() 24 function timeoutOnCapturing()
25 { 25 {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 </script> 74 </script>
75 </head> 75 </head>
76 76
77 <body onload="runTest()"> 77 <body onload="runTest()">
78 <p> 78 <p>
79 Tests that capturing asynchronous call stacks in debugger works if started after some time since the page loads. 79 Tests that capturing asynchronous call stacks in debugger works if started after some time since the page loads.
80 </p> 80 </p>
81 81
82 </body> 82 </body>
83 </html> 83 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698