| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 { | 275 { |
| 276 return node.parentNode && node.parentNode.getAttribute("id") === parentI
d && node.pseudoType() == pseudoType; | 276 return node.parentNode && node.parentNode.getAttribute("id") === parentI
d && node.pseudoType() == pseudoType; |
| 277 } | 277 } |
| 278 } | 278 } |
| 279 | 279 |
| 280 InspectorTest.selectNodeAndWaitForStylesWithComputed = function(idValue, callbac
k) | 280 InspectorTest.selectNodeAndWaitForStylesWithComputed = function(idValue, callbac
k) |
| 281 { | 281 { |
| 282 callback = InspectorTest.safeWrap(callback); | 282 callback = InspectorTest.safeWrap(callback); |
| 283 InspectorTest.selectNodeAndWaitForStyles(idValue, onSidebarRendered); | 283 InspectorTest.selectNodeAndWaitForStyles(idValue, onSidebarRendered); |
| 284 | 284 |
| 285 function onSidebarRendered() | 285 function onSidebarRendered(node) |
| 286 { | 286 { |
| 287 InspectorTest.computedStyleWidget().doUpdate().then(callback); | 287 InspectorTest.computedStyleWidget().doUpdate().then(callback.bind(null,
node)); |
| 288 } | 288 } |
| 289 } | 289 } |
| 290 | 290 |
| 291 InspectorTest.firstElementsTreeOutline = function() | 291 InspectorTest.firstElementsTreeOutline = function() |
| 292 { | 292 { |
| 293 return WebInspector.panels.elements._treeOutlines[0]; | 293 return WebInspector.panels.elements._treeOutlines[0]; |
| 294 } | 294 } |
| 295 | 295 |
| 296 InspectorTest.filterMatchedStyles = function(text) | 296 InspectorTest.filterMatchedStyles = function(text) |
| 297 { | 297 { |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 InspectorTest.dumpAnimationTimeline = function(timeline) | 970 InspectorTest.dumpAnimationTimeline = function(timeline) |
| 971 { | 971 { |
| 972 for (var ui of timeline._uiAnimations) { | 972 for (var ui of timeline._uiAnimations) { |
| 973 InspectorTest.addResult(ui.animation().type()); | 973 InspectorTest.addResult(ui.animation().type()); |
| 974 InspectorTest.addResult(ui._nameElement.innerHTML); | 974 InspectorTest.addResult(ui._nameElement.innerHTML); |
| 975 InspectorTest.addResult(ui._svg.innerHTML); | 975 InspectorTest.addResult(ui._svg.innerHTML); |
| 976 } | 976 } |
| 977 } | 977 } |
| 978 | 978 |
| 979 }; | 979 }; |
| OLD | NEW |