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

Side by Side Diff: LayoutTests/fast/dom/HTMLImageElement/image-sizes-1x-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 unified diff | Download patch
OLDNEW
1 PASS successfullyParsed is true 1 PASS successfullyParsed is true
2 2
3 TEST COMPLETE 3 TEST COMPLETE
4 PASS document.getElementById("simple").currentSrc.indexOf("file://") == 0 is tru e 4 PASS document.getElementById("simple").currentSrc.indexOf("file://") == 0 is tru e
5 PASS document.getElementById("simple").clientWidth is (window.innerWidth) 5 PASS document.getElementById("simple").clientWidth is (window.innerWidth)
6 PASS currentSrcFileName("simple") is "image-set-2x.png" 6 PASS currentSrcFileNameNoParams("simple") is "image-set-2x.png"
7 PASS document.getElementById("small_sizes").clientWidth is 300 7 PASS document.getElementById("small_sizes").clientWidth is 300
8 PASS currentSrcFileName("small_sizes") is "image-set-1x.png" 8 PASS currentSrcFileNameNoParams("small_sizes") is "image-set-1x.png"
9 PASS document.getElementById("sizes_x_descriptors").clientWidth is 400 9 PASS document.getElementById("sizes_x_descriptors").clientWidth is 400
10 PASS currentSrcFileName("sizes_x_descriptors") is "image-set-1x.png" 10 PASS currentSrcFileNameNoParams("sizes_x_descriptors") is "image-set-1x.png"
11 PASS document.getElementById("sizes_src").clientWidth is 400 11 PASS document.getElementById("sizes_src").clientWidth is 400
12 PASS currentSrcFileName("sizes_src") is "image-set-1x.png" 12 PASS currentSrcFileNameNoParams("sizes_src") is "image-set-1x.png"
13 PASS document.getElementById("default_sizes").clientWidth is window.innerWidth 13 PASS document.getElementById("default_sizes").clientWidth is window.innerWidth
14 PASS currentSrcFileName("default_sizes") is "image-set-2x.png" 14 PASS currentSrcFileNameNoParams("default_sizes") is "image-set-2x.png"
15 PASS document.getElementById("invalid_length").clientWidth is window.innerWidth 15 PASS document.getElementById("invalid_length").clientWidth is window.innerWidth
16 PASS currentSrcFileName("invalid_length") is "image-set-2x.png" 16 PASS currentSrcFileNameNoParams("invalid_length") is "image-set-2x.png"
17 PASS document.getElementById("src_and_w").clientWidth is within 0.015625 of 700 17 PASS document.getElementById("src_and_w").clientWidth is within 0.015625 of 700
18 PASS currentSrcFileName("src_and_w") is "image-set-4x.png" 18 PASS currentSrcFileNameNoParams("src_and_w") is "image-set-4x.png"
19 PASS document.getElementById("src_and_w2").clientWidth is within 0.015625 of 700 19 PASS document.getElementById("src_and_w2").clientWidth is within 0.015625 of 700
20 PASS currentSrcFileName("src_and_w2") is "image-set-1x.png" 20 PASS currentSrcFileNameNoParams("src_and_w2") is "image-set-1x.png"
21 PASS document.getElementById("x_and_w").clientWidth is within 0.015625 of 700 21 PASS document.getElementById("x_and_w").clientWidth is within 0.015625 of 700
22 PASS currentSrcFileName("x_and_w") is "image-set-4x.png" 22 PASS currentSrcFileNameNoParams("x_and_w") is "image-set-4x.png"
23 PASS document.getElementById("x_and_w2").clientWidth is 400 23 PASS document.getElementById("x_and_w2").clientWidth is 400
24 PASS currentSrcFileName("x_and_w2") is "image-set-2x.png" 24 PASS currentSrcFileNameNoParams("x_and_w2") is "image-set-2x.png"
25 PASS document.getElementById("x_and_w3").clientWidth is 400 25 PASS document.getElementById("x_and_w3").clientWidth is 400
26 PASS currentSrcFileName("x_and_w3") is "image-set-2x.png" 26 PASS currentSrcFileNameNoParams("x_and_w3") is "image-set-2x.png"
27 PASS document.getElementById("half_size").clientWidth is (window.innerWidth/2) 27 PASS document.getElementById("half_size").clientWidth is (window.innerWidth/2)
28 PASS currentSrcFileName("half_size") is "image-set-2x.png" 28 PASS currentSrcFileNameNoParams("half_size") is "image-set-2x.png"
29 PASS document.getElementById("infitisimal_sizes").clientWidth is (window.innerWi dth/100) 29 PASS document.getElementById("infitisimal_sizes").clientWidth is (window.innerWi dth/100)
30 PASS currentSrcFileName("infitisimal_sizes") is "image-set-2x.png" 30 PASS currentSrcFileNameNoParams("infitisimal_sizes") is "image-set-2x.png"
31 PASS currentSrcFileName("fraction") is "data:,a" 31 PASS currentSrcFileNameNoParams("fraction") is "data:,a"
32 32 PASS document.getElementById("seen_lowest_before").clientWidth is 1600
33 PASS currentSrcFileNameNoParams("seen_lowest_before") is "image-set-4x.png"
34 PASS document.getElementById("seen_highest_before").clientWidth is 800
35 PASS currentSrcFileNameNoParams("seen_highest_before") is "image-set-4x.png"
36
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698