| 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 d() | 7 function d() |
| 8 { | 8 { |
| 9 debugger; | 9 debugger; |
| 10 } | 10 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 function step1() | 21 function step1() |
| 22 { | 22 { |
| 23 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); | 23 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); |
| 24 } | 24 } |
| 25 | 25 |
| 26 function step2(callFrames) | 26 function step2(callFrames) |
| 27 { | 27 { |
| 28 InspectorTest.captureStackTrace(callFrames); | 28 InspectorTest.captureStackTrace(callFrames); |
| 29 InspectorTest.addResult("Stepping out..."); | 29 InspectorTest.addResult("Stepping out..."); |
| 30 InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(Inspec
torTest, step3)); | 30 InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(Inspec
torTest, step3)); |
| 31 WebInspector.panels.scripts._stepOutButton.element.click(); | 31 WebInspector.panels.sources._stepOutButton.element.click(); |
| 32 } | 32 } |
| 33 | 33 |
| 34 function step3(callFrames) | 34 function step3(callFrames) |
| 35 { | 35 { |
| 36 InspectorTest.captureStackTrace(callFrames); | 36 InspectorTest.captureStackTrace(callFrames); |
| 37 InspectorTest.completeDebuggerTest(); | 37 InspectorTest.completeDebuggerTest(); |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 | 40 |
| 41 </script> | 41 </script> |
| 42 </head> | 42 </head> |
| 43 | 43 |
| 44 <body onload="runTest()"> | 44 <body onload="runTest()"> |
| 45 <p> | 45 <p> |
| 46 Tests "step out" functionality in debugger. | 46 Tests "step out" functionality in debugger. |
| 47 </p> | 47 </p> |
| 48 | 48 |
| 49 </body> | 49 </body> |
| 50 </html> | 50 </html> |
| OLD | NEW |