| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |