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 function f() | 7 function f() |
8 { | 8 { |
9 var i = 10; | 9 var i = 10; |
10 } | 10 } |
(...skipping 17 matching lines...) Expand all Loading... |
28 { | 28 { |
29 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); | 29 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); |
30 } | 30 } |
31 | 31 |
32 var stepCount = 0; | 32 var stepCount = 0; |
33 function step2(callFrames) | 33 function step2(callFrames) |
34 { | 34 { |
35 InspectorTest.captureStackTrace(callFrames); | 35 InspectorTest.captureStackTrace(callFrames); |
36 if (stepCount < 2) { | 36 if (stepCount < 2) { |
37 InspectorTest.addResult("Stepping over..."); | 37 InspectorTest.addResult("Stepping over..."); |
38 WebInspector.panels.scripts._stepOverButton.element.click(); | 38 WebInspector.panels.sources._stepOverButton.element.click(); |
39 InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(In
spectorTest, step2)); | 39 InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(In
spectorTest, step2)); |
40 } else | 40 } else |
41 InspectorTest.completeDebuggerTest(); | 41 InspectorTest.completeDebuggerTest(); |
42 stepCount++; | 42 stepCount++; |
43 } | 43 } |
44 } | 44 } |
45 | 45 |
46 </script> | 46 </script> |
47 </head> | 47 </head> |
48 | 48 |
49 <body onload="runTest()"> | 49 <body onload="runTest()"> |
50 <p> | 50 <p> |
51 Tests "step over" functionality in debugger. | 51 Tests "step over" functionality in debugger. |
52 </p> | 52 </p> |
53 | 53 |
54 </body> | 54 </body> |
55 </html> | 55 </html> |
OLD | NEW |