3 <script type=
"text/javascript" src=
"../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
8 document
.getElementById("divUnderTest").innerHTML
= "innerHTML";
13 InspectorTest
.sendCommand("Debugger.enable", {});
14 InspectorTest
.sendCommand("DOM.enable", {});
15 InspectorTest
.sendCommand("DOMDebugger.enable", {});
16 InspectorTest
.sendCommand("DOMDebugger.setInstrumentationBreakpoint", {"eventName":"setInnerHTML"});
17 InspectorTest
.sendCommand("Runtime.evaluate", { "expression": "modifyHTML()" });
18 InspectorTest
.eventHandler
["Debugger.paused"] = handleDebuggerPausedOne
;
20 function handleDebuggerPausedOne(messageObject
)
22 var callFrame
= messageObject
.params
.callFrames
[0];
23 InspectorTest
.log("Paused on the innerHTML assignment: " + callFrame
.functionName
+ "@:" + callFrame
.location
.lineNumber
);
24 InspectorTest
.sendCommand("Debugger.resume", { });
25 InspectorTest
.completeTest();
30 <body onLoad=
"runTest();">
31 <div id=
"divUnderTest"></div>