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

Unified Diff: Source/core/css/parser/CSSSelectorParserTest.cpp

Issue 1322543004: CSSStyleSheet::insertRule should respect the default namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 | « Source/core/css/parser/CSSSelectorParser.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSSelectorParserTest.cpp
diff --git a/Source/core/css/parser/CSSSelectorParserTest.cpp b/Source/core/css/parser/CSSSelectorParserTest.cpp
index fe9dbbd7b4dbcdfe489fce692d7e5fcc52058d09..1d33aab8cab44798dec8533e2d7cfd470761718e 100644
--- a/Source/core/css/parser/CSSSelectorParserTest.cpp
+++ b/Source/core/css/parser/CSSSelectorParserTest.cpp
@@ -113,10 +113,12 @@ TEST(CSSSelectorParserTest, InvalidANPlusB)
}
}
-TEST(CSSSelectorParserTest, ContentPseudoInCompound)
+TEST(CSSSelectorParserTest, ShadowDomPseudoInCompound)
{
const char* testCases[][2] = {
- { "::content", "*::content" }, // crbug.com/478969
+ { "::shadow", "*::shadow" }, // crbug.com/478969
+ { ".a::shadow", ".a::shadow" },
+ { "::content", "::content" },
{ ".a::content", ".a::content" },
{ "::content.a", ".a::content" },
{ "::content.a.b", ".b.a::content" },
@@ -128,7 +130,7 @@ TEST(CSSSelectorParserTest, ContentPseudoInCompound)
CSSTokenizer::Scope scope(testCases[i][0]);
CSSParserTokenRange range = scope.tokenRange();
CSSSelectorList list;
- CSSSelectorParser::parseSelector(range, CSSParserContext(HTMLStandardMode, nullptr), nullAtom, nullptr, list);
+ CSSSelectorParser::parseSelector(range, CSSParserContext(HTMLStandardMode, nullptr), nullptr, list);
EXPECT_STREQ(testCases[i][1], list.selectorsText().ascii().data());
}
}
« no previous file with comments | « Source/core/css/parser/CSSSelectorParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698