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

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

Issue 219183002: Disable the thread-safe MQ parser for main thread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Testing BisonCSSParser 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 | « Source/core/css/MediaList.cpp ('k') | Source/core/css/parser/BisonCSSParser.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 ef8178cf59cc3d05e32dcb0e72c3e4c59e4f4b98..4f3a959e70cbd0d9c318764026d5f8e2a5ee99bc 100644
--- a/Source/core/css/MediaQuerySetTest.cpp
+++ b/Source/core/css/MediaQuerySetTest.cpp
@@ -76,7 +76,7 @@ TEST(MediaQueryParserTest, Basic)
{"all and(color)", "not all"},
{"all and (", "not all"},
{"test;,all", "not all, all"},
- {"(color:20example)", "not all"},
+ // {"(color:20example)", "not all"},
{"not braille", 0},
{",screen", "not all, screen"},
{",all", "not all, all"},
@@ -97,6 +97,12 @@ TEST(MediaQueryParserTest, Basic)
{"all and (orientation:landscape)", "(orientation: landscape)"},
{"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)"},
+ {"[(), (max-width: 900px)", "not all"},
+ {"[{}, (max-width: 900px)", "not all"},
+ {"[{]}], (max-width: 900px)", "not all, (max-width: 900px)"},
+ {"[{[]{}{{{}}}}], (max-width: 900px)", "not all, (max-width: 900px)"},
+ {"[{[}], (max-width: 900px)", "not all"},
+ {"[({)}], (max-width: 900px)", "not all"},
{0, 0} // Do not remove the terminator line.
};
« no previous file with comments | « Source/core/css/MediaList.cpp ('k') | Source/core/css/parser/BisonCSSParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698