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

Unified Diff: sky/engine/core/css/parser/BisonCSSParserTest.cpp

Issue 807703003: Remove @media rules. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « sky/engine/core/css/parser/BisonCSSParser-in.cpp ('k') | sky/engine/core/css/parser/CSSGrammar.y » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/parser/BisonCSSParserTest.cpp
diff --git a/sky/engine/core/css/parser/BisonCSSParserTest.cpp b/sky/engine/core/css/parser/BisonCSSParserTest.cpp
index 188a3e5d746e7583e38aa9d20628f2a4c5067478..37607f20b6b1074bde242a272383761b61be488c 100644
--- a/sky/engine/core/css/parser/BisonCSSParserTest.cpp
+++ b/sky/engine/core/css/parser/BisonCSSParserTest.cpp
@@ -84,28 +84,4 @@ static void testMediaQuery(const char* expected, MediaQuerySet& querySet)
ASSERT_STREQ(expected, output.toString().ascii().data());
}
-TEST(BisonCSSParserTest, MediaQuery)
-{
- struct {
- const char* input;
- const char* output;
- } testCases[] = {
- {"@media s} {}", "not all"},
- {"@media } {}", "not all"},
- {"@media tv {}", "tv"},
- {"@media tv, screen {}", "tv, screen"},
- {"@media s}, tv {}", "not all, tv"},
- {"@media tv, screen and (}) {}", "tv, not all"},
- };
-
- BisonCSSParser parser(strictCSSParserContext());
-
- for (unsigned i = 0; i < ARRAY_SIZE(testCases); ++i) {
- RefPtr<StyleRuleBase> rule = parser.parseRule(nullptr, String(testCases[i].input));
-
- EXPECT_TRUE(rule->isMediaRule());
- testMediaQuery(testCases[i].output, *static_cast<StyleRuleMedia*>(rule.get())->mediaQueries());
- }
-}
-
} // namespace blink
« no previous file with comments | « sky/engine/core/css/parser/BisonCSSParser-in.cpp ('k') | sky/engine/core/css/parser/CSSGrammar.y » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698