Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector-protocol / debugger / domdebugger-setInnerHTML.html
blob04655c6fb222e65c331ddff01b67313afcde7029
1 <html>
2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
4 <script>
6 function modifyHTML()
8 document.getElementById("divUnderTest").innerHTML = "innerHTML";
11 function test()
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();
28 </script>
29 </head>
30 <body onLoad="runTest();">
31 <div id="divUnderTest"></div>
32 </body>
33 </html>