| 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 } |
| 11 | 11 |
| 12 function timeoutOffCapturing() | 12 function timeoutOffCapturing() |
| 13 { | 13 { |
| 14 setTimeout(timeoutOffCapturing2, 0); | 14 setTimeout(timeoutOffCapturing2, 0); |
| 15 debugger; // Will start capturing async stacks from this point. | 15 debugger; |
| 16 setTimeout(timeoutOnCapturing, 0); | 16 setTimeout(timeoutOnCapturing, 0); |
| 17 } | 17 } |
| 18 | 18 |
| 19 function timeoutOffCapturing2() | 19 function timeoutOffCapturing2() |
| 20 { | 20 { |
| 21 debugger; | 21 debugger; |
| 22 } | 22 } |
| 23 | 23 |
| 24 function timeoutOnCapturing() | 24 function timeoutOnCapturing() |
| 25 { | 25 { |
| (...skipping 48 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 |