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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-network-received-data.html

Issue 2573393002: Use random URLs in tracing layout tests to avoid caching (Closed)
Patch Set: Created 4 years 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/http/tests/inspector/tracing/timeline-receive-response-event.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-network-received-data.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-network-received-data.html b/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-network-received-data.html
index 298ea98dd3496ec36487a23d639fb814a2aa3e76..eb3a42e85e54dbe117260bffe970165207b57324 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-network-received-data.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-network-received-data.html
@@ -8,11 +8,13 @@ function performActions()
{
var image = new Image();
var imagePromise = new Promise((fulfill) => image.onload = fulfill);
- image.src = "resources/anImage.png";
+ // Use random urls to avoid caching.
+ const random = Math.random();
+ image.src = "resources/anImage.png?random=" + random;
var scriptPromise = new Promise((fulfill) => window.timelineNetworkResourceEvaluated = fulfill);
var script = document.createElement("script");
- script.src = "resources/timeline-network-resource.js";
+ script.src = "resources/timeline-network-resource.js?randome=" + random;
document.body.appendChild(script);
return Promise.all([imagePromise, scriptPromise]);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698