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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <img id="our_image" src="resources/blue_rect.jpg">
4 <script>
5 var jsTestIsAsync = true;
6 var img;
7
8 onload = function() {
9
10 img = document.getElementById("our_image");
11 shouldNotBe('img.currentSrc.indexOf("blue_rect.jpg")', '-1');
12 img.onload = function() {
13 shouldNotBe('img.currentSrc.indexOf("image-set-4x")', '-1');
14 finishJSTest();
15 }
16 img.srcset = "resources/image-set-4x.png 120w";
17
18 img.onerror = function() {
19 testFailed('Image should have loaded');
20 };
21 }
22 </script>
OLDNEW
« 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