Index: LayoutTests/inspector/sources/debugger/debugger-step-into-inlined-scripts.html |
diff --git a/LayoutTests/inspector/sources/debugger/debugger-step-into-inlined-scripts.html b/LayoutTests/inspector/sources/debugger/debugger-step-into-inlined-scripts.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9ed786d6ac900b04f0807f5d7d5fe52aa4222538 |
--- /dev/null |
+++ b/LayoutTests/inspector/sources/debugger/debugger-step-into-inlined-scripts.html |
@@ -0,0 +1,67 @@ |
+<html> |
+<head> |
+ |
+<script> |
+function f1() |
+{ |
+ return 1; // Breakpoint. |
+} |
+f1(); |
+</script> |
+ |
+<script> |
+function f2() |
+{ |
+ return 2; |
+} |
+f2(); |
+</script> |
+ |
+<script src="../../../http/tests/inspector/inspector-test.js"></script> |
+<script src="../../../http/tests/inspector/debugger-test.js"></script> |
+ |
+<script> |
+ |
+function test() |
+{ |
+ var numberOfStepInto = 9; |
+ |
+ InspectorTest.startDebuggerTest(step1, true); |
+ |
+ function step1() |
+ { |
+ InspectorTest.showScriptSource("debugger-step-into-inlined-scripts.html", step2); |
+ } |
+ |
+ function step2(sourceFrame) |
+ { |
+ InspectorTest.addResult("Script source was shown."); |
+ InspectorTest.setBreakpoint(sourceFrame, 6, "", true); |
+ InspectorTest.waitUntilPaused(step3); |
+ InspectorTest.reloadPage(completeTest); |
+ } |
+ |
+ function step3() |
+ { |
+ var actions = ["Print"]; // First pause on breakpoint. |
+ for (var i = 0; i < numberOfStepInto; ++i) |
+ actions.push("StepInto", "Print"); |
+ actions.push("Resume"); |
+ InspectorTest.waitUntilPausedAndPerformSteppingActions(actions); |
+ } |
+ |
+ function completeTest() |
+ { |
+ InspectorTest.completeDebuggerTest(); |
+ } |
+} |
+ |
+</script> |
+</head> |
+ |
+<body onload="runTest()"> |
+<p> |
+Tests that debugger StepInto will step through inlined scripts. |
+</p> |
+</body> |
+</html> |