Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/elements-test.js

Issue 2356423002: [DevTools] Turn WebInspector.Panel into a web component.
Patch Set: partial fixes Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-copy-treeoutline.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-copy-treeoutline.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698