Chromium Code Reviews| 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..2eff20b57eda6bf3b6c720bd59afe75f0fbc27de 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.prototype.slice.call(value.children, 1).map(element => element.textContent).join(''); |
|
alph
2017/02/21 21:21:32
nit: Array.from(value.children, element => element
dgozman
2017/02/21 21:34:57
Acknowledged.
|
| + else |
| + value = value.textContent; |
| if (title === "Duration" || title === "Mime Type") |
| value = typeof value; |
| if (/^file:\/\//.test(value)) |