| 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 setTimeout(functionFoo, 0); |
| 10 } |
| 11 |
| 12 function functionFoo() |
| 13 { |
| 14 debugger; |
| 15 } |
| 16 |
| 17 var test = function() |
| 18 { |
| 19 InspectorTest.DebuggerAgent.setAsyncCallStackDepth(200, step1); |
| 20 |
| 21 function step1() |
| 22 { |
| 23 InspectorTest.startDebuggerTest(step2); |
| 24 } |
| 25 |
| 26 function step2() |
| 27 { |
| 28 InspectorTest.runTestFunctionAndWaitUntilPaused(step3); |
| 29 } |
| 30 |
| 31 function step3() |
| 32 { |
| 33 var callFrameList = WebInspector.panels.sources.sidebarPanes.callstack.c
allFrameList; |
| 34 for (var item of callFrameList._items) |
| 35 InspectorTest.addResult(item.element.textContent.replace(/VM\d+/g, "
VM")); |
| 36 InspectorTest.completeDebuggerTest(); |
| 37 } |
| 38 } |
| 39 |
| 40 </script> |
| 41 </head> |
| 42 <body onload="runTest()"> |
| 43 <p>Tests that call stack sidebar contains correct urls for call frames.</p> |
| 44 </body> |
| 45 </html> |
| OLD | NEW |