blob: a3ddf4a9f8d738a27705baa64d972ff357d852e6 [file] [log] [blame]
(async function(testRunner) {
var {page, session, dp} = await testRunner.startURL('../resources/dom-snapshot-captureSnapshot-details.html', 'Tests that DOMSnapshot.captureSnapshot fills document details: title, size, etc.');
var response = await dp.DOMSnapshot.captureSnapshot({computedStyles: []});
if (response.error) {
testRunner.log(response);
} else {
// Remove unstable strings from the string table.
response.result.strings[response.result.documents[0].documentURL] = '';
response.result.strings[response.result.documents[0].frameId] = '';
testRunner.log(
response.result, undefined,
['documentURL', 'frameId', 'backendNodeId']);
}
testRunner.completeTest();
})