Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/detach-when-paused-in-instrumentation.html

Issue 2139443002: [DevTools] Allow modifying instrumenting agents while iterating. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/debugger/detach-when-paused-in-instrumentation-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script> 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
4 <script> 4 <script>
5 5
6 function modifyHTML() 6 function modifyHTML()
7 { 7 {
8 document.getElementById("divUnderTest").innerHTML = "innerHTML"; 8 document.getElementById("divUnderTest").innerHTML = "innerHTML";
9 } 9 }
10 10
11 function test() 11 function test()
12 { 12 {
13 InspectorTest.sendCommand("Debugger.enable", {}); 13 InspectorTest.sendCommand("Debugger.enable", {});
14 InspectorTest.sendCommand("DOM.enable", {}); 14 InspectorTest.sendCommand("DOM.enable", {});
15 InspectorTest.sendCommand("DOMDebugger.enable", {}); 15 InspectorTest.sendCommand("DOMDebugger.enable", {});
16 InspectorTest.sendCommand("DOMDebugger.setInstrumentationBreakpoint", {"even tName":"setInnerHTML"}); 16 InspectorTest.sendCommand("DOMDebugger.setInstrumentationBreakpoint", {"even tName":"setInnerHTML"});
17 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "modifyHTML()" }); 17 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "modifyHTML()" });
18 InspectorTest.eventHandler["Debugger.paused"] = handleDebuggerPausedOne; 18 InspectorTest.eventHandler["Debugger.paused"] = handleDebuggerPausedOne;
19 19
20 function handleDebuggerPausedOne(messageObject) 20 function handleDebuggerPausedOne(messageObject)
21 { 21 {
22 var callFrame = messageObject.params.callFrames[0]; 22 var callFrame = messageObject.params.callFrames[0];
23 InspectorTest.log("Paused on the innerHTML assignment: " + callFrame.fun ctionName + "@:" + callFrame.location.lineNumber); 23 InspectorTest.log("Paused on the innerHTML assignment: " + callFrame.fun ctionName + "@:" + callFrame.location.lineNumber);
24 InspectorTest.sendCommand("Debugger.resume", { }, didResume); 24 InspectorTest.completeTest();
25 function didResume()
26 {
27 InspectorTest.completeTest();
28 }
29 } 25 }
30 } 26 }
31 </script> 27 </script>
32 </head> 28 </head>
33 <body onLoad="runTest();"> 29 <body onLoad="runTest();">
34 <div id="divUnderTest"></div> 30 <div id="divUnderTest"></div>
31 Tests that we don't crash when detaching on pause from instrumentation call.
35 </body> 32 </body>
36 </html> 33 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/debugger/detach-when-paused-in-instrumentation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698