| 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._stylesWidget._sectionBlocks[0].sections
[0]; | 7 return WebInspector.panels.elements._stylesWidget._sectionBlocks[0].sections
[0]; |
| 8 } | 8 } |
| 9 | 9 |
| 10 InspectorTest.computedStyleWidget = function() | 10 InspectorTest.computedStyleWidget = function() |
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 | 933 |
| 934 InspectorTest.addNewRuleInStyleSheet = function(styleSheetHeader, selector, call
back) | 934 InspectorTest.addNewRuleInStyleSheet = function(styleSheetHeader, selector, call
back) |
| 935 { | 935 { |
| 936 InspectorTest.addSniffer(WebInspector.StylesSidebarPane.prototype, "_addBlan
kSection", onBlankSection.bind(null, selector, callback)); | 936 InspectorTest.addSniffer(WebInspector.StylesSidebarPane.prototype, "_addBlan
kSection", onBlankSection.bind(null, selector, callback)); |
| 937 WebInspector.panels.elements._stylesWidget._createNewRuleInStyleSheet(styleS
heetHeader); | 937 WebInspector.panels.elements._stylesWidget._createNewRuleInStyleSheet(styleS
heetHeader); |
| 938 } | 938 } |
| 939 | 939 |
| 940 InspectorTest.addNewRule = function(selector, callback) | 940 InspectorTest.addNewRule = function(selector, callback) |
| 941 { | 941 { |
| 942 // Click "Add new rule". | 942 // Click "Add new rule". |
| 943 document.querySelector(".styles-pane-toolbar").shadowRoot.querySelector(".ad
d-toolbar-item").click(); | 943 WebInspector.ElementsPanel.instance()._stylesSidebarToolbar.querySelector(".
styles-pane-toolbar").shadowRoot.querySelector(".add-toolbar-item").click(); |
| 944 InspectorTest.addSniffer(WebInspector.StylesSidebarPane.prototype, "_addBlan
kSection", onBlankSection.bind(null, selector, callback)); | 944 InspectorTest.addSniffer(WebInspector.StylesSidebarPane.prototype, "_addBlan
kSection", onBlankSection.bind(null, selector, callback)); |
| 945 } | 945 } |
| 946 | 946 |
| 947 function onBlankSection(selector, callback) | 947 function onBlankSection(selector, callback) |
| 948 { | 948 { |
| 949 var section = InspectorTest.firstMatchedStyleSection(); | 949 var section = InspectorTest.firstMatchedStyleSection(); |
| 950 if (typeof selector === "string") | 950 if (typeof selector === "string") |
| 951 section._selectorElement.textContent = selector; | 951 section._selectorElement.textContent = selector; |
| 952 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter")
); | 952 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter")
); |
| 953 InspectorTest.waitForSelectorCommitted(callback.bind(null, section)); | 953 InspectorTest.waitForSelectorCommitted(callback.bind(null, section)); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 977 InspectorTest.dumpAnimationTimeline = function(timeline) | 977 InspectorTest.dumpAnimationTimeline = function(timeline) |
| 978 { | 978 { |
| 979 for (var ui of timeline._uiAnimations) { | 979 for (var ui of timeline._uiAnimations) { |
| 980 InspectorTest.addResult(ui.animation().type()); | 980 InspectorTest.addResult(ui.animation().type()); |
| 981 InspectorTest.addResult(ui._nameElement.innerHTML); | 981 InspectorTest.addResult(ui._nameElement.innerHTML); |
| 982 InspectorTest.addResult(ui._svg.innerHTML); | 982 InspectorTest.addResult(ui._svg.innerHTML); |
| 983 } | 983 } |
| 984 } | 984 } |
| 985 | 985 |
| 986 }; | 986 }; |
| OLD | NEW |