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

Unified Diff: LayoutTests/fast/hidpi/image-srcset-invalid-descriptor.html

Issue 184523003: Fix two srcset related bugs (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed a useless if Created 6 years, 10 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/hidpi/image-srcset-invalid-descriptor-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/hidpi/image-srcset-invalid-descriptor.html
diff --git a/LayoutTests/fast/hidpi/image-srcset-invalid-descriptor.html b/LayoutTests/fast/hidpi/image-srcset-invalid-descriptor.html
index 2361086fc8e8ae525ff36299ddc04b6b0b1e2ed2..b1c02e8759ad795d80045e2b4ef1471286013158 100644
--- a/LayoutTests/fast/hidpi/image-srcset-invalid-descriptor.html
+++ b/LayoutTests/fast/hidpi/image-srcset-invalid-descriptor.html
@@ -8,14 +8,16 @@
<script>
addEventListener("load", function() {
shouldBeTrue('document.getElementById("foo").clientWidth==100');
+ shouldBeTrue('document.getElementById("foo2").clientWidth==200');
}, false);
</script>
</head>
<body id="body">
<div>This test passes if the image below is a 100px blue square when the deviceScaleFactor is 1.</div>
- <div> It tests that even though the 1x resource contains many invalid descriptors, only the invalid descriptors are ignored (according
- to the spec) </div>
+ <div> It tests that even though the 1x resource contains many invalid descriptors,
+ only the invalid descriptors are ignored (according to the spec).</div>
<img id="foo" src="" srcset="resources/blue-100-px-square.png 43q 1x dfs 3dd, resources/green-400-px-square.png 2x">
+ <img id="foo2" src="" srcset="resources/blue-100-px-square.png 300q, resources/green-400-px-square.png 2x">
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/fast/hidpi/image-srcset-invalid-descriptor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698