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

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

Issue 1268353005: [DevTools] Support JQuery event listeners (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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.computedStyleWidget = function() 10 InspectorTest.computedStyleWidget = function()
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 } 454 }
455 455
456 function objectsExpanded() 456 function objectsExpanded()
457 { 457 {
458 var listenerTypes = eventListenersWidget._eventListenersView._treeOutlin e.rootElement().children(); 458 var listenerTypes = eventListenersWidget._eventListenersView._treeOutlin e.rootElement().children();
459 for (var i = 0; i < listenerTypes.length; ++i) { 459 for (var i = 0; i < listenerTypes.length; ++i) {
460 var eventType = listenerTypes[i]._title; 460 var eventType = listenerTypes[i]._title;
461 InspectorTest.addResult(""); 461 InspectorTest.addResult("");
462 InspectorTest.addResult("======== " + eventType + " ========"); 462 InspectorTest.addResult("======== " + eventType + " ========");
463 var listenerItems = listenerTypes[i].children(); 463 var listenerItems = listenerTypes[i].children();
464 for (var j = 0; j < listenerItems.length; ++j) 464 for (var j = 0; j < listenerItems.length; ++j) {
465 InspectorTest.addResult("== " + listenerItems[j].eventListener() .listenerType());
465 InspectorTest.dumpObjectPropertyTreeElement(listenerItems[j]); 466 InspectorTest.dumpObjectPropertyTreeElement(listenerItems[j]);
467 }
466 } 468 }
467 callback(); 469 callback();
468 } 470 }
469 } 471 }
470 472
471 InspectorTest.dumpObjectPropertyTreeElement = function(treeElement) 473 InspectorTest.dumpObjectPropertyTreeElement = function(treeElement)
472 { 474 {
473 var expandedSubstring = treeElement.expanded ? "[expanded]" : "[collapsed]"; 475 var expandedSubstring = treeElement.expanded ? "[expanded]" : "[collapsed]";
474 InspectorTest.addResult(expandedSubstring + " " + treeElement.listItemElemen t.deepTextContent()); 476 InspectorTest.addResult(expandedSubstring + " " + treeElement.listItemElemen t.deepTextContent());
475 477
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 for (var ui of nodeRow.animations) { 1013 for (var ui of nodeRow.animations) {
1012 InspectorTest.addResult(ui.animation().type()); 1014 InspectorTest.addResult(ui.animation().type());
1013 InspectorTest.addResult(ui._nameElement.outerHTML); 1015 InspectorTest.addResult(ui._nameElement.outerHTML);
1014 InspectorTest.addResult(ui._svg.outerHTML); 1016 InspectorTest.addResult(ui._svg.outerHTML);
1015 } 1017 }
1016 } 1018 }
1017 } 1019 }
1018 } 1020 }
1019 1021
1020 }; 1022 };
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