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

Unified Diff: third_party/WebKit/Source/core/css/CSSPageRuleTest.cpp

Issue 1661453002: Setting page selector text should not allow brace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | third_party/WebKit/Source/core/css/parser/CSSParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSPageRuleTest.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSPageRuleTest.cpp b/third_party/WebKit/Source/core/css/CSSPageRuleTest.cpp
index c452af8bcdd55a73e452f9381c9b61a7548a71c4..aaae3a4d9f0782a94be7b0d6dc5d2a0fea3d41f1 100644
--- a/third_party/WebKit/Source/core/css/CSSPageRuleTest.cpp
+++ b/third_party/WebKit/Source/core/css/CSSPageRuleTest.cpp
@@ -42,6 +42,10 @@ TEST(CSSPageRule, selectorText)
pageRule->setSelectorText(":hover");
EXPECT_EQ(":left", pageRule->selectorText());
+ // set invalid page selector.
+ pageRule->setSelectorText("right { bla");
+ EXPECT_EQ(":left", pageRule->selectorText());
+
// set page pseudo class selector.
pageRule->setSelectorText(":right");
EXPECT_EQ(":right", pageRule->selectorText());
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698