| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../http/tests/inspector/inspector-test.js"></script> | 4 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 5 <script src="../../http/tests/inspector/elements-test.js"></script> | 5 <script src="../../http/tests/inspector/elements-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function loaded() | 8 function loaded() |
| 9 { | 9 { |
| 10 var template = document.querySelector("#tmpl"); | 10 var template = document.querySelector("#tmpl"); |
| 11 var root = document.querySelector("#host").createShadowRoot(); | 11 var root = document.querySelector("#host").webkitCreateShadowRoot(); |
| 12 root.appendChild(template.content.cloneNode(true)); | 12 root.appendChild(template.content.cloneNode(true)); |
| 13 runTest(); | 13 runTest(); |
| 14 } | 14 } |
| 15 | 15 |
| 16 function test() | 16 function test() |
| 17 { | 17 { |
| 18 WebInspector.inspectorView.showPanel("elements"); | 18 WebInspector.inspectorView.showPanel("elements"); |
| 19 WebInspector.settings.showUAShadowDOM.set(true); | 19 WebInspector.settings.showUAShadowDOM.set(true); |
| 20 InspectorTest.expandElementsTree(step0); | 20 InspectorTest.expandElementsTree(step0); |
| 21 | 21 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 <input type="text"> | 68 <input type="text"> |
| 69 <div id="host"></div> | 69 <div id="host"></div> |
| 70 <template id="tmpl"> | 70 <template id="tmpl"> |
| 71 <style>.red { color: red; }</style> | 71 <style>.red { color: red; }</style> |
| 72 <div id="inner" class="red">inner</div> | 72 <div id="inner" class="red">inner</div> |
| 73 </template> | 73 </template> |
| 74 | 74 |
| 75 | 75 |
| 76 </body> | 76 </body> |
| 77 </html> | 77 </html> |
| OLD | NEW |