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

Unified Diff: LayoutTests/http/tests/inspector/elements-test.js

Issue 1042853004: [DevTools] Event Listeners Sidebar shows window listeners (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Extracted eventListenersTreeOutline.css Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/event-listener-sidebar.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector/elements-test.js
diff --git a/LayoutTests/http/tests/inspector/elements-test.js b/LayoutTests/http/tests/inspector/elements-test.js
index 136613619257eab64755704b52a87f6e70225a8b..05765cdf7a45853941df1c0f9d5d598fc18a3499 100644
--- a/LayoutTests/http/tests/inspector/elements-test.js
+++ b/LayoutTests/http/tests/inspector/elements-test.js
@@ -413,14 +413,14 @@ InspectorTest.toggleMatchedStyleProperty = function(propertyName, checked)
InspectorTest.expandAndDumpSelectedElementEventListeners = function(callback)
{
- InspectorTest.addSniffer(WebInspector.EventListenersSidebarPane.prototype, "_onEventListeners", listenersArrived);
+ InspectorTest.addSniffer(WebInspector.EventListenersTreeOutline.prototype, "_onEventListeners", listenersArrived);
var sidebarPane = WebInspector.panels.elements.sidebarPanes.eventListeners;
sidebarPane.expand();
function listenersArrived()
{
- var listenerTypes = sidebarPane._treeOutline.rootElement().children();
+ var listenerTypes = sidebarPane._eventListenersTreeOutline._treeOutline.rootElement().children();
for (var i = 0; i < listenerTypes.length; ++i) {
listenerTypes[i].expand();
var listenerItems = listenerTypes[i].children();
@@ -432,7 +432,7 @@ InspectorTest.expandAndDumpSelectedElementEventListeners = function(callback)
function objectsExpanded()
{
- var listenerTypes = sidebarPane._treeOutline.rootElement().children();
+ var listenerTypes = sidebarPane._eventListenersTreeOutline._treeOutline.rootElement().children();
for (var i = 0; i < listenerTypes.length; ++i) {
var eventType = listenerTypes[i]._title;
InspectorTest.addResult("");
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/event-listener-sidebar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698