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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/elements/StylesSidebarPane.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector/elements-test.js
diff --git a/LayoutTests/http/tests/inspector/elements-test.js b/LayoutTests/http/tests/inspector/elements-test.js
index 9ddefe338b70af4aa2094276b23b779bda55685c..2386b486484946b01863e0e1f64ea1067715757b 100644
--- a/LayoutTests/http/tests/inspector/elements-test.js
+++ b/LayoutTests/http/tests/inspector/elements-test.js
@@ -378,7 +378,7 @@ function extractText(element)
var text = element.textContent;
if (text)
return text;
- var anchor = element.querySelector("[data-uncopyable]");
+ var anchor = element.hasAttribute("data-uncopyable") ? element : element.querySelector("[data-uncopyable]");
if (!anchor)
return "";
var anchorText = anchor.getAttribute("data-uncopyable");
« 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