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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.html

Issue 2703143002: [DevTools] Prepare to move Popover to shadow DOM. (Closed)
Patch Set: fix Created 3 years, 10 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 | third_party/WebKit/Source/devtools/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.html
index 8edd25c9a8f4566e22e7780dd63e6e7097def3c6..42de865238da1da36a1d0f83ec1394f49a4fe2c8 100644
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.html
+++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network/timeline-network-resource-details.html
@@ -35,7 +35,11 @@ function test()
var rows = element.querySelectorAll(".timeline-details-view-row");
for (var i = 0; i < rows.length; ++i) {
var title = rows[i].firstChild.firstChild.textContent;
- var value = rows[i].lastChild.firstChild.textContent;
+ var value = rows[i].lastChild.firstChild;
+ if (value.children && value.children.length)
+ value = Array.from(value.children, element => element.textContent).slice(1).join('');
+ else
+ value = value.textContent;
if (title === "Duration" || title === "Mime Type")
value = typeof value;
if (/^file:\/\//.test(value))
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698