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

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: 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 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()) {
« 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