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

Unified Diff: LayoutTests/fast/dom/HTMLImageElement/resources/currentSrcHelper.js

Issue 674923004: Avoid srcset resource download when higher density resource is in cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed layout tests and added some. Created 6 years, 2 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
Index: LayoutTests/fast/dom/HTMLImageElement/resources/currentSrcHelper.js
diff --git a/LayoutTests/fast/dom/HTMLImageElement/resources/currentSrcHelper.js b/LayoutTests/fast/dom/HTMLImageElement/resources/currentSrcHelper.js
index b54e14bf691591cf33461053c72b1d5f11cbdb06..be1696ddc2de01bfda5ace6fc010e5ba9b86d328 100644
--- a/LayoutTests/fast/dom/HTMLImageElement/resources/currentSrcHelper.js
+++ b/LayoutTests/fast/dom/HTMLImageElement/resources/currentSrcHelper.js
@@ -7,3 +7,9 @@ function currentSrcFileName(id) {
var currentSrc = document.getElementById(id).currentSrc;
return fileName(currentSrc);
};
+
+function currentSrcFileNameNoParams(id) {
+ var currentSrc = document.getElementById(id).currentSrc;
+ var name = fileName(currentSrc).split('?');
+ return name[0];
+};

Powered by Google App Engine
This is Rietveld 408576698