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

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

Issue 1434613002: DevTools: kill WebInspector.StylesSectionModel class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 WebInspector.panels.elements.sidebarPanes.styles._sectionBlocks[0].se ctions[0]; 7 return WebInspector.panels.elements.sidebarPanes.styles._sectionBlocks[0].se ctions[0];
8 } 8 }
9 9
10 InspectorTest.computedStyleWidget = function() 10 InspectorTest.computedStyleWidget = function()
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 } 348 }
349 } 349 }
350 350
351 InspectorTest.dumpSelectedElementStyles = function(excludeComputed, excludeMatch ed, omitLonghands, includeSelectorGroupMarks) 351 InspectorTest.dumpSelectedElementStyles = function(excludeComputed, excludeMatch ed, omitLonghands, includeSelectorGroupMarks)
352 { 352 {
353 var sectionBlocks = WebInspector.panels.elements.sidebarPanes.styles._sectio nBlocks; 353 var sectionBlocks = WebInspector.panels.elements.sidebarPanes.styles._sectio nBlocks;
354 if (!excludeComputed) 354 if (!excludeComputed)
355 InspectorTest.dumpComputedStyle(); 355 InspectorTest.dumpComputedStyle();
356 for (var block of sectionBlocks) { 356 for (var block of sectionBlocks) {
357 for (var section of block.sections) { 357 for (var section of block.sections) {
358 if (section.rule() && excludeMatched) 358 if (section._style.parentRule && excludeMatched)
dgozman 2015/11/07 03:00:53 style()
lushnikov 2015/11/07 03:09:24 Done.
359 continue; 359 continue;
360 if (section.element.previousSibling && section.element.previousSibli ng.className === "sidebar-separator") { 360 if (section.element.previousSibling && section.element.previousSibli ng.className === "sidebar-separator") {
361 var nodeDescription = ""; 361 var nodeDescription = "";
362 if (section.element.previousSibling.firstElementChild) 362 if (section.element.previousSibling.firstElementChild)
363 nodeDescription = section.element.previousSibling.firstEleme ntChild.shadowRoot.lastChild.textContent; 363 nodeDescription = section.element.previousSibling.firstEleme ntChild.shadowRoot.lastChild.textContent;
364 InspectorTest.addResult("======== " + section.element.previousSi bling.textContent + nodeDescription + " ========"); 364 InspectorTest.addResult("======== " + section.element.previousSi bling.textContent + nodeDescription + " ========");
365 } 365 }
366 printStyleSection(section, omitLonghands, includeSelectorGroupMarks) ; 366 printStyleSection(section, omitLonghands, includeSelectorGroupMarks) ;
367 } 367 }
368 } 368 }
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 for (var ui of nodeRow.animations) { 970 for (var ui of nodeRow.animations) {
971 InspectorTest.addResult(ui.animation().type()); 971 InspectorTest.addResult(ui.animation().type());
972 InspectorTest.addResult(ui._nameElement.outerHTML); 972 InspectorTest.addResult(ui._nameElement.outerHTML);
973 InspectorTest.addResult(ui._svg.outerHTML); 973 InspectorTest.addResult(ui._svg.outerHTML);
974 } 974 }
975 } 975 }
976 } 976 }
977 } 977 }
978 978
979 }; 979 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698