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

Unified Diff: LayoutTests/fast/hidpi/image-srcset-intrinsic-size.html

Issue 302083009: Revert of Enable a srcset 0x descriptor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/hidpi/image-srcset-intrinsic-size-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-intrinsic-size.html
diff --git a/LayoutTests/fast/hidpi/image-srcset-intrinsic-size.html b/LayoutTests/fast/hidpi/image-srcset-intrinsic-size.html
index 68c636e433443f237869379cf4c9ee5c8cffb817..54f90be0cc026062a432d8485be0f771c8aa252a 100644
--- a/LayoutTests/fast/hidpi/image-srcset-intrinsic-size.html
+++ b/LayoutTests/fast/hidpi/image-srcset-intrinsic-size.html
@@ -7,11 +7,10 @@
<script src="../../resources/js-test.js"></script>
<script>
addEventListener("load", function() {
- shouldBe('document.getElementById("foo").clientWidth', '200');
- shouldBe('document.getElementById("foo2").clientWidth', '400');
- shouldBe('document.getElementById("foo3").clientWidth', '100');
- shouldBe('document.getElementById("foo4").clientWidth', '200');
- shouldBe('document.getElementById("foo5").clientWidth', '200');
+ shouldBeTrue('document.getElementById("foo").clientWidth==200');
+ shouldBeTrue('document.getElementById("foo2").clientWidth==400');
+ shouldBeTrue('document.getElementById("foo3").clientWidth==100');
+ shouldBeTrue('document.getElementById("foo4").clientWidth==200');
}, false);
</script>
</head>
@@ -26,8 +25,6 @@
<br>
<img id="foo3" srcset="resources/srcset.svg 2x">
<br>
- <img id="foo4" srcset="resources/blue-100-px-square.png 0.5x">
- <br>
- <img id="foo5" src="resources/srcset.svg">
+ <img id="foo4" src="resources/srcset.svg">
</body>
</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/hidpi/image-srcset-intrinsic-size-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698