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

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

Issue 1984103004: DevTools: Add initiator field to timeline network events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update the test Created 4 years, 7 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/LayoutTests/inspector/tracing/timeline-network-resource-details-expected.txt » ('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-resource-details.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network-resource-details.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network-resource-details.html
index 199e7e424bc4f8d0f0d9e0b59007124746f0b523..d39c6ac6e01600d046d3b59eab3f52f6355b586c 100644
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network-resource-details.html
+++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network-resource-details.html
@@ -31,9 +31,10 @@ function test()
function finish()
{
+ var linkifier = new WebInspector.Linkifier();
function printRequestDetails(request)
{
- return WebInspector.TimelineUIUtils.buildNetworkRequestDetails(request, model, null).then(printElement);
+ return WebInspector.TimelineUIUtils.buildNetworkRequestDetails(request, model, linkifier).then(printElement);
}
function printElement(element)
{
@@ -43,7 +44,7 @@ function test()
var value = rows[i].lastChild.firstChild.textContent;
if (title === "Duration" || title === "Mime Type")
value = typeof value;
- if (title === "URL")
+ if (/^file:\/\//.test(value))
value = /[^/]*$/.exec(value)[0];
InspectorTest.addResult(title + ": " + value);
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/tracing/timeline-network-resource-details-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698