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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event.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 | « third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-network-received-data.html ('k') | no next file » | 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-receive-response-event.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event.html b/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event.html
index c20c40a9bb05c90045061eb6765ed79b361e6bcb..7ec12516b49d5a1e0b65308f7e9958298c7933d3 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-receive-response-event.html
@@ -10,13 +10,15 @@ function performActions()
var promise = new Promise((fulfill) => callback = fulfill);
var image = new Image();
image.onload = bar;
- image.src = "resources/anImage.png";
+ // Use random urls to avoid caching.
+ const random = Math.random();
+ image.src = "resources/anImage.png?random=" + random;
function bar()
{
var image = new Image();
image.onload = function(event) { callback(); } // do not pass event argument to the callback.
- image.src = "resources/anotherImage.png";
+ image.src = "resources/anotherImage.png?random=" + random;
}
return promise;
}
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/inspector/tracing/timeline-network-received-data.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698