| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../../http/tests/inspector/elements-test.js"></script> | 4 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 function createShadowRootFromTemplate(root, selector, templateId) | 6 function createShadowRootFromTemplate(root, selector, templateId) |
| 7 { | 7 { |
| 8 var shadowHost = root.querySelector(selector); | 8 var shadowHost = root.querySelector(selector); |
| 9 var shadowRoot = shadowHost.createShadowRoot(); | 9 var shadowRoot = shadowHost.createShadowRoot(); |
| 10 var template = document.querySelector(templateId); | 10 var template = document.querySelector(templateId); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 InspectorTest.evaluateInPage("initInnerShadowRoot()"); | 98 InspectorTest.evaluateInPage("initInnerShadowRoot()"); |
| 99 } | 99 } |
| 100 | 100 |
| 101 function distributedNodeChangedAfterAddingInnerShadowRoot() | 101 function distributedNodeChangedAfterAddingInnerShadowRoot() |
| 102 { | 102 { |
| 103 InspectorTest.completeTest(); | 103 InspectorTest.completeTest(); |
| 104 } | 104 } |
| 105 | 105 |
| 106 function waitForModifiedNodesUpdate(title, next) | 106 function waitForModifiedNodesUpdate(title, next) |
| 107 { | 107 { |
| 108 InspectorTest.addSniffer(WebInspector.ElementsTreeOutline.prototype, "_u
pdateModifiedNodes", callback); | 108 InspectorTest.addSniffer(Elements.ElementsTreeOutline.prototype, "_updat
eModifiedNodes", callback); |
| 109 | 109 |
| 110 function callback() | 110 function callback() |
| 111 { | 111 { |
| 112 expandAndDumpShadowHostNode("========= " + title + " ========", next
); | 112 expandAndDumpShadowHostNode("========= " + title + " ========", next
); |
| 113 } | 113 } |
| 114 } | 114 } |
| 115 | 115 |
| 116 function expandAndDumpShadowHostNode(title, next) | 116 function expandAndDumpShadowHostNode(title, next) |
| 117 { | 117 { |
| 118 InspectorTest.addResult(title); | 118 InspectorTest.addResult(title); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 </div> | 157 </div> |
| 158 <div class="distributeMeToInner original"> | 158 <div class="distributeMeToInner original"> |
| 159 oldest distributed text | 159 oldest distributed text |
| 160 </div> | 160 </div> |
| 161 <div class="distributeMeToInner original2"> | 161 <div class="distributeMeToInner original2"> |
| 162 oldest distributed text | 162 oldest distributed text |
| 163 </div> | 163 </div> |
| 164 </div> | 164 </div> |
| 165 </body> | 165 </body> |
| 166 </html> | 166 </html> |
| OLD | NEW |