| 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="../debugger/resources/framework-with-sourcemap.js"></script> | 
|  | 6 <script> | 
|  | 7 | 
|  | 8 function testFunction() | 
|  | 9 { | 
|  | 10     debugger; | 
|  | 11     return foo(callback); | 
|  | 12 } | 
|  | 13 | 
|  | 14 function callback(i) | 
|  | 15 { | 
|  | 16     return i; | 
|  | 17 } | 
|  | 18 | 
|  | 19 function test() | 
|  | 20 { | 
|  | 21     InspectorTest.addSniffer(WebInspector.BlackboxManager.prototype, "_patternCh
    angeFinishedForTests", step1); | 
|  | 22     var frameworkRegexString = "/framework\\.js$"; | 
|  | 23     WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexStri
    ng); | 
|  | 24 | 
|  | 25     function step1() | 
|  | 26     { | 
|  | 27         InspectorTest.startDebuggerTest(step2, true); | 
|  | 28     } | 
|  | 29 | 
|  | 30     function step2() | 
|  | 31     { | 
|  | 32         InspectorTest.runTestFunctionAndWaitUntilPaused(step3); | 
|  | 33     } | 
|  | 34 | 
|  | 35     function step3() | 
|  | 36     { | 
|  | 37         var actions = [ | 
|  | 38             "Print", // "debugger" in testFunction() | 
|  | 39             "StepInto", "StepInto", "Print", // entered callback(i) | 
|  | 40             "StepOut", "Print" | 
|  | 41         ]; | 
|  | 42         InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step4); | 
|  | 43     } | 
|  | 44 | 
|  | 45     function step4() | 
|  | 46     { | 
|  | 47         InspectorTest.completeDebuggerTest(); | 
|  | 48     } | 
|  | 49 } | 
|  | 50 </script> | 
|  | 51 </head> | 
|  | 52 <body onload="runTest()"> | 
|  | 53 <p>Tests framework blackboxing feature with sourcemaps.</p> | 
|  | 54 </body> | 
|  | 55 </html> | 
| OLD | NEW | 
|---|