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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/domdebugger-setInnerHTML.js

Issue 2968523003: [DevTools] Migrate inspector-protocol/debugger tests to new harness (Closed)
Patch Set: all tests Created 3 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
OLDNEW
(Empty)
1 (async function(testRunner) {
2 let {page, session, dp} = await testRunner.startHTML(`
3 <div id='divUnderTest'></div>
4 `, ``);
5
6 dp.Debugger.enable();
7 dp.DOM.enable();
8 dp.DOMDebugger.enable();
9 dp.DOMDebugger.setInstrumentationBreakpoint({eventName: 'Element.setInnerHTML' });
10 dp.Runtime.evaluate({expression: `
11
12
13
14
15
16 (function modifyHTML() {
17 document.getElementById('divUnderTest').innerHTML = 'innerHTML';
18 })()
19 ` });
20 var messageObject = await dp.Debugger.oncePaused();
21 var callFrame = messageObject.params.callFrames[0];
22 testRunner.log('Paused on the innerHTML assignment: ' + callFrame.functionName + '@:' + callFrame.location.lineNumber);
23 await dp.Debugger.resume();
24 testRunner.completeTest();
25 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698