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

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

Issue 302123002: Enable zero length source size in sizes attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Break out of length calc early for empty length 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
Index: Source/core/css/parser/SizesAttributeParserTest.cpp
diff --git a/Source/core/css/parser/SizesAttributeParserTest.cpp b/Source/core/css/parser/SizesAttributeParserTest.cpp
index e8765b07777310aad7f4f6b4e1588a75f3f63de2..bd60c2990f1b06579b837e00d8b268fda8d44b41 100644
--- a/Source/core/css/parser/SizesAttributeParserTest.cpp
+++ b/Source/core/css/parser/SizesAttributeParserTest.cpp
@@ -30,8 +30,8 @@ TEST(SizesAttributeParserTest, Basic)
{"400px, (min-width:500px) 200px", 400},
{"(min-width:5000px) 200px, 400px", 400},
{"(blalbadfsdf) 200px, 400px", 400},
- {"0", 500},
- {"-0", 500},
+ {"0", 0},
+ {"-0", 0},
{"1", 500},
{"300px, 400px", 300},
{"(min-width:5000px) 200px, (min-width:500px) 400px", 400},

Powered by Google App Engine
This is Rietveld 408576698