Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-step / debugger-step-over-inlined-scripts.html
blob14a7fd0d161c395b6b5cfb1cf0cc1c2da4770782
1 <html>
2 <head>
4 <script>
5 function f1()
7 return 1; // Breakpoint.
9 f1();
10 </script>
12 <script>
13 function f2()
15 return 2;
17 f2();
18 </script>
20 <script src="../../../http/tests/inspector/inspector-test.js"></script>
21 <script src="../../../http/tests/inspector/debugger-test.js"></script>
23 <script>
25 function test()
27 var numberOfStepOver = 7;
29 InspectorTest.startDebuggerTest(step1, true);
31 function step1()
33 InspectorTest.showScriptSource("debugger-step-over-inlined-scripts.html", step2);
36 function step2(sourceFrame)
38 InspectorTest.addResult("Script source was shown.");
39 InspectorTest.setBreakpoint(sourceFrame, 6, "", true);
40 InspectorTest.waitUntilPaused(step3);
41 InspectorTest.reloadPage(completeTest);
44 function step3()
46 var actions = ["Print"]; // First pause on breakpoint.
47 for (var i = 0; i < numberOfStepOver; ++i)
48 actions.push("StepOver", "Print");
49 actions.push("Resume");
50 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions);
53 function completeTest()
55 InspectorTest.completeDebuggerTest();
59 </script>
60 </head>
62 <body onload="runTest()">
63 <p>
64 Tests that debugger StepOver will step through inlined scripts.
65 </p>
66 </body>
67 </html>