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

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

Issue 2650943009: [DevTools] increase AsyncCallStackDepth to 8 (Closed)
Patch Set: added missing test Created 3 years, 11 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 setInterval(callback, 0); 9 setInterval(callback, 0);
10 debugger; 10 debugger;
11 } 11 }
12 12
13 function callback() 13 function callback()
14 { 14 {
15 return window.__foo; 15 return window.__foo;
16 } 16 }
17 17
18 function test() 18 function test()
19 { 19 {
20 var maxAsyncCallStackDepth = 4; 20 var maxAsyncCallStackDepth = 8;
21 InspectorTest.startDebuggerTest(step1, true); 21 InspectorTest.startDebuggerTest(step1, true);
22 22
23 function step1() 23 function step1()
24 { 24 {
25 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDept h, step2); 25 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDept h, step2);
26 } 26 }
27 27
28 function step2() 28 function step2()
29 { 29 {
30 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); 30 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
(...skipping 14 matching lines...) Expand all
45 45
46 </script> 46 </script>
47 </head> 47 </head>
48 <body onload="runTest()"> 48 <body onload="runTest()">
49 <p> 49 <p>
50 Tests that page reload with async stacks turned on does not crash. 50 Tests that page reload with async stacks turned on does not crash.
51 <a href="https://code.google.com/p/chromium/issues/detail?id=441223">Bug 441223. </a> 51 <a href="https://code.google.com/p/chromium/issues/detail?id=441223">Bug 441223. </a>
52 </p> 52 </p>
53 </body> 53 </body>
54 </html> 54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698