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

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

Issue 1170453002: DevTools: [SSP] fix styling of media query links (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix tests 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 | Source/devtools/front_end/elements/StylesSidebarPane.js » ('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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 } 371 }
372 InspectorTest.dumpStyleTreeOutline(section.propertiesTreeOutline, omitLongha nds ? 1 : 2); 372 InspectorTest.dumpStyleTreeOutline(section.propertiesTreeOutline, omitLongha nds ? 1 : 2);
373 InspectorTest.addResult(""); 373 InspectorTest.addResult("");
374 } 374 }
375 375
376 function extractText(element) 376 function extractText(element)
377 { 377 {
378 var text = element.textContent; 378 var text = element.textContent;
379 if (text) 379 if (text)
380 return text; 380 return text;
381 var anchor = element.querySelector("[data-uncopyable]"); 381 var anchor = element.hasAttribute("data-uncopyable") ? element : element.que rySelector("[data-uncopyable]");
382 if (!anchor) 382 if (!anchor)
383 return ""; 383 return "";
384 var anchorText = anchor.getAttribute("data-uncopyable"); 384 var anchorText = anchor.getAttribute("data-uncopyable");
385 var uiLocation = anchor[WebInspector.Linkifier._uiLocationSymbol]; 385 var uiLocation = anchor[WebInspector.Linkifier._uiLocationSymbol];
386 var anchorTarget = uiLocation ? (uiLocation.uiSourceCode.name() + ":" + (uiL ocation.lineNumber + 1) + ":" + (uiLocation.columnNumber + 1)) : ""; 386 var anchorTarget = uiLocation ? (uiLocation.uiSourceCode.name() + ":" + (uiL ocation.lineNumber + 1) + ":" + (uiLocation.columnNumber + 1)) : "";
387 return anchorText + " -> " + anchorTarget; 387 return anchorText + " -> " + anchorTarget;
388 } 388 }
389 389
390 function buildMarkedSelectors(element) 390 function buildMarkedSelectors(element)
391 { 391 {
(...skipping 601 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 | Source/devtools/front_end/elements/StylesSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698