| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | |
| 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> | |
| 5 <script src="resources/framework.js"></script> | |
| 6 <script> | |
| 7 | |
| 8 function testFunction() | |
| 9 { | |
| 10 Framework.safeRun(Framework.breakInFramework, Framework.empty) | |
| 11 Framework.safeRun(Framework.empty); // should not step inside | |
| 12 Framework.empty(); // dummy call | |
| 13 Framework.sendXHR('/foo?a=b'); | |
| 14 } | |
| 15 | |
| 16 function test() | |
| 17 { | |
| 18 var frameworkRegexString = "/framework\\.js$"; | |
| 19 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexStri
ng); | |
| 20 | |
| 21 InspectorTest.setQuiet(true); | |
| 22 InspectorTest.startDebuggerTest(step1); | |
| 23 | |
| 24 var xhrPane; | |
| 25 | |
| 26 function step1() | |
| 27 { | |
| 28 xhrPane = WebInspector.panels.sources.sidebarPanes.xhrBreakpoints; | |
| 29 xhrPane._setBreakpoint("foo", true); | |
| 30 InspectorTest.runTestFunctionAndWaitUntilPaused(step2); | |
| 31 } | |
| 32 | |
| 33 function step2() | |
| 34 { | |
| 35 var actions = [ | |
| 36 "Print", // debugger; | |
| 37 "StepInto", "Print", | |
| 38 "StepOver", "Print", | |
| 39 "StepOut", "Print", | |
| 40 "StepInto", "Print", // should not step inside | |
| 41 "Resume", "Print", // should stop on XHR.send() | |
| 42 "StepInto", "Print", // should step inside framework | |
| 43 ]; | |
| 44 InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3); | |
| 45 } | |
| 46 | |
| 47 function step3() | |
| 48 { | |
| 49 xhrPane._removeBreakpoint("foo"); | |
| 50 InspectorTest.completeDebuggerTest(); | |
| 51 } | |
| 52 } | |
| 53 | |
| 54 </script> | |
| 55 </head> | |
| 56 | |
| 57 <body onload="runTest()"> | |
| 58 <input type='button' onclick='testFunction()' value='Test'/> | |
| 59 <p> | |
| 60 Tests stepping from framework call frames. | |
| 61 </p> | |
| 62 </body> | |
| 63 </html> | |
| OLD | NEW |