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()); |