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

Unified Diff: third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp

Issue 2514743002: Use static profile in SelectorQueryTest (Closed)
Patch Set: Created 4 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp b/third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp
index dd0de475eaaaa547be5c393ff8f196b77da74be2..790ab01817d7ad64c44d7f2262d18301acdc6aa1 100644
--- a/third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp
+++ b/third_party/WebKit/Source/core/dom/SelectorQueryTest.cpp
@@ -29,8 +29,10 @@ TEST(SelectorQueryTest, NotMatchingPseudoElement) {
Element* elm = query->queryFirst(*document);
EXPECT_EQ(nullptr, elm);
- selectorList = CSSParser::parseSelector(CSSParserContext(*document, nullptr),
- nullptr, "span");
+ selectorList = CSSParser::parseSelector(
+ CSSParserContext(*document, nullptr, KURL(), emptyString(),
+ CSSParserContext::StaticProfile),
+ nullptr, "span");
query = SelectorQuery::adopt(std::move(selectorList));
elm = query->queryFirst(*document);
EXPECT_NE(nullptr, elm);
@@ -46,7 +48,9 @@ TEST(SelectorQueryTest, LastOfTypeNotFinishedParsing) {
document->body()->beginParsingChildren();
CSSSelectorList selectorList = CSSParser::parseSelector(
- CSSParserContext(*document, nullptr), nullptr, "p:last-of-type");
+ CSSParserContext(*document, nullptr, KURL(), emptyString(),
+ CSSParserContext::StaticProfile),
+ nullptr, "p:last-of-type");
std::unique_ptr<SelectorQuery> query =
SelectorQuery::adopt(std::move(selectorList));
Element* elm = query->queryFirst(*document);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698