| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 <html> | 
|  | 2 <head> | 
|  | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 
|  | 4 <script src="../../http/tests/inspector/elements-test.js"></script> | 
|  | 5 <script src="resources/jquery-1.11.3.min.js"></script> | 
|  | 6 <script> | 
|  | 7 function setupEventListeners() | 
|  | 8 { | 
|  | 9     var node = $("#node")[0]; | 
|  | 10     $("#node").click(function(){ console.log("first jquery"); }); | 
|  | 11     $("#node").click(function(){ console.log("second jquery"); }); | 
|  | 12     node.addEventListener("click", function() { console.log("addEventListener");
     }); | 
|  | 13 } | 
|  | 14 | 
|  | 15 function test() | 
|  | 16 { | 
|  | 17     var sidebarPane = WebInspector.panels.elements.sidebarPanes.eventListeners; | 
|  | 18 | 
|  | 19     WebInspector.settingForTest("showEventListenersForAncestors").set(true); | 
|  | 20     InspectorTest.selectNodeWithId("node", step1); | 
|  | 21 | 
|  | 22     function step1() | 
|  | 23     { | 
|  | 24         InspectorTest.expandAndDumpSelectedElementEventListeners(InspectorTest.c
    ompleteTest.bind(this)); | 
|  | 25     } | 
|  | 26 } | 
|  | 27 | 
|  | 28 function onloadHandler() | 
|  | 29 { | 
|  | 30     setupEventListeners(); | 
|  | 31     runTest(); | 
|  | 32 } | 
|  | 33 </script> | 
|  | 34 </head> | 
|  | 35 | 
|  | 36 <body onload="onloadHandler()"> | 
|  | 37 <p> | 
|  | 38 Tests event listeners output in the Elements sidebar panel. | 
|  | 39 </p> | 
|  | 40 <button id="node">Inspect Me</button> | 
|  | 41 </body> | 
|  | 42 </html> | 
| OLD | NEW | 
|---|