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

Unified Diff: LayoutTests/fast/hidpi/image-srcset-data-srcset-expected.txt

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/hidpi/image-srcset-data-srcset-expected.txt
diff --git a/LayoutTests/fast/hidpi/image-srcset-data-srcset-expected.txt b/LayoutTests/fast/hidpi/image-srcset-data-srcset-expected.txt
index 05612a007c77a909a14dfedc45a3f4381339f3fa..fd6e6e8aa1b80dcf02bad01661ae2160ad6dc2bf 100644
--- a/LayoutTests/fast/hidpi/image-srcset-data-srcset-expected.txt
+++ b/LayoutTests/fast/hidpi/image-srcset-data-srcset-expected.txt
@@ -1,6 +1,7 @@
PASS successfullyParsed is true
TEST COMPLETE
-PASS document.getElementById("foo").clientWidth==150 is true
+PASS document.getElementById("foo").clientWidth==75 is true
This test passes if the image below looks like a 2x2 grid (yellow, gray, light green, dark green). In this case the srcset attribute has a base64 url, with the comma escaped.
+The image is displayed in a width of 75px, since the 2x resource gets picked (as the highest density resource current available.

Powered by Google App Engine
This is Rietveld 408576698