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

Unified Diff: LayoutTests/http/tests/loading/preload-image-srcset-duplicate-expected.txt

Issue 23861003: Enable srcset support in HTMLImageElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed a flaky test Created 7 years, 3 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/http/tests/loading/preload-image-srcset-duplicate-expected.txt
diff --git a/LayoutTests/http/tests/loading/preload-image-srcset-duplicate-expected.txt b/LayoutTests/http/tests/loading/preload-image-srcset-duplicate-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..2bf7158c5e57be63c9e167507859797174d72b6b
--- /dev/null
+++ b/LayoutTests/http/tests/loading/preload-image-srcset-duplicate-expected.txt
@@ -0,0 +1,22 @@
+main frame - didStartProvisionalLoadForFrame
+main frame - didCommitLoadForFrame
+main frame - didFinishDocumentLoadForFrame
+main frame - didHandleOnloadEventsForFrame
+main frame - didFinishLoadForFrame
+main frame - didStartProvisionalLoadForFrame
+main frame - didCommitLoadForFrame
+main frame - didFinishDocumentLoadForFrame
+main frame - didHandleOnloadEventsForFrame
+main frame - didFinishLoadForFrame
+PASS internals.isPreloaded('resources/preload-test.jpg'); is false
+PASS internals.isPreloaded('resources/preload-test-duplicate.jpg'); is false
+PASS internals.isPreloaded('resources/base-image1.png'); is true
+PASS internals.isPreloaded('resources/base-image2.png'); is false
+PASS internals.isPreloaded('resources/base-image3.png'); is false
+PASS internals.isPreloaded('resources/dup-image1.png'); is false
+PASS internals.isPreloaded('resources/dup-image2.png'); is false
+PASS internals.isPreloaded('resources/dup-image3.png'); is false
+PASS internals.isPreloaded('resources/image2.png'); is true
+This test passes if the fallback image (defined in the src attribute) is not preloaded, the 1x version (defined in srcset) is, and none of the duplicate resources is preloaded.
+The second image is here to make sure isPreloaded is working properly
+

Powered by Google App Engine
This is Rietveld 408576698