| OLD | NEW |
| 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() |
| 11 { | 11 { |
| 12 return WebInspector.panels.elements.sidebarPanes.computedStyle.children()[0] | 12 return WebInspector.panels.elements.sidebarPanes.computedStyle; |
| 13 } | 13 } |
| 14 | 14 |
| 15 InspectorTest.dumpComputedStyle = function(doNotAutoExpand) | 15 InspectorTest.dumpComputedStyle = function(doNotAutoExpand) |
| 16 { | 16 { |
| 17 var computed = InspectorTest.computedStyleWidget(); | 17 var computed = InspectorTest.computedStyleWidget(); |
| 18 var treeOutline = computed._propertiesOutline; | 18 var treeOutline = computed._propertiesOutline; |
| 19 var children = treeOutline.rootElement().children(); | 19 var children = treeOutline.rootElement().children(); |
| 20 for (var treeElement of children) { | 20 for (var treeElement of children) { |
| 21 var property = treeElement[WebInspector.ComputedStyleWidget._propertySym
bol]; | 21 var property = treeElement[WebInspector.ComputedStyleWidget._propertySym
bol]; |
| 22 if (property.name === "width" || property.name === "height") | 22 if (property.name === "width" || property.name === "height") |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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.expandPane(); | 440 sidebarPane.requestReveal(); |
| 441 return sidebarPane.children()[0]; | 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 { |
| 451 function domNodeToString(node) { | 451 function domNodeToString(node) { |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 }; |
| OLD | NEW |