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

Unified Diff: Source/core/css/MediaQueryEvaluatorTest.cpp

Issue 644813005: Floating point MQs should not match. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Brought everything back to double. DRYed up computeLength calls. Added tests. 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/MediaQueryEvaluator.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/MediaQueryEvaluatorTest.cpp
diff --git a/Source/core/css/MediaQueryEvaluatorTest.cpp b/Source/core/css/MediaQueryEvaluatorTest.cpp
index f982909ebcdd6a8cf1c5baf3b393ed6ee0e9e56c..d72278ef72b31239291eb539b2d6cd8a36e66962 100644
--- a/Source/core/css/MediaQueryEvaluatorTest.cpp
+++ b/Source/core/css/MediaQueryEvaluatorTest.cpp
@@ -60,10 +60,17 @@ TestCase viewportTestCases[] = {
{"(width: 501px)", 0},
{"(min-height: 500px)", 1},
{"(min-height: 501px)", 0},
+ {"(min-height: 500.001px)", 0},
{"(max-height: 500px)", 1},
+ {"(max-height: 499.999px)", 0},
{"(max-height: 499px)", 0},
{"(height: 500px)", 1},
+ {"(height: 500.001px)", 0},
+ {"(height: 499.999px)", 0},
{"(height: 501px)", 0},
+ {"(height)", 1},
+ {"(width)", 1},
+ {"(width: whatisthis)", 0},
{"screen and (min-width: 400px) and (max-width: 700px)", 1},
{0, 0} // Do not remove the terminator line.
};
« no previous file with comments | « Source/core/css/MediaQueryEvaluator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698