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

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

Issue 2174863003: DevTools: traverse widget hierarchy to reveal views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean Created 4 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 430
431 InspectorTest.toggleMatchedStyleProperty = function(propertyName, checked) 431 InspectorTest.toggleMatchedStyleProperty = function(propertyName, checked)
432 { 432 {
433 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem(propertyName); 433 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem(propertyName);
434 treeItem._toggleEnabled({ target: { checked: checked }, consume: function() { } }); 434 treeItem._toggleEnabled({ target: { checked: checked }, consume: function() { } });
435 } 435 }
436 436
437 InspectorTest.eventListenersWidget = function() 437 InspectorTest.eventListenersWidget = function()
438 { 438 {
439 var sidebarPane = WebInspector.panels.elements.sidebarPanes.eventListeners; 439 var sidebarPane = WebInspector.panels.elements.sidebarPanes.eventListeners;
440 sidebarPane.requestReveal(); 440 sidebarPane.revealWidget();
441 return sidebarPane; 441 return sidebarPane;
442 } 442 }
443 443
444 InspectorTest.expandAndDumpSelectedElementEventListeners = function(callback) 444 InspectorTest.expandAndDumpSelectedElementEventListeners = function(callback)
445 { 445 {
446 InspectorTest.expandAndDumpEventListeners(InspectorTest.eventListenersWidget ()._eventListenersView, null, callback); 446 InspectorTest.expandAndDumpEventListeners(InspectorTest.eventListenersWidget ()._eventListenersView, null, callback);
447 } 447 }
448 448
449 InspectorTest.dumpObjectPropertySectionDeep = function(section) 449 InspectorTest.dumpObjectPropertySectionDeep = function(section)
450 { 450 {
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 InspectorTest.dumpAnimationTimeline = function(timeline) 973 InspectorTest.dumpAnimationTimeline = function(timeline)
974 { 974 {
975 for (var ui of timeline._uiAnimations) { 975 for (var ui of timeline._uiAnimations) {
976 InspectorTest.addResult(ui.animation().type()); 976 InspectorTest.addResult(ui.animation().type());
977 InspectorTest.addResult(ui._nameElement.innerHTML); 977 InspectorTest.addResult(ui._nameElement.innerHTML);
978 InspectorTest.addResult(ui._svg.innerHTML); 978 InspectorTest.addResult(ui._svg.innerHTML);
979 } 979 }
980 } 980 }
981 981
982 }; 982 };
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