Index: LayoutTests/http/tests/loading/preload-image-srcset-2x-expected.txt |
diff --git a/LayoutTests/http/tests/loading/preload-image-srcset-2x-expected.txt b/LayoutTests/http/tests/loading/preload-image-srcset-2x-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bdf7cc0409fe63062e03a5ae5741122a85360f98 |
--- /dev/null |
+++ b/LayoutTests/http/tests/loading/preload-image-srcset-2x-expected.txt |
@@ -0,0 +1,18 @@ |
+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/base-image2.png'); is true |
+PASS internals.isPreloaded('resources/base-image1.png'); is false |
+PASS internals.isPreloaded('resources/base-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, but the 2x version (defined in srcset) is. |
+The second image is here to make sure isPreloaded is working properly |
+ |