| OLD | NEW |
| (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 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDept
h, 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> | |
| OLD | NEW |