| 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"); | 
| (...skipping 30 matching lines...) Expand all  Loading... | 
| 41     { | 41     { | 
| 42         InspectorTest.dumpBreadcrumb("Closed shadow root breadcrumb"); | 42         InspectorTest.dumpBreadcrumb("Closed shadow root breadcrumb"); | 
| 43         InspectorTest.completeTest(); | 43         InspectorTest.completeTest(); | 
| 44     } | 44     } | 
| 45 | 45 | 
| 46     function selectNode(matchFunction, next) | 46     function selectNode(matchFunction, next) | 
| 47     { | 47     { | 
| 48         InspectorTest.findNode(matchFunction, callback); | 48         InspectorTest.findNode(matchFunction, callback); | 
| 49         function callback(node) | 49         function callback(node) | 
| 50         { | 50         { | 
| 51             Common.Revealer.revealPromise(node).then(next); | 51             InspectorTest.addSniffer(Elements.ElementsBreadcrumbs.prototype, "up
    date", next); | 
|  | 52             Common.Revealer.revealPromise(node); | 
| 52         } | 53         } | 
| 53     } | 54     } | 
| 54 | 55 | 
| 55     function matchUserAgentShadowRoot(node) | 56     function matchUserAgentShadowRoot(node) | 
| 56     { | 57     { | 
| 57         return node.shadowRootType() === SDK.DOMNode.ShadowRootTypes.UserAgent; | 58         return node.shadowRootType() === SDK.DOMNode.ShadowRootTypes.UserAgent; | 
| 58     } | 59     } | 
| 59 | 60 | 
| 60     function matchOpenShadowRoot(node) | 61     function matchOpenShadowRoot(node) | 
| 61     { | 62     { | 
| (...skipping 18 matching lines...) Expand all  Loading... | 
| 80 <div id="host"></div> | 81 <div id="host"></div> | 
| 81 <div id="hostClosed"></div> | 82 <div id="hostClosed"></div> | 
| 82 <template id="tmpl"> | 83 <template id="tmpl"> | 
| 83     <style>.red { color: red; }</style> | 84     <style>.red { color: red; }</style> | 
| 84     <div id="inner" class="red">inner</div> | 85     <div id="inner" class="red">inner</div> | 
| 85 </template> | 86 </template> | 
| 86 | 87 | 
| 87 | 88 | 
| 88 </body> | 89 </body> | 
| 89 </html> | 90 </html> | 
| OLD | NEW | 
|---|