| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 { | 44 { |
| 45 debugger; | 45 debugger; |
| 46 Framework.safeRun(Framework.empty, Framework.throwFrameworkException, callba
ck); // Should be enough to step into callback | 46 Framework.safeRun(Framework.empty, Framework.throwFrameworkException, callba
ck); // Should be enough to step into callback |
| 47 } | 47 } |
| 48 | 48 |
| 49 function test() | 49 function test() |
| 50 { | 50 { |
| 51 var frameworkRegexString = "/framework\\.js$"; | 51 var frameworkRegexString = "/framework\\.js$"; |
| 52 var totalDebuggerStatements = 5; | 52 var totalDebuggerStatements = 5; |
| 53 | 53 |
| 54 WebInspector.experimentsSettings.frameworksDebuggingSupport.enableForTest(); |
| 55 WebInspector.settings.skipStackFramesSwitch.set(true); |
| 56 WebInspector.settings.skipStackFramesPattern.set(frameworkRegexString); |
| 57 |
| 54 InspectorTest.setQuiet(true); | 58 InspectorTest.setQuiet(true); |
| 55 InspectorTest.startDebuggerTest(step1); | 59 InspectorTest.startDebuggerTest(step1); |
| 56 | 60 |
| 57 function step1() | 61 function step1() |
| 58 { | 62 { |
| 59 DebuggerAgent.skipStackFrames(frameworkRegexString, step2); | |
| 60 } | |
| 61 | |
| 62 function step2() | |
| 63 { | |
| 64 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); | 63 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); |
| 65 } | 64 } |
| 66 | 65 |
| 67 var step = 0; | 66 var step = 0; |
| 68 var stepInCount = 0; | 67 var stepInCount = 0; |
| 69 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) | 68 function didPause(callFrames, reason, breakpointIds, asyncStackTrace) |
| 70 { | 69 { |
| 71 if (stepInCount < 2) { | 70 if (stepInCount < 2) { |
| 72 ++stepInCount; | 71 ++stepInCount; |
| 73 WebInspector.panels.sources._stepIntoButton.element.click(); | 72 WebInspector.panels.sources._stepIntoButton.element.click(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 88 </script> | 87 </script> |
| 89 </head> | 88 </head> |
| 90 | 89 |
| 91 <body onload="runTest()"> | 90 <body onload="runTest()"> |
| 92 <input type='button' onclick='testFunction()' value='Test'/> | 91 <input type='button' onclick='testFunction()' value='Test'/> |
| 93 <p> | 92 <p> |
| 94 Tests the skip stack frames feature when stepping. | 93 Tests the skip stack frames feature when stepping. |
| 95 </p> | 94 </p> |
| 96 </body> | 95 </body> |
| 97 </html> | 96 </html> |
| OLD | NEW |