blob: a8a2a9f73f2c33e64a779b3fea49cb64eaf42b98 [file] [log] [blame]
(async function(testRunner) {
const {dp} = await testRunner.startURL('../resources/dom-snapshot-includeDOMRects.html', 'Tests DOMSnapshot.getSnapshot reports offset, scroll, and client rects of each node.');
const response = await dp.DOMSnapshot.captureSnapshot({'computedStyles': [], 'includeDOMRects': true});
if (response.error)
testRunner.log(response);
else
testRunner.log(response.result, null, ['strings', 'textBoxes', 'nodes', 'nodeIndex', 'styles', 'text', 'stackingContexts']);
testRunner.completeTest();
})