OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> | |
4 <script> | |
5 | |
6 function foo() | |
7 { | |
8 return 239; | |
9 } | |
10 | |
11 function test() | |
12 { | |
13 InspectorTest.sendCommandOrDie("Debugger.enable", {}); | |
14 InspectorTest.eventHandler["Debugger.paused"] = debuggerPaused; | |
15 InspectorTest.sendCommandOrDie("Runtime.evaluate", { "expression": "(functio
n boo() { setTimeout(foo, 0); debugger; })()" }); | |
16 | |
17 var actions = [ "stepInto", "stepInto", "stepInto" ]; | |
18 function debuggerPaused(result) | |
19 { | |
20 InspectorTest.log("Stack trace:"); | |
21 for (var callFrame of result.params.callFrames) | |
22 InspectorTest.log(callFrame.functionName + ':' + callFrame.location.
lineNumber + ":" + callFrame.location.columnNumber); | |
23 InspectorTest.log(""); | |
24 | |
25 var action = actions.shift(); | |
26 if (!action) { | |
27 InspectorTest.sendCommandOrDie("Debugger.resume", {}, () => Inspecto
rTest.completeTest()); | |
28 return; | |
29 } | |
30 InspectorTest.log("Perform " + action); | |
31 InspectorTest.sendCommandOrDie("Debugger." + action, {}); | |
32 } | |
33 } | |
34 </script> | |
35 </head> | |
36 <body onLoad="runTest();"> | |
37 Check that stepInto at then end of the script go to next user script instead Inj
ectedScriptSource.js. | |
38 </body> | |
39 </html> | |
OLD | NEW |