| 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.sections[0][0]; | 7 return WebInspector.panels.elements.sidebarPanes.styles.sections[0][0]; |
| 8 } | 8 } |
| 9 | 9 |
| 10 InspectorTest.computedStyleSection = function() | 10 InspectorTest.computedStyleSection = function() |
| (...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 InspectorTest.DOMAgent.getHighlightObjectForTest(node.id, report); | 869 InspectorTest.DOMAgent.getHighlightObjectForTest(node.id, report); |
| 870 } | 870 } |
| 871 | 871 |
| 872 function report(error, result) | 872 function report(error, result) |
| 873 { | 873 { |
| 874 InspectorTest.addResult(idValue + JSON.stringify(result, null, 2)); | 874 InspectorTest.addResult(idValue + JSON.stringify(result, null, 2)); |
| 875 callback(); | 875 callback(); |
| 876 } | 876 } |
| 877 } | 877 } |
| 878 | 878 |
| 879 InspectorTest.waitForAnimationAdded = function(callback) | |
| 880 { | |
| 881 InspectorTest.addSniffer(WebInspector.AnimationTimeline.prototype, "addAnima
tion", callback); | |
| 882 } | |
| 883 | |
| 884 InspectorTest.dumpAnimationTimeline = function() | |
| 885 { | |
| 886 var timeline = WebInspector.panels.elements.sidebarPanes.animations._timelin
e; | |
| 887 // Dump timeline | |
| 888 for (var nodeUI of timeline._nodesMap.values()) { | |
| 889 for (nodeRow of nodeUI._rows) { | |
| 890 for (var ui of nodeRow.animations) { | |
| 891 InspectorTest.addResult(ui._svg.innerHTML); | |
| 892 } | |
| 893 } | |
| 894 } | |
| 895 } | |
| 896 | |
| 897 }; | 879 }; |
| OLD | NEW |