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 var a = "FAIL"; | 7 var a = "FAIL"; |
8 function testFunction() | 8 function testFunction() |
9 { | 9 { |
10 var a = "PASS"; | 10 var a = "PASS"; |
(...skipping 20 matching lines...) Expand all Loading... |
31 InspectorTest.setQuiet(true); | 31 InspectorTest.setQuiet(true); |
32 InspectorTest.startDebuggerTest(step1); | 32 InspectorTest.startDebuggerTest(step1); |
33 | 33 |
34 function step1() | 34 function step1() |
35 { | 35 { |
36 DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2); | 36 DebuggerAgent.setAsyncCallStackDepth(maxAsyncCallStackDepth, step2); |
37 } | 37 } |
38 | 38 |
39 function step2() | 39 function step2() |
40 { | 40 { |
41 InspectorTest.runTestFunctionAndWaitUntilPaused(didPaused); | 41 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); |
42 } | 42 } |
43 | 43 |
44 function didPaused(callFrames, reason, breakpointIds, asyncStackTrace) | 44 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) |
45 { | 45 { |
46 InspectorTest.captureStackTrace(callFrames, asyncStackTrace); | 46 InspectorTest.captureStackTrace(callFrames, asyncStackTrace); |
47 | 47 |
48 var pane = WebInspector.panels.sources.sidebarPanes.callstack; | 48 var pane = WebInspector.panels.sources.sidebarPanes.callstack; |
49 InspectorTest.addResult("Select call frame: " + pane.placards[1].title); | 49 InspectorTest.addResult("Select call frame: " + pane.placards[1].title); |
50 pane._placardSelected(pane.placards[1]); | 50 pane._placardSelected(pane.placards[1]); |
51 InspectorTest.runAfterPendingDispatches(step3); | 51 InspectorTest.runAfterPendingDispatches(step3); |
52 } | 52 } |
53 | 53 |
54 function step3() | 54 function step3() |
(...skipping 15 matching lines...) Expand all Loading... |
70 </script> | 70 </script> |
71 </head> | 71 </head> |
72 | 72 |
73 <body onload="runTest()"> | 73 <body onload="runTest()"> |
74 <p> | 74 <p> |
75 Tests evaluation in an async call frame. | 75 Tests evaluation in an async call frame. |
76 </p> | 76 </p> |
77 | 77 |
78 </body> | 78 </body> |
79 </html> | 79 </html> |
OLD | NEW |