Index: Source/core/css/MediaQuerySetTest.cpp |
diff --git a/Source/core/css/MediaQuerySetTest.cpp b/Source/core/css/MediaQuerySetTest.cpp |
index ef8178cf59cc3d05e32dcb0e72c3e4c59e4f4b98..a594a060bcd3ce51805f193da48b57a37d9b5474 100644 |
--- a/Source/core/css/MediaQuerySetTest.cpp |
+++ b/Source/core/css/MediaQuerySetTest.cpp |
@@ -97,6 +97,25 @@ 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: 700px), (max-width: 700px)", "(max-width: 700px), (max-width: 700px)"}, |
+ {"(max-width: 800px()), (max-width: 800px)", "not all, (max-width: 800px)"}, |
+ {"(max-width: 900px(()), (max-width: 900px)", "not all"}, |
+ {"(max-width: 600px(())))), (max-width: 600px)", "not all, (max-width: 600px)"}, |
+ {"(max-width: 500px(((((((((())))), (max-width: 500px)", "not all"}, |
+ {"(max-width: 800px[]), (max-width: 800px)", "not all, (max-width: 800px)"}, |
+ {"(max-width: 900px[[]), (max-width: 900px)", "not all"}, |
+ {"(max-width: 600px[[]]]]), (max-width: 600px)", "not all, (max-width: 600px)"}, |
+ {"(max-width: 500px[[[[[[[[[[]]]]), (max-width: 500px)", "not all"}, |
+ {"(max-width: 800px{}), (max-width: 800px)", "not all, (max-width: 800px)"}, |
+ {"(max-width: 900px{{}), (max-width: 900px)", "not all"}, |
+ {"(max-width: 600px{{}}}}), (max-width: 600px)", "not all, (max-width: 600px)"}, |
+ {"(max-width: 500px{{{{{{{{{{}}}}), (max-width: 500px)", "not all"}, |
+ {"[(), (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. |
}; |