3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script src="../../http/tests/inspector/elements-test.js"></script>
10 WebInspector.settings.showUAShadowDOM.set(true);
11 InspectorTest.selectNodeWithId("shadow", step1);
15 InspectorTest.evaluateInConsoleAndDump("'Author shadow element: ' + $0.id", step3);
20 InspectorTest.selectNodeWithId("user-agent-host", step4);
25 WebInspector.panels.elements.revealAndSelectNode(node.shadowRoots()[0]);
26 InspectorTest.evaluateInConsoleAndDump("'User agent shadow host: ' + $0.id", step5);
31 InspectorTest.completeTest();
37 <body onload="runTest()">
39 Tests that $0 works with shadow dom.
42 <div><div><div id="host"></div></div></div>
44 var host = document.querySelector('#host');
45 var sr = host.createShadowRoot();
46 sr.innerHTML = "<div><div><div id='shadow'><input id='user-agent-host' type='range'></div></div></div>";