| 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.skipStackFramesPattern.set(frameworkRegexString); | 54 WebInspector.settings.skipStackFramesPattern.set(frameworkRegexString); |
| 56 | 55 |
| 57 InspectorTest.setQuiet(true); | 56 InspectorTest.setQuiet(true); |
| 58 InspectorTest.startDebuggerTest(step1); | 57 InspectorTest.startDebuggerTest(step1); |
| 59 | 58 |
| 60 function step1() | 59 function step1() |
| 61 { | 60 { |
| 62 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); | 61 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); |
| 63 } | 62 } |
| 64 | 63 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 86 </script> | 85 </script> |
| 87 </head> | 86 </head> |
| 88 | 87 |
| 89 <body onload="runTest()"> | 88 <body onload="runTest()"> |
| 90 <input type='button' onclick='testFunction()' value='Test'/> | 89 <input type='button' onclick='testFunction()' value='Test'/> |
| 91 <p> | 90 <p> |
| 92 Tests the skip stack frames feature when stepping. | 91 Tests the skip stack frames feature when stepping. |
| 93 </p> | 92 </p> |
| 94 </body> | 93 </body> |
| 95 </html> | 94 </html> |
| OLD | NEW |