3 <script type=
"text/javascript" src=
"../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
6 function testFunction()
14 InspectorTest
.sendCommand("Debugger.enable", {});
15 InspectorTest
.eventHandler
["Debugger.paused"] = handleDebuggerPaused
;
16 InspectorTest
.sendCommand("Runtime.evaluate", { "expression": "setTimeout(testFunction, 0)" });
18 function handleDebuggerPaused(messageObject
)
20 InspectorTest
.log("Paused on 'debugger;'");
21 var topFrame
= messageObject
.params
.callFrames
[0];
22 topFrame
.location
.scriptId
= "42";
23 topFrame
.functionLocation
.scriptId
= "42";
24 InspectorTest
.log("Top frame location: " + JSON
.stringify(topFrame
.location
));
25 InspectorTest
.log("Top frame functionLocation: " + JSON
.stringify(topFrame
.functionLocation
));
26 InspectorTest
.completeTest();
31 <body onLoad=
"runTest();">