Index: Source/core/css/MediaQuerySetTest.cpp |
diff --git a/Source/core/css/MediaQuerySetTest.cpp b/Source/core/css/MediaQuerySetTest.cpp |
index 4f3a959e70cbd0d9c318764026d5f8e2a5ee99bc..046d23c9d4d7da3f0f51a8fc1cd97056ef3b4db8 100644 |
--- a/Source/core/css/MediaQuerySetTest.cpp |
+++ b/Source/core/css/MediaQuerySetTest.cpp |
@@ -97,12 +97,31 @@ 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"}, |
+ {"[]((), (max-width: 900px)", "not all"}, |
+ {"[](()), (max-width: 900px)", "not all, (max-width: 900px)"}, |
+ {"all an[isdfs bla())()]icalc(i)(()), (max-width: 900px)", "not all, (max-width: 900px)"}, |
+ {"all an[isdfs bla())(]icalc(i)(()), (max-width: 900px)", "not all"}, |
+ {"all an[isdfs bla())(]icalc(i)(())), (max-width: 900px)", "not all"}, |
+ {"all an[isdfs bla())(]icalc(i)(()))], (max-width: 900px)", "not all, (max-width: 900px)"}, |
{0, 0} // Do not remove the terminator line. |
}; |