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

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

Issue 2153153003: DevTools: remove dead code, disambiguate expand for sections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean Created 4 years, 5 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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 428
429 InspectorTest.toggleMatchedStyleProperty = function(propertyName, checked) 429 InspectorTest.toggleMatchedStyleProperty = function(propertyName, checked)
430 { 430 {
431 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem(propertyName); 431 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem(propertyName);
432 treeItem._toggleEnabled({ target: { checked: checked }, consume: function() { } }); 432 treeItem._toggleEnabled({ target: { checked: checked }, consume: function() { } });
433 } 433 }
434 434
435 InspectorTest.eventListenersWidget = function() 435 InspectorTest.eventListenersWidget = function()
436 { 436 {
437 var sidebarPane = WebInspector.panels.elements.sidebarPanes.eventListeners; 437 var sidebarPane = WebInspector.panels.elements.sidebarPanes.eventListeners;
438 sidebarPane.expand(); 438 sidebarPane.expandPane();
439 return sidebarPane.children()[0]; 439 return sidebarPane.children()[0];
440 } 440 }
441 441
442 InspectorTest.expandAndDumpSelectedElementEventListeners = function(callback) 442 InspectorTest.expandAndDumpSelectedElementEventListeners = function(callback)
443 { 443 {
444 InspectorTest.expandAndDumpEventListeners(InspectorTest.eventListenersWidget ()._eventListenersView, null, callback); 444 InspectorTest.expandAndDumpEventListeners(InspectorTest.eventListenersWidget ()._eventListenersView, null, callback);
445 } 445 }
446 446
447 InspectorTest.dumpObjectPropertySectionDeep = function(section) 447 InspectorTest.dumpObjectPropertySectionDeep = function(section)
448 { 448 {
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 InspectorTest.dumpAnimationTimeline = function(timeline) 971 InspectorTest.dumpAnimationTimeline = function(timeline)
972 { 972 {
973 for (var ui of timeline._uiAnimations) { 973 for (var ui of timeline._uiAnimations) {
974 InspectorTest.addResult(ui.animation().type()); 974 InspectorTest.addResult(ui.animation().type());
975 InspectorTest.addResult(ui._nameElement.innerHTML); 975 InspectorTest.addResult(ui._nameElement.innerHTML);
976 InspectorTest.addResult(ui._svg.innerHTML); 976 InspectorTest.addResult(ui._svg.innerHTML);
977 } 977 }
978 } 978 }
979 979
980 }; 980 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/elements/event-listeners-framework-with-service-worker.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698