| 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 UI.panels.elements._stylesWidget._sectionBlocks[0].sections[0]; | 7 return UI.panels.elements._stylesWidget._sectionBlocks[0].sections[0]; |
| 8 } | 8 } |
| 9 | 9 |
| 10 InspectorTest.computedStyleWidget = function() | 10 InspectorTest.computedStyleWidget = function() |
| (...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 960 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter")
); | 960 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter")
); |
| 961 InspectorTest.waitForSelectorCommitted(callback.bind(null, section)); | 961 InspectorTest.waitForSelectorCommitted(callback.bind(null, section)); |
| 962 } | 962 } |
| 963 | 963 |
| 964 InspectorTest.dumpInspectorHighlightJSON = function(idValue, callback) | 964 InspectorTest.dumpInspectorHighlightJSON = function(idValue, callback) |
| 965 { | 965 { |
| 966 InspectorTest.nodeWithId(idValue, nodeResolved); | 966 InspectorTest.nodeWithId(idValue, nodeResolved); |
| 967 | 967 |
| 968 function nodeResolved(node) | 968 function nodeResolved(node) |
| 969 { | 969 { |
| 970 InspectorTest.OverlayAgent.getHighlightObjectForTest(node.id, report); | 970 InspectorTest.DOMAgent.getHighlightObjectForTest(node.id, report); |
| 971 } | 971 } |
| 972 | 972 |
| 973 function report(error, result) | 973 function report(error, result) |
| 974 { | 974 { |
| 975 InspectorTest.addResult(idValue + JSON.stringify(result, null, 2)); | 975 InspectorTest.addResult(idValue + JSON.stringify(result, null, 2)); |
| 976 callback(); | 976 callback(); |
| 977 } | 977 } |
| 978 } | 978 } |
| 979 | 979 |
| 980 InspectorTest.waitForAnimationAdded = function(callback) | 980 InspectorTest.waitForAnimationAdded = function(callback) |
| 981 { | 981 { |
| 982 InspectorTest.addSniffer(Animation.AnimationTimeline.prototype, "_addAnimati
onGroup", callback); | 982 InspectorTest.addSniffer(Animation.AnimationTimeline.prototype, "_addAnimati
onGroup", callback); |
| 983 } | 983 } |
| 984 | 984 |
| 985 InspectorTest.dumpAnimationTimeline = function(timeline) | 985 InspectorTest.dumpAnimationTimeline = function(timeline) |
| 986 { | 986 { |
| 987 for (var ui of timeline._uiAnimations) { | 987 for (var ui of timeline._uiAnimations) { |
| 988 InspectorTest.addResult(ui.animation().type()); | 988 InspectorTest.addResult(ui.animation().type()); |
| 989 InspectorTest.addResult(ui._nameElement.innerHTML); | 989 InspectorTest.addResult(ui._nameElement.innerHTML); |
| 990 InspectorTest.addResult(ui._svg.innerHTML); | 990 InspectorTest.addResult(ui._svg.innerHTML); |
| 991 } | 991 } |
| 992 } | 992 } |
| 993 | 993 |
| 994 }; | 994 }; |
| OLD | NEW |