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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector-protocol/dom-snapshot/dom-snapshot-getSnapshot-input-value.js
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/dom-snapshot/dom-snapshot-getSnapshot-input-value.js b/third_party/WebKit/LayoutTests/inspector-protocol/dom-snapshot/dom-snapshot-getSnapshot-input-value.js
new file mode 100644
index 0000000000000000000000000000000000000000..da59d71cade002bed754b9606fa5ab0071367b59
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/dom-snapshot/dom-snapshot-getSnapshot-input-value.js
@@ -0,0 +1,19 @@
+(async function(testRunner) {
+ let {page, session, dp} = await testRunner.startURL('../resources/dom-snapshot-input-value.html', 'Tests DOMSnapshot.getSnapshot method returning input values.');
+
+ function stabilize(key, value) {
+ var unstableKeys = ['documentURL', 'baseURL', 'frameId', 'backendNodeId', 'layoutTreeNodes', 'computedStyles'];
+ if (unstableKeys.indexOf(key) !== -1)
+ return '<' + typeof(value) + '>';
+ if (typeof value === 'string' && value.indexOf('/dom-snapshot/') !== -1)
+ value = '<value>';
+ return value;
+ }
+
+ var response = await dp.DOMSnapshot.getSnapshot({'computedStyleWhitelist': []});
+ if (response.error)
+ testRunner.log(response);
+ else
+ testRunner.log(JSON.stringify(response.result, stabilize, 2));
+ testRunner.completeTest();
+})
« 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