| 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 src="resources/framework.js"></script> | 5 <script src="resources/framework.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function testFunction() | 8 function testFunction() |
| 9 { | 9 { |
| 10 for (var i = 1, func; func = eval("typeof test" + i + " === 'function' && te
st" + i); ++i) | 10 for (var i = 1, func; func = eval("typeof test" + i + " === 'function' && te
st" + i); ++i) |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 InspectorTest.setQuiet(true); | 54 InspectorTest.setQuiet(true); |
| 55 InspectorTest.startDebuggerTest(step1); | 55 InspectorTest.startDebuggerTest(step1); |
| 56 | 56 |
| 57 function step1() | 57 function step1() |
| 58 { | 58 { |
| 59 DebuggerAgent.skipStackFrames(frameworkRegexString, step2); | 59 DebuggerAgent.skipStackFrames(frameworkRegexString, step2); |
| 60 } | 60 } |
| 61 | 61 |
| 62 function step2() | 62 function step2() |
| 63 { | 63 { |
| 64 InspectorTest.runTestFunctionAndWaitUntilPaused(didPaused); | 64 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); |
| 65 } | 65 } |
| 66 | 66 |
| 67 var step = 0; | 67 var step = 0; |
| 68 var stepInCount = 0; | 68 var stepInCount = 0; |
| 69 function didPaused(callFrames, reason, breakpointIds, asyncStackTrace) | 69 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) |
| 70 { | 70 { |
| 71 if (stepInCount < 2) { | 71 if (stepInCount < 2) { |
| 72 ++stepInCount; | 72 ++stepInCount; |
| 73 WebInspector.panels.sources._stepIntoButton.element.click(); | 73 WebInspector.panels.sources._stepIntoButton.element.click(); |
| 74 InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(In
spectorTest, didPaused)); | 74 InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(In
spectorTest, didPause)); |
| 75 return; | 75 return; |
| 76 } | 76 } |
| 77 | 77 |
| 78 stepInCount = 0; | 78 stepInCount = 0; |
| 79 InspectorTest.captureStackTrace(callFrames); | 79 InspectorTest.captureStackTrace(callFrames); |
| 80 InspectorTest.addResult(""); | 80 InspectorTest.addResult(""); |
| 81 if (++step < totalDebuggerStatements) | 81 if (++step < totalDebuggerStatements) |
| 82 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(Ins
pectorTest, didPaused)); | 82 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(Ins
pectorTest, didPause)); |
| 83 else | 83 else |
| 84 InspectorTest.completeDebuggerTest(); | 84 InspectorTest.completeDebuggerTest(); |
| 85 } | 85 } |
| 86 } | 86 } |
| 87 | 87 |
| 88 </script> | 88 </script> |
| 89 </head> | 89 </head> |
| 90 | 90 |
| 91 <body onload="runTest()"> | 91 <body onload="runTest()"> |
| 92 <input type='button' onclick='testFunction()' value='Test'/> | 92 <input type='button' onclick='testFunction()' value='Test'/> |
| 93 <p> | 93 <p> |
| 94 Tests the skip stack frames feature when stepping. | 94 Tests the skip stack frames feature when stepping. |
| 95 </p> | 95 </p> |
| 96 </body> | 96 </body> |
| 97 </html> | 97 </html> |
| OLD | NEW |