| Index: third_party/WebKit/Source/core/dom/TextTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/TextTest.cpp b/third_party/WebKit/Source/core/dom/TextTest.cpp
|
| index edf48d76f8c94fc6cecca458717574bc382ebed3..f0b2f73aeaef997fe7f85a90abe8a72bdb28830f 100644
|
| --- a/third_party/WebKit/Source/core/dom/TextTest.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/TextTest.cpp
|
| @@ -15,6 +15,18 @@ namespace blink {
|
| class TextTest : public EditingTestBase {
|
| };
|
|
|
| +TEST_F(TextTest, SetDataToChangeFirstLetterTextNode)
|
| +{
|
| + setBodyContent("<style>pre::first-letter {color:red;}</style><pre id=sample>a<span>b</span></pre>");
|
| +
|
| + Node* sample = document().getElementById("sample");
|
| + Text* text = toText(sample->firstChild());
|
| + text->setData(" ");
|
| + updateAllLifecyclePhases();
|
| +
|
| + EXPECT_FALSE(text->layoutObject()->isTextFragment());
|
| +}
|
| +
|
| TEST_F(TextTest, RemoveFirstLetterPseudoElementWhenNoLetter)
|
| {
|
| setBodyContent("<style>*::first-letter{font:icon;}</style><pre>AB\n</pre>");
|
|
|