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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/page/setDocumentContent.js

Issue 2972273002: DevTools: Page.setDocumentContent without using DOMPatchSupport (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/page/setDocumentContent-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
(Empty)
1 (async function(testRunner) {
2 let {page, session, dp} = await testRunner.startHTML(`<div>Привет мир</div>`,
3 'Tests that Page.setDocumentContent works.');
4
5 await dp.Page.enable();
6 testRunner.log('Page enabled');
7
8 var resourceTreeResponse = await dp.Page.getResourceTree();
9 var mainFrameId = resourceTreeResponse.result.frameTree.frame.id;
10 testRunner.log('Main Frame obtained');
11
12 testRunner.log('Document content before: ' + await session.evaluate(() => docu ment.documentElement.outerHTML));
13 await dp.Page.setDocumentContent({frameId: mainFrameId, html: '<div>こんにちは世界</d iv>'});
14 testRunner.log('Document content set');
15 testRunner.log('Document content after: ' + await session.evaluate(() => docum ent.documentElement.outerHTML));
16
17 testRunner.completeTest();
18 })
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/page/setDocumentContent-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698