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

Unified Diff: LayoutTests/fast/dom/HTMLImageElement/image-src-added-srcset-w-descriptors.html

Issue 839783002: Ignore src candidates when looking for already in-cache resources (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLImageElement/image-src-added-srcset-w-descriptors-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLImageElement/image-src-added-srcset-w-descriptors.html
diff --git a/LayoutTests/fast/dom/HTMLImageElement/image-src-added-srcset-w-descriptors.html b/LayoutTests/fast/dom/HTMLImageElement/image-src-added-srcset-w-descriptors.html
new file mode 100644
index 0000000000000000000000000000000000000000..467449b235bcdabf9ec6c990a6bf379fa23cf635
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLImageElement/image-src-added-srcset-w-descriptors.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<img id="our_image" src="resources/blue_rect.jpg">
+<script>
+var jsTestIsAsync = true;
+var img;
+
+onload = function() {
+
+ img = document.getElementById("our_image");
+ shouldNotBe('img.currentSrc.indexOf("blue_rect.jpg")', '-1');
+ img.onload = function() {
+ shouldNotBe('img.currentSrc.indexOf("image-set-4x")', '-1');
+ finishJSTest();
+ }
+ img.srcset = "resources/image-set-4x.png 120w";
+
+ img.onerror = function() {
+ testFailed('Image should have loaded');
+ };
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLImageElement/image-src-added-srcset-w-descriptors-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698