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

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

Issue 633643003: Enable float source size (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed merge issue 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/parser/SizesAttributeParser.cpp ('k') | Source/core/css/parser/SizesCalcParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/SizesAttributeParserTest.cpp
diff --git a/Source/core/css/parser/SizesAttributeParserTest.cpp b/Source/core/css/parser/SizesAttributeParserTest.cpp
index 834e1303d90c3240f97910694f1b75ae36ec40c9..5feadb5c17556c57f2218e7de74c3d6c0d86c817 100644
--- a/Source/core/css/parser/SizesAttributeParserTest.cpp
+++ b/Source/core/css/parser/SizesAttributeParserTest.cpp
@@ -14,7 +14,7 @@ namespace blink {
typedef struct {
const char* input;
- const unsigned effectiveSize;
+ const float effectiveSize;
const bool viewportDependant;
} TestCase;
@@ -68,6 +68,7 @@ TEST(SizesAttributeParserTest, Basic)
{"{{},1px", 500, true},
{"[[],1px", 500, true},
{"x(x(),1px", 500, true},
+ {"(max-width: 3000px) 50.5px, 40vw", 50.5, false},
{0, 0, false} // Do not remove the terminator line.
};
« no previous file with comments | « Source/core/css/parser/SizesAttributeParser.cpp ('k') | Source/core/css/parser/SizesCalcParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698