| 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 Framework.safeRun(Framework.breakInFramework, Framework.empty) | 10 Framework.safeRun(Framework.breakInFramework, Framework.empty) |
| 11 Framework.safeRun(Framework.empty); // should not step inside | 11 Framework.safeRun(Framework.empty); // should not step inside |
| 12 Framework.empty(); // dummy call | 12 Framework.empty(); // dummy call |
| 13 Framework.sendXHR('/foo?a=b'); | 13 Framework.sendXHR('/foo?a=b'); |
| 14 } | 14 } |
| 15 | 15 |
| 16 function test() | 16 function test() |
| 17 { | 17 { |
| 18 var frameworkRegexString = "/framework\\.js$"; | 18 var frameworkRegexString = "/framework\\.js$"; |
| 19 WebInspector.experimentsSettings.frameworksDebuggingSupport.enableForTest(); | |
| 20 WebInspector.settings.skipStackFramesPattern.set(frameworkRegexString); | 19 WebInspector.settings.skipStackFramesPattern.set(frameworkRegexString); |
| 21 | 20 |
| 22 InspectorTest.setQuiet(true); | 21 InspectorTest.setQuiet(true); |
| 23 InspectorTest.startDebuggerTest(step1); | 22 InspectorTest.startDebuggerTest(step1); |
| 24 | 23 |
| 25 var xhrPane; | 24 var xhrPane; |
| 26 | 25 |
| 27 function step1() | 26 function step1() |
| 28 { | 27 { |
| 29 xhrPane = WebInspector.panels.sources.sidebarPanes.xhrBreakpoints; | 28 xhrPane = WebInspector.panels.sources.sidebarPanes.xhrBreakpoints; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 55 </script> | 54 </script> |
| 56 </head> | 55 </head> |
| 57 | 56 |
| 58 <body onload="runTest()"> | 57 <body onload="runTest()"> |
| 59 <input type='button' onclick='testFunction()' value='Test'/> | 58 <input type='button' onclick='testFunction()' value='Test'/> |
| 60 <p> | 59 <p> |
| 61 Tests stepping from framework call frames. | 60 Tests stepping from framework call frames. |
| 62 </p> | 61 </p> |
| 63 </body> | 62 </body> |
| 64 </html> | 63 </html> |
| OLD | NEW |