| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script type="text/javascript" src="../http/tests/inspector-protocol/inspector-p
rotocol-test.js"></script> | 4 <script type="text/javascript" src="../http/tests/inspector-protocol/resources/i
nspector-protocol-test.js"></script> |
| 5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
| 6 function pageLoaded() | 6 function pageLoaded() |
| 7 { | 7 { |
| 8 var template = document.querySelector("#tmpl"); | 8 var template = document.querySelector("#tmpl"); |
| 9 var root = document.querySelector("#host").createShadowRoot(); | 9 var root = document.querySelector("#host").createShadowRoot(); |
| 10 root.appendChild(template.content.cloneNode(true)); | 10 root.appendChild(template.content.cloneNode(true)); |
| 11 runTest(); | 11 runTest(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 function test() | 14 function test() |
| (...skipping 18 matching lines...) Expand all Loading... |
| 33 </head> | 33 </head> |
| 34 <body onload="pageLoaded()"> | 34 <body onload="pageLoaded()"> |
| 35 <p>This test checks that style sheets hosted inside shadow roots are reported in
CSS.getAllStyleSheets protocol method.</p> | 35 <p>This test checks that style sheets hosted inside shadow roots are reported in
CSS.getAllStyleSheets protocol method.</p> |
| 36 <div id="host"></div> | 36 <div id="host"></div> |
| 37 <template id="tmpl"> | 37 <template id="tmpl"> |
| 38 <style> .red { color: red; } </style> | 38 <style> .red { color: red; } </style> |
| 39 <div id="inner" class="red">hi!</div> | 39 <div id="inner" class="red">hi!</div> |
| 40 </template> | 40 </template> |
| 41 </body> | 41 </body> |
| 42 </html> | 42 </html> |
| OLD | NEW |