Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-async / async-callstack-reload-no-crash.html
blob16068a07da8c6edac399900b2e5eb26fbbca331d
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>
7 function testFunction()
9 setInterval(callback, 0);
10 debugger;
13 function callback()
15 return window.__foo;
18 function test()
20 var maxAsyncCallStackDepth = 4;
21 InspectorTest.startDebuggerTest(step1, true);
23 function step1()
25 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2);
28 function step2()
30 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
33 function didPause()
35 InspectorTest.addResult("Reloading the page...");
36 InspectorTest.reloadPage(afterReload);
39 function afterReload()
41 InspectorTest.addResult("PASS: Reloaded successfully.");
42 InspectorTest.completeDebuggerTest();
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>