We don't expose shadow DOM to JS normally, yet now that we show it in Elements panel, it may be accessed with $0. This test so far is the only place where we assure that a JS wrapper is properly created for shadow root and other shadow nodes. This is supposed to guard against things like bug 60026
Created attachment 92292 [details] patch
Comment on attachment 92292 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=92292&action=review > LayoutTests/http/tests/inspector/elements-test.js:81 > +InspectorTest.selectNode = function(node, callback) Can you change InspectorTest.selectNodeWithId to call this method as well? > LayoutTests/inspector/console/console-shadow-dom-access.html:25 > + expressions.splice(0, 1); var expression = expressions.shift()
Manually committed a version with yurys' suggestions at r85849: http://trac.webkit.org/changeset/85849