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

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

Issue 259193004: Enable calc() parsing in the sizes attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@calc4
Patch Set: Fixed a test following zcorpan's comment 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
« no previous file with comments | « Source/core/css/parser/SizesAttributeParser.cpp ('k') | no next file » | 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 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.
};
« no previous file with comments | « Source/core/css/parser/SizesAttributeParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698