Index: Source/core/css/parser/SizesAttributeParserTest.cpp |
diff --git a/Source/core/css/parser/SizesAttributeParserTest.cpp b/Source/core/css/parser/SizesAttributeParserTest.cpp |
index b570640c4d7accf27720c7097a99434617c9a7ca..e8765b07777310aad7f4f6b4e1588a75f3f63de2 100644 |
--- a/Source/core/css/parser/SizesAttributeParserTest.cpp |
+++ b/Source/core/css/parser/SizesAttributeParserTest.cpp |
@@ -48,6 +48,10 @@ TEST(SizesAttributeParserTest, Basic) |
{"(max-width: 3000px) 200w, 400w", 500}, |
{",, , /**/ ,200px", 200}, |
{"50vw", 250}, |
+ {"calc(40vw*2)", 400}, |
+ {"(min-width:5000px) calc(5000px/10), (min-width:500px) calc(1200px/3)", 400}, |
+ {"(min-width:500px) calc(1200/3)", 500}, |
+ {"(min-width:500px) calc(1200px/(0px*14))", 500}, |
// FIXME - test all other units, zero length and calc(). |
{0, 0} // Do not remove the terminator line. |
}; |