| Index: third_party/WebKit/Source/core/dom/StyleEngineTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/StyleEngineTest.cpp b/third_party/WebKit/Source/core/dom/StyleEngineTest.cpp
|
| index 7859ffbcbf2c8ee884d29ac5d0bac47a02d38134..60f4c1671c138878a8ebe05345e1aa8342fe60a5 100644
|
| --- a/third_party/WebKit/Source/core/dom/StyleEngineTest.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/StyleEngineTest.cpp
|
| @@ -184,6 +184,23 @@ TEST_F(StyleEngineTest, RuleSetInvalidationTypeSelectors) {
|
| EXPECT_EQ(1u, afterCount - beforeCount);
|
| }
|
|
|
| +TEST_F(StyleEngineTest, RuleSetInvalidationCustomPseudo) {
|
| + document().body()->setInnerHTML(
|
| + "<style>progress { -webkit-appearance:none }</style>"
|
| + "<progress></progress>"
|
| + "<div></div><div></div><div></div><div></div><div></div><div></div>");
|
| +
|
| + document().view()->updateAllLifecyclePhases();
|
| +
|
| + unsigned beforeCount = styleEngine().styleForElementCount();
|
| + EXPECT_EQ(scheduleInvalidationsForRules(
|
| + document(), "::-webkit-progress-bar { background: green }"),
|
| + RuleSetInvalidationsScheduled);
|
| + document().view()->updateAllLifecyclePhases();
|
| + unsigned afterCount = styleEngine().styleForElementCount();
|
| + EXPECT_EQ(3u, afterCount - beforeCount);
|
| +}
|
| +
|
| TEST_F(StyleEngineTest, RuleSetInvalidationHost) {
|
| document().body()->setInnerHTML("<div id=nohost></div><div id=host></div>");
|
| Element* host = document().getElementById("host");
|
|
|