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

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

Issue 842323005: DevTools: Clean up the Event Listeners pane data representation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove listenerBody from the protocol Created 5 years, 10 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 | Annotate | Revision Log
« 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 function getInspectorHighlightJSON(nodeId, opt_frameId) 1 function getInspectorHighlightJSON(nodeId, opt_frameId)
2 { 2 {
3 var doc = document; 3 var doc = document;
4 if (opt_frameId) 4 if (opt_frameId)
5 doc = document.getElementById(opt_frameId).contentDocument; 5 doc = document.getElementById(opt_frameId).contentDocument;
6 return window.internals.inspectorHighlightJSON(doc.getElementById(nodeId)); 6 return window.internals.inspectorHighlightJSON(doc.getElementById(nodeId));
7 } 7 }
8 8
9 var initialize_ElementTest = function() { 9 var initialize_ElementTest = function() {
10 10
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 function objectsExpanded() 344 function objectsExpanded()
345 { 345 {
346 var listenerTypes = sidebarPane.treeOutline.children; 346 var listenerTypes = sidebarPane.treeOutline.children;
347 for (var i = 0; i < listenerTypes.length; ++i) { 347 for (var i = 0; i < listenerTypes.length; ++i) {
348 var eventType = listenerTypes[i]._title; 348 var eventType = listenerTypes[i]._title;
349 InspectorTest.addResult(""); 349 InspectorTest.addResult("");
350 InspectorTest.addResult("======== " + eventType + " ========"); 350 InspectorTest.addResult("======== " + eventType + " ========");
351 var listenerItems = listenerTypes[i].children; 351 var listenerItems = listenerTypes[i].children;
352 for (var j = 0; j < listenerItems.length; ++j) { 352 for (var j = 0; j < listenerItems.length; ++j) {
353 var objectPropertiesSection = listenerItems[j].listItemElement.f irstChild._section; 353 var objectPropertiesSection = listenerItems[j].listItemElement.f irstChild._section;
354 InspectorTest.dumpObjectPropertySection(objectPropertiesSection, { 354 InspectorTest.dumpObjectPropertySection(objectPropertiesSection, {});
355 sourceName: formatSourceNameProperty
356 });
357 } 355 }
358 } 356 }
359 callback(); 357 callback();
360 } 358 }
361
362 function formatSourceNameProperty(value)
363 {
364 return "[clipped-for-test]/" + value.replace(/(.*?\/)LayoutTests/, "Layo utTests");
365 }
366 } 359 }
367 360
368 InspectorTest.dumpObjectPropertySection = function(section, formatters) 361 InspectorTest.dumpObjectPropertySection = function(section, formatters)
369 { 362 {
370 var expandedSubstring = section.expanded ? "[expanded]" : "[collapsed]"; 363 var expandedSubstring = section.expanded ? "[expanded]" : "[collapsed]";
371 var titleElement = section.titleElement.firstElementChild ? section.titleEle ment.firstElementChild.shadowRoot.lastChild.textContent : section.titleElement.t extContent; 364 var titleElement = section.titleElement.firstElementChild ? section.titleEle ment.firstElementChild.shadowRoot.lastChild.textContent : section.titleElement.t extContent;
372 InspectorTest.addResult(expandedSubstring + " " + titleElement + " " + secti on.subtitleAsTextForTest); 365 InspectorTest.addResult(expandedSubstring + " " + titleElement + " " + secti on.subtitleAsTextForTest);
373 if (!section.propertiesForTest) 366 if (!section.propertiesForTest)
374 return; 367 return;
375 368
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 function innerCallback(result) 883 function innerCallback(result)
891 { 884 {
892 InspectorTest.addResult(nodeId + ": " + result.description); 885 InspectorTest.addResult(nodeId + ": " + result.description);
893 callback(); 886 callback();
894 } 887 }
895 opt_frameId = opt_frameId || ""; 888 opt_frameId = opt_frameId || "";
896 InspectorTest.evaluateInPage("getInspectorHighlightJSON(\"" + nodeId + "\", \"" + opt_frameId + "\")", innerCallback); 889 InspectorTest.evaluateInPage("getInspectorHighlightJSON(\"" + nodeId + "\", \"" + opt_frameId + "\")", innerCallback);
897 } 890 }
898 891
899 }; 892 };
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