| 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() |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 } | 260 } |
| 261 } | 261 } |
| 262 | 262 |
| 263 InspectorTest.selectNodeAndWaitForStylesWithComputed = function(idValue, callbac
k) | 263 InspectorTest.selectNodeAndWaitForStylesWithComputed = function(idValue, callbac
k) |
| 264 { | 264 { |
| 265 callback = InspectorTest.safeWrap(callback); | 265 callback = InspectorTest.safeWrap(callback); |
| 266 InspectorTest.selectNodeAndWaitForStyles(idValue, onSidebarRendered); | 266 InspectorTest.selectNodeAndWaitForStyles(idValue, onSidebarRendered); |
| 267 | 267 |
| 268 function onSidebarRendered() | 268 function onSidebarRendered() |
| 269 { | 269 { |
| 270 InspectorTest.computedStyleWidget().doUpdate(callback); | 270 InspectorTest.computedStyleWidget().doUpdate().then(callback); |
| 271 } | 271 } |
| 272 } | 272 } |
| 273 | 273 |
| 274 InspectorTest.firstElementsTreeOutline = function() | 274 InspectorTest.firstElementsTreeOutline = function() |
| 275 { | 275 { |
| 276 return WebInspector.panels.elements._treeOutlines[0]; | 276 return WebInspector.panels.elements._treeOutlines[0]; |
| 277 } | 277 } |
| 278 | 278 |
| 279 InspectorTest.filterMatchedStyles = function(text) | 279 InspectorTest.filterMatchedStyles = function(text) |
| 280 { | 280 { |
| (...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 for (var ui of nodeRow.animations) { | 994 for (var ui of nodeRow.animations) { |
| 995 InspectorTest.addResult(ui.animation().type()); | 995 InspectorTest.addResult(ui.animation().type()); |
| 996 InspectorTest.addResult(ui._nameElement.outerHTML); | 996 InspectorTest.addResult(ui._nameElement.outerHTML); |
| 997 InspectorTest.addResult(ui._svg.outerHTML); | 997 InspectorTest.addResult(ui._svg.outerHTML); |
| 998 } | 998 } |
| 999 } | 999 } |
| 1000 } | 1000 } |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 }; | 1003 }; |
| OLD | NEW |