| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 function test() | 6 function test() |
| 7 { | 7 { |
| 8 var objectId; | 8 var objectId; |
| 9 InspectorTest.sendCommand("DOM.enable", {}); | 9 InspectorTest.sendCommand("DOM.enable", {}); |
| 10 InspectorTest.sendCommand("Runtime.enable", {}); | 10 InspectorTest.sendCommand("Runtime.enable", {}); |
| 11 InspectorTest.sendCommand("DOMDebugger.enable", {}); | 11 InspectorTest.sendCommand("DOMDebugger.enable", {}); |
| 12 InspectorTest.sendCommandPromise("Runtime.evaluate", { expression: "document
" }) | 12 InspectorTest.sendCommandPromise("Runtime.evaluate", { expression: "document
" }) |
| 13 .then((result) => { objectId = result.result.result.objectId }) | 13 .then((result) => { objectId = result.result.result.objectId }) |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 var template = document.querySelector("#shadow-template"); | 65 var template = document.querySelector("#shadow-template"); |
| 66 host.appendChild(template.content); | 66 host.appendChild(template.content); |
| 67 template.remove(); | 67 template.remove(); |
| 68 document.getElementById("A").addEventListener("listenerA", () => {}); | 68 document.getElementById("A").addEventListener("listenerA", () => {}); |
| 69 document.getElementById("B").addEventListener("listenerB", () => {}); | 69 document.getElementById("B").addEventListener("listenerB", () => {}); |
| 70 document.getElementById("C").addEventListener("listenerC", () => {}); | 70 document.getElementById("C").addEventListener("listenerC", () => {}); |
| 71 document.addEventListener("documentListener", () => {}); | 71 document.addEventListener("documentListener", () => {}); |
| 72 </script> | 72 </script> |
| 73 </body> | 73 </body> |
| 74 </html> | 74 </html> |
| OLD | NEW |