Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-step / debugger-step-over.html
blob6f7f49c37cb20cdb014540527fdfee7bfd147f89
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>
7 function f()
9 var i = 10;
12 function d()
14 debugger;
15 f();
18 function testFunction()
20 d();
23 var test = function()
25 InspectorTest.startDebuggerTest(step1);
27 function step1()
29 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
32 var stepCount = 0;
33 function step2(callFrames)
35 InspectorTest.captureStackTrace(callFrames);
36 if (stepCount < 2) {
37 InspectorTest.addResult("Stepping over...");
38 WebInspector.panels.sources._stepOverButton.element.click();
39 InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(InspectorTest, step2));
40 } else
41 InspectorTest.completeDebuggerTest();
42 stepCount++;
46 </script>
47 </head>
49 <body onload="runTest()">
50 <p>
51 Tests "step over" functionality in debugger.
52 </p>
54 </body>
55 </html>