Chromium Code Reviews| Index: Source/core/css/MediaQuerySetTest.cpp |
| diff --git a/Source/core/css/MediaQuerySetTest.cpp b/Source/core/css/MediaQuerySetTest.cpp |
| index 4f3a959e70cbd0d9c318764026d5f8e2a5ee99bc..8cd167f66a5e445af8c8566b7b5297a211397afa 100644 |
| --- a/Source/core/css/MediaQuerySetTest.cpp |
| +++ b/Source/core/css/MediaQuerySetTest.cpp |
| @@ -97,6 +97,10 @@ 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)"}, |
| + {"(m\\61x-width: 300px)", "(max-width: 300px)"}, |
| + {"(max-width: 400\\70\\78)", "(max-width: 400px)"}, |
| + {"(max-width: 500\\0070\\0078)", "(max-width: 500px)"}, |
| + {"(max-width: 600\\000070\\000078)", "(max-width: 600px)"}, |
| {"[(), (max-width: 900px)", "not all"}, |
| {"[{}, (max-width: 900px)", "not all"}, |
| {"[{]}], (max-width: 900px)", "not all, (max-width: 900px)"}, |
| @@ -107,7 +111,7 @@ TEST(MediaQueryParserTest, Basic) |
| }; |
| for (unsigned i = 0; testCases[i].input; ++i) { |
| - RefPtrWillBeRawPtr<MediaQuerySet> querySet = MediaQuerySet::create(testCases[i].input); |
| + RefPtrWillBeRawPtr<MediaQuerySet> querySet = MediaQuerySet::createOffMainThread(testCases[i].input); |
|
eseidel
2014/04/01 22:03:06
Seems like we should test both parsers, no? Run t
|
| StringBuilder output; |
| size_t j = 0; |
| while (j < querySet->queryVector().size()) { |