| 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 setTimeout(timeoutOffCapturing, 0); | 9 setTimeout(timeoutOffCapturing, 0); |
| 10 } | 10 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 } | 22 } |
| 23 | 23 |
| 24 function timeoutOnCapturing() | 24 function timeoutOnCapturing() |
| 25 { | 25 { |
| 26 debugger; | 26 debugger; |
| 27 } | 27 } |
| 28 | 28 |
| 29 var test = function() | 29 var test = function() |
| 30 { | 30 { |
| 31 var totalDebuggerStatements = 3; | 31 var totalDebuggerStatements = 3; |
| 32 var maxAsyncCallStackDepth = 4; | 32 var maxAsyncCallStackDepth = 8; |
| 33 | 33 |
| 34 InspectorTest.setQuiet(true); | 34 InspectorTest.setQuiet(true); |
| 35 InspectorTest.startDebuggerTest(step1); | 35 InspectorTest.startDebuggerTest(step1); |
| 36 | 36 |
| 37 function step1() | 37 function step1() |
| 38 { | 38 { |
| 39 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(0, step2); | 39 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(0, step2); |
| 40 } | 40 } |
| 41 | 41 |
| 42 function step2() | 42 function step2() |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 </script> | 74 </script> |
| 75 </head> | 75 </head> |
| 76 | 76 |
| 77 <body onload="runTest()"> | 77 <body onload="runTest()"> |
| 78 <p> | 78 <p> |
| 79 Tests that capturing asynchronous call stacks in debugger works if started after
some time since the page loads. | 79 Tests that capturing asynchronous call stacks in debugger works if started after
some time since the page loads. |
| 80 </p> | 80 </p> |
| 81 | 81 |
| 82 </body> | 82 </body> |
| 83 </html> | 83 </html> |
| OLD | NEW |