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

Unified Diff: Source/core/css/parser/SizesAttributeParserTest.cpp

Issue 236713005: Use SizesAttributeParser to get the right srcset resource (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sizes_parser8
Patch Set: Fixed review comments Created 6 years, 8 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
Index: Source/core/css/parser/SizesAttributeParserTest.cpp
diff --git a/Source/core/css/parser/SizesAttributeParserTest.cpp b/Source/core/css/parser/SizesAttributeParserTest.cpp
index 7a01053c72e039d460be9d5efbccc873696eebf3..7989722e8099ac089ee81f04da82551e60b5734f 100644
--- a/Source/core/css/parser/SizesAttributeParserTest.cpp
+++ b/Source/core/css/parser/SizesAttributeParserTest.cpp
@@ -46,6 +46,7 @@ TEST(SizesAttributeParserTest, Basic)
{"asdf, 200px", 200},
{"(max-width: 3000px) 200w, 400w", 500},
{",, , /**/ ,200px", 200},
+ {"50vw", 250},
eseidel 2014/04/20 22:06:21 Do we need to test the empty string or other extre
// FIXME - test all other units, zero length and calc().
{0, 0} // Do not remove the terminator line.
};

Powered by Google App Engine
This is Rietveld 408576698