3 <script src=
"../inspector/inspector-test.js"></script>
4 <script src=
"../inspector/elements-test.js"></script>
7 function createShadowRoot()
10 testRunner
.waitUntilDone();
11 var template
= document
.querySelector('#tmpl');
12 var root
= document
.querySelector('#host').createShadowRoot();
13 root
.appendChild(template
.content
.cloneNode(true));
14 if (window
.testRunner
)
15 testRunner
.showWebInspector();
21 InspectorTest
.runTestSuite([
22 function testInit(next
)
24 InspectorTest
.selectNodeAndWaitForStyles("inner", next
);
27 function testDumpStyles(next
)
29 InspectorTest
.dumpSelectedElementStyles(true);
37 <body onload=
"createShadowRoot()">
39 This test checks that style sheets hosted inside shadow roots
44 <style> .red { color: red; }
</style>
45 <div id=
"inner" class=
"red">hi!
</div>