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

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

Issue 221383003: Fixed MediaQueryTokenizer escape support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Disabled escape tests on old parser Created 6 years, 9 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 | « no previous file | Source/core/css/parser/MediaQueryTokenizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaQuerySetTest.cpp
diff --git a/Source/core/css/MediaQuerySetTest.cpp b/Source/core/css/MediaQuerySetTest.cpp
index 82fe36c54d86977e768cd8358334a82a07e9854a..920e2656349bc75f22486c96e6e2d2bedf2da5e0 100644
--- a/Source/core/css/MediaQuerySetTest.cpp
+++ b/Source/core/css/MediaQuerySetTest.cpp
@@ -118,6 +118,10 @@ TEST(MediaQueryParserTest, Basic)
{"all and (orientation:landscape)", "(orientation: landscape)", true},
{"NOT braille, tv AND (max-width: 200px) and (min-WIDTH: 100px) and (orientation: landscape), (color)",
"not braille, tv and (max-width: 200px) and (min-width: 100px) and (orientation: landscape), (color)", true},
+ {"(m\\61x-width: 300px)", "(max-width: 300px)", true},
+ {"(max-width: 400\\70\\78)", "(max-width: 400px)", false},
+ {"(max-width: 500\\0070\\0078)", "(max-width: 500px)", false},
+ {"(max-width: 600\\000070\\000078)", "(max-width: 600px)", false},
{"(max-width: 700px), (max-width: 700px)", "(max-width: 700px), (max-width: 700px)", true},
{"(max-width: 800px()), (max-width: 800px)", "not all, (max-width: 800px)", true},
{"(max-width: 900px(()), (max-width: 900px)", "not all", true},
« no previous file with comments | « no previous file | Source/core/css/parser/MediaQueryTokenizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698