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

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

Issue 821643004: Clean up the fix of DevTools crashing in AsyncCallTracker. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script>
6
7 function testFunction()
8 {
9 setInterval(callback, 0);
10 debugger;
11 }
12
13 function callback()
14 {
15 return window.__foo;
16 }
17
18 function test()
19 {
20 var maxAsyncCallStackDepth = 4;
21 InspectorTest.startDebuggerTest(step1, true);
22
23 function step1()
24 {
25 DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2);
26 }
27
28 function step2()
29 {
30 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
31 }
32
33 function didPause()
34 {
35 InspectorTest.addResult("Reloading the page...");
36 InspectorTest.reloadPage(afterReload);
37 }
38
39 function afterReload()
40 {
41 InspectorTest.addResult("PASS: Reloaded successfully.");
42 InspectorTest.completeDebuggerTest();
43 }
44 }
45
46 </script>
47 </head>
48 <body onload="runTest()">
49 <p>
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>
52 </p>
53 </body>
54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698