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

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

Issue 1172643002: DevTools: migrate sidebar pane's titleElement to use Toolbar. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: only using latin1 in css Created 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/audits/audits-panel-functional-expected.txt » ('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.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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 printStyleSection(section, omitLonghands, includeSelectorGroupMarks) ; 349 printStyleSection(section, omitLonghands, includeSelectorGroupMarks) ;
350 } 350 }
351 } 351 }
352 } 352 }
353 353
354 function printStyleSection(section, omitLonghands, includeSelectorGroupMarks) 354 function printStyleSection(section, omitLonghands, includeSelectorGroupMarks)
355 { 355 {
356 if (!section) 356 if (!section)
357 return; 357 return;
358 InspectorTest.addResult("[expanded] " + (section.element.classList.contains( "no-affect") ? "[no-affect] " : "")); 358 InspectorTest.addResult("[expanded] " + (section.element.classList.contains( "no-affect") ? "[no-affect] " : ""));
359 var chainEntries = section.titleElement.querySelectorAll(".media-list .media "); 359 var chainEntries = section._titleElement.querySelectorAll(".media-list .medi a");
360 chainEntries = Array.prototype.slice.call(chainEntries); 360 chainEntries = Array.prototype.slice.call(chainEntries);
361 if (section.titleElement.children[1]) 361 if (section._titleElement.children[1])
362 chainEntries.push(section.titleElement.children[1]); 362 chainEntries.push(section._titleElement.children[1]);
363 363
364 for (var j = 0; j < chainEntries.length; ++j) { 364 for (var j = 0; j < chainEntries.length; ++j) {
365 var chainEntry = chainEntries[j]; 365 var chainEntry = chainEntries[j];
366 var entryLine = includeSelectorGroupMarks ? buildMarkedSelectors(chainEn try.children[1]) : chainEntry.children[1].textContent; 366 var entryLine = includeSelectorGroupMarks ? buildMarkedSelectors(chainEn try.children[1]) : chainEntry.children[1].textContent;
367 if (chainEntry.children[2]) 367 if (chainEntry.children[2])
368 entryLine += " " + chainEntry.children[2].textContent; 368 entryLine += " " + chainEntry.children[2].textContent;
369 entryLine += " (" + extractText(chainEntry.children[0]) + ")"; 369 entryLine += " (" + extractText(chainEntry.children[0]) + ")";
370 InspectorTest.addResult(entryLine); 370 InspectorTest.addResult(entryLine);
371 } 371 }
372 InspectorTest.dumpStyleTreeOutline(section.propertiesTreeOutline, omitLongha nds ? 1 : 2); 372 InspectorTest.dumpStyleTreeOutline(section.propertiesTreeOutline, omitLongha nds ? 1 : 2);
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 for (nodeRow of nodeUI._rows) { 993 for (nodeRow of nodeUI._rows) {
994 for (var ui of nodeRow.animations) { 994 for (var ui of nodeRow.animations) {
995 InspectorTest.addResult(ui._nameElement.outerHTML); 995 InspectorTest.addResult(ui._nameElement.outerHTML);
996 InspectorTest.addResult(ui._svg.outerHTML); 996 InspectorTest.addResult(ui._svg.outerHTML);
997 } 997 }
998 } 998 }
999 } 999 }
1000 } 1000 }
1001 1001
1002 }; 1002 };
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/audits/audits-panel-functional-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698