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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom-snapshot/dom-snapshot-getSnapshot-input-value.js

Issue 2971133002: Add input element values to DOMSnapshot command (Closed)
Patch Set: add separate tests for input value 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.startURL('../resources/dom-snapshot -input-value.html', 'Tests DOMSnapshot.getSnapshot method returning input values .');
3
4 function stabilize(key, value) {
5 var unstableKeys = ['documentURL', 'baseURL', 'frameId', 'backendNodeId', 'l ayoutTreeNodes', 'computedStyles'];
6 if (unstableKeys.indexOf(key) !== -1)
7 return '<' + typeof(value) + '>';
8 if (typeof value === 'string' && value.indexOf('/dom-snapshot/') !== -1)
9 value = '<value>';
10 return value;
11 }
12
13 var response = await dp.DOMSnapshot.getSnapshot({'computedStyleWhitelist': []} );
14 if (response.error)
15 testRunner.log(response);
16 else
17 testRunner.log(JSON.stringify(response.result, stabilize, 2));
18 testRunner.completeTest();
19 })
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/dom-snapshot/dom-snapshot-getSnapshot-input-value-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698