| Index: Source/core/dom/DocumentMarkerControllerTest.cpp
|
| diff --git a/Source/core/dom/DocumentMarkerControllerTest.cpp b/Source/core/dom/DocumentMarkerControllerTest.cpp
|
| index 2573ce6b15f7d089a59883a217528c71a59dda7b..4e987d342616c03fae88a74c37017cdf38ba7bdc 100644
|
| --- a/Source/core/dom/DocumentMarkerControllerTest.cpp
|
| +++ b/Source/core/dom/DocumentMarkerControllerTest.cpp
|
| @@ -35,6 +35,7 @@
|
| #include "core/dom/Document.h"
|
| #include "core/dom/Range.h"
|
| #include "core/dom/Text.h"
|
| +#include "core/frame/FrameView.h"
|
| #include "core/html/HTMLElement.h"
|
| #include "core/testing/DummyPageHolder.h"
|
| #include "wtf/PassRefPtr.h"
|
| @@ -200,4 +201,15 @@ TEST_F(DocumentMarkerControllerTest, NodeWillBeRemovedBySetInnerHTML)
|
| EXPECT_EQ(0u, markerController().markers().size());
|
| }
|
|
|
| +TEST_F(DocumentMarkerControllerTest, RendererInvalidation)
|
| +{
|
| + setBodyInnerHTML("foo");
|
| + document().view()->updateLayoutAndStyleForPainting();
|
| + document().view()->setTracksPaintInvalidations(true);
|
| + markNodeContents(document().body()->firstChild());
|
| + document().view()->updateLayoutAndStyleForPainting();
|
| + EXPECT_FALSE(document().view()->trackedPaintInvalidationRectsAsText().isEmpty());
|
| + document().view()->setTracksPaintInvalidations(false);
|
| +}
|
| +
|
| }
|
|
|