OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 |
| 4 <script> |
| 5 function f1() |
| 6 { |
| 7 return 1; // Breakpoint. |
| 8 } |
| 9 f1(); |
| 10 </script> |
| 11 |
| 12 <script> |
| 13 function f2() |
| 14 { |
| 15 return 2; |
| 16 } |
| 17 f2(); |
| 18 </script> |
| 19 |
| 20 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 21 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 22 |
| 23 <script> |
| 24 |
| 25 function test() |
| 26 { |
| 27 var numberOfStepInto = 9; |
| 28 |
| 29 InspectorTest.startDebuggerTest(step1, true); |
| 30 |
| 31 function step1() |
| 32 { |
| 33 InspectorTest.showScriptSource("debugger-step-into-inlined-scripts.html"
, step2); |
| 34 } |
| 35 |
| 36 function step2(sourceFrame) |
| 37 { |
| 38 InspectorTest.addResult("Script source was shown."); |
| 39 InspectorTest.setBreakpoint(sourceFrame, 6, "", true); |
| 40 InspectorTest.waitUntilPaused(step3); |
| 41 InspectorTest.reloadPage(completeTest); |
| 42 } |
| 43 |
| 44 function step3() |
| 45 { |
| 46 var actions = ["Print"]; // First pause on breakpoint. |
| 47 for (var i = 0; i < numberOfStepInto; ++i) |
| 48 actions.push("StepInto", "Print"); |
| 49 actions.push("Resume"); |
| 50 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions); |
| 51 } |
| 52 |
| 53 function completeTest() |
| 54 { |
| 55 InspectorTest.completeDebuggerTest(); |
| 56 } |
| 57 } |
| 58 |
| 59 </script> |
| 60 </head> |
| 61 |
| 62 <body onload="runTest()"> |
| 63 <p> |
| 64 Tests that debugger StepInto will step through inlined scripts. |
| 65 </p> |
| 66 </body> |
| 67 </html> |
OLD | NEW |