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

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

Issue 2917033004: DevTools: move styles sidebar toolbar into StylesSidebarPane (Closed)
Patch Set: rebase Created 3 years, 6 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
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 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 274
275 InspectorTest.firstElementsTreeOutline = function() 275 InspectorTest.firstElementsTreeOutline = function()
276 { 276 {
277 return UI.panels.elements._treeOutlines[0]; 277 return UI.panels.elements._treeOutlines[0];
278 } 278 }
279 279
280 InspectorTest.filterMatchedStyles = function(text) 280 InspectorTest.filterMatchedStyles = function(text)
281 { 281 {
282 var regex = text ? new RegExp(text, "i") : null; 282 var regex = text ? new RegExp(text, "i") : null;
283 InspectorTest.addResult("Filtering styles by: " + text); 283 InspectorTest.addResult("Filtering styles by: " + text);
284 UI.panels.elements._stylesWidget.onFilterChanged(regex); 284 UI.panels.elements._stylesWidget._onFilterChanged(regex);
285 } 285 }
286 286
287 InspectorTest.dumpRenderedMatchedStyles = function() 287 InspectorTest.dumpRenderedMatchedStyles = function()
288 { 288 {
289 var sectionBlocks = UI.panels.elements._stylesWidget._sectionBlocks; 289 var sectionBlocks = UI.panels.elements._stylesWidget._sectionBlocks;
290 for (var block of sectionBlocks) { 290 for (var block of sectionBlocks) {
291 for (var section of block.sections) { 291 for (var section of block.sections) {
292 // Skip sections which were filtered out. 292 // Skip sections which were filtered out.
293 if (section.element.classList.contains("hidden")) 293 if (section.element.classList.contains("hidden"))
294 continue; 294 continue;
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 InspectorTest.dumpAnimationTimeline = function(timeline) 967 InspectorTest.dumpAnimationTimeline = function(timeline)
968 { 968 {
969 for (var ui of timeline._uiAnimations) { 969 for (var ui of timeline._uiAnimations) {
970 InspectorTest.addResult(ui.animation().type()); 970 InspectorTest.addResult(ui.animation().type());
971 InspectorTest.addResult(ui._nameElement.innerHTML); 971 InspectorTest.addResult(ui._nameElement.innerHTML);
972 InspectorTest.addResult(ui._svg.innerHTML); 972 InspectorTest.addResult(ui._svg.innerHTML);
973 } 973 }
974 } 974 }
975 975
976 }; 976 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698