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

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: Implemented in frontend code Created 5 years, 4 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 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 } 437 }
438 438
439 function objectsExpanded() 439 function objectsExpanded()
440 { 440 {
441 var listenerTypes = eventListenersWidget._eventListenersView._treeOutlin e.rootElement().children(); 441 var listenerTypes = eventListenersWidget._eventListenersView._treeOutlin e.rootElement().children();
442 for (var i = 0; i < listenerTypes.length; ++i) { 442 for (var i = 0; i < listenerTypes.length; ++i) {
443 var eventType = listenerTypes[i]._title; 443 var eventType = listenerTypes[i]._title;
444 InspectorTest.addResult(""); 444 InspectorTest.addResult("");
445 InspectorTest.addResult("======== " + eventType + " ========"); 445 InspectorTest.addResult("======== " + eventType + " ========");
446 var listenerItems = listenerTypes[i].children(); 446 var listenerItems = listenerTypes[i].children();
447 for (var j = 0; j < listenerItems.length; ++j) 447 for (var j = 0; j < listenerItems.length; ++j) {
448 InspectorTest.addResult("== " + listenerItems[j].listenerType()) ;
448 InspectorTest.dumpObjectPropertyTreeElement(listenerItems[j]); 449 InspectorTest.dumpObjectPropertyTreeElement(listenerItems[j]);
450 }
449 } 451 }
450 callback(); 452 callback();
451 } 453 }
452 } 454 }
453 455
454 InspectorTest.dumpObjectPropertyTreeElement = function(treeElement) 456 InspectorTest.dumpObjectPropertyTreeElement = function(treeElement)
455 { 457 {
456 var expandedSubstring = treeElement.expanded ? "[expanded]" : "[collapsed]"; 458 var expandedSubstring = treeElement.expanded ? "[expanded]" : "[collapsed]";
457 InspectorTest.addResult(expandedSubstring + " " + treeElement.listItemElemen t.deepTextContent()); 459 InspectorTest.addResult(expandedSubstring + " " + treeElement.listItemElemen t.deepTextContent());
458 460
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 for (var ui of nodeRow.animations) { 996 for (var ui of nodeRow.animations) {
995 InspectorTest.addResult(ui.animation().type()); 997 InspectorTest.addResult(ui.animation().type());
996 InspectorTest.addResult(ui._nameElement.outerHTML); 998 InspectorTest.addResult(ui._nameElement.outerHTML);
997 InspectorTest.addResult(ui._svg.outerHTML); 999 InspectorTest.addResult(ui._svg.outerHTML);
998 } 1000 }
999 } 1001 }
1000 } 1002 }
1001 } 1003 }
1002 1004
1003 }; 1005 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698