Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getEventListeners.html

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698