| 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 modifyHTML() | |
| 7 { | |
| 8 document.getElementById("divUnderTest").innerHTML = "innerHTML"; | |
| 9 } | |
| 10 | |
| 11 function test() | |
| 12 { | |
| 13 InspectorTest.sendCommand("Debugger.enable", {}); | |
| 14 InspectorTest.sendCommand("DOM.enable", {}); | |
| 15 InspectorTest.sendCommand("DOMDebugger.enable", {}); | |
| 16 InspectorTest.sendCommand("DOMDebugger.setInstrumentationBreakpoint", {"even
tName":"Element.setInnerHTML"}); | |
| 17 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "modifyHTML()"
}); | |
| 18 InspectorTest.eventHandler["Debugger.paused"] = handleDebuggerPausedOne; | |
| 19 | |
| 20 function handleDebuggerPausedOne(messageObject) | |
| 21 { | |
| 22 var callFrame = messageObject.params.callFrames[0]; | |
| 23 InspectorTest.log("Paused on the innerHTML assignment: " + callFrame.fun
ctionName + "@:" + callFrame.location.lineNumber); | |
| 24 InspectorTest.sendCommand("Debugger.resume", { }, didResume); | |
| 25 function didResume() | |
| 26 { | |
| 27 InspectorTest.completeTest(); | |
| 28 } | |
| 29 } | |
| 30 } | |
| 31 </script> | |
| 32 </head> | |
| 33 <body onLoad="runTest();"> | |
| 34 <div id="divUnderTest"></div> | |
| 35 </body> | |
| 36 </html> | |
| OLD | NEW |