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

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

Issue 1144953005: [DevTools] Extracted EventListenersTreeOutline (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/event-listener-sidebar-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var initialize_ElementTest = function() { 1 var initialize_ElementTest = function() {
2 2
3 InspectorTest.preloadPanel("elements"); 3 InspectorTest.preloadPanel("elements");
4 4
5 InspectorTest.inlineStyleSection = function() 5 InspectorTest.inlineStyleSection = function()
6 { 6 {
7 return WebInspector.panels.elements.sidebarPanes.styles._sectionBlocks[0].se ctions[0]; 7 return WebInspector.panels.elements.sidebarPanes.styles._sectionBlocks[0].se ctions[0];
8 } 8 }
9 9
10 InspectorTest.computedStyleSidebarPane = function() 10 InspectorTest.computedStyleSidebarPane = function()
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 } 406 }
407 407
408 InspectorTest.toggleMatchedStyleProperty = function(propertyName, checked) 408 InspectorTest.toggleMatchedStyleProperty = function(propertyName, checked)
409 { 409 {
410 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem(propertyName); 410 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem(propertyName);
411 treeItem._toggleEnabled({ target: { checked: checked }, consume: function() { } }); 411 treeItem._toggleEnabled({ target: { checked: checked }, consume: function() { } });
412 } 412 }
413 413
414 InspectorTest.expandAndDumpSelectedElementEventListeners = function(callback) 414 InspectorTest.expandAndDumpSelectedElementEventListeners = function(callback)
415 { 415 {
416 InspectorTest.addSniffer(WebInspector.EventListenersSidebarPane.prototype, " _onEventListeners", listenersArrived); 416 InspectorTest.addSniffer(WebInspector.EventListenersSidebarPane.prototype, " _eventListenersArivedForTest", listenersArrived);
417 417
418 var sidebarPane = WebInspector.panels.elements.sidebarPanes.eventListeners; 418 var sidebarPane = WebInspector.panels.elements.sidebarPanes.eventListeners;
419 sidebarPane.expand(); 419 sidebarPane.expand();
420 420
421 function listenersArrived() 421 function listenersArrived()
422 { 422 {
423 var listenerTypes = sidebarPane._treeOutline.rootElement().children(); 423 var listenerTypes = sidebarPane._eventListenersView._treeOutline.rootEle ment().children();
424 for (var i = 0; i < listenerTypes.length; ++i) { 424 for (var i = 0; i < listenerTypes.length; ++i) {
425 listenerTypes[i].expand(); 425 listenerTypes[i].expand();
426 var listenerItems = listenerTypes[i].children(); 426 var listenerItems = listenerTypes[i].children();
427 for (var j = 0; j < listenerItems.length; ++j) 427 for (var j = 0; j < listenerItems.length; ++j)
428 listenerItems[j].expand(); 428 listenerItems[j].expand();
429 } 429 }
430 InspectorTest.runAfterPendingDispatches(objectsExpanded); 430 InspectorTest.runAfterPendingDispatches(objectsExpanded);
431 } 431 }
432 432
433 function objectsExpanded() 433 function objectsExpanded()
434 { 434 {
435 var listenerTypes = sidebarPane._treeOutline.rootElement().children(); 435 var listenerTypes = sidebarPane._eventListenersView._treeOutline.rootEle ment().children();
436 for (var i = 0; i < listenerTypes.length; ++i) { 436 for (var i = 0; i < listenerTypes.length; ++i) {
437 var eventType = listenerTypes[i]._title; 437 var eventType = listenerTypes[i]._title;
438 InspectorTest.addResult(""); 438 InspectorTest.addResult("");
439 InspectorTest.addResult("======== " + eventType + " ========"); 439 InspectorTest.addResult("======== " + eventType + " ========");
440 var listenerItems = listenerTypes[i].children(); 440 var listenerItems = listenerTypes[i].children();
441 for (var j = 0; j < listenerItems.length; ++j) 441 for (var j = 0; j < listenerItems.length; ++j)
442 InspectorTest.dumpObjectPropertyTreeElement(listenerItems[j]); 442 InspectorTest.dumpObjectPropertyTreeElement(listenerItems[j]);
443 } 443 }
444 callback(); 444 callback();
445 } 445 }
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 for (nodeRow of nodeUI._rows) { 987 for (nodeRow of nodeUI._rows) {
988 for (var ui of nodeRow.animations) { 988 for (var ui of nodeRow.animations) {
989 InspectorTest.addResult(ui._nameElement.outerHTML); 989 InspectorTest.addResult(ui._nameElement.outerHTML);
990 InspectorTest.addResult(ui._svg.outerHTML); 990 InspectorTest.addResult(ui._svg.outerHTML);
991 } 991 }
992 } 992 }
993 } 993 }
994 } 994 }
995 995
996 }; 996 };
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/event-listener-sidebar-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698