blob: b9b0bc3ae26ea29ba1908c9a03befcbc982ac080 [file] [log] [blame]
(async function(testRunner) {
const {page, session, dp} = await testRunner.startURL('../resources/dom-snapshot-pseudo-element.html', 'Tests DOMSnapshot.getSnapshot exports layout tree nodes associated with pseudo elements.');
const response = await dp.DOMSnapshot.getSnapshot({'computedStyleWhitelist': ['font-weight', 'color'], 'includeEventListeners': true});
if (response.error)
testRunner.log(response);
else
testRunner.log(response.result, null, ['documentURL', 'baseURL', 'frameId', 'backendNodeId']);
testRunner.completeTest();
})