| Index: Source/core/paint/DrawingRecorderTest.cpp
|
| diff --git a/Source/core/paint/DrawingRecorderTest.cpp b/Source/core/paint/DrawingRecorderTest.cpp
|
| index ccb87dca70b3cd51780128ce26bb8869ebc0201c..c5990384a1d1741bf3ffc73615085a309f3bb90e 100644
|
| --- a/Source/core/paint/DrawingRecorderTest.cpp
|
| +++ b/Source/core/paint/DrawingRecorderTest.cpp
|
| @@ -61,6 +61,7 @@ TEST_F(DrawingRecorderTest, DrawingRecorderTest_Nothing)
|
| EXPECT_EQ((size_t)0, rootDisplayItemList().paintList().size());
|
|
|
| drawNothing(&context, renderView(), PaintPhaseForeground, bound);
|
| + rootDisplayItemList().endNewPaints();
|
| EXPECT_EQ((size_t)1, rootDisplayItemList().paintList().size());
|
| #ifndef NDEBUG
|
| EXPECT_STREQ("Dummy", rootDisplayItemList().paintList()[0]->name());
|
| @@ -72,6 +73,7 @@ TEST_F(DrawingRecorderTest, DrawingRecorderTest_Rect)
|
| GraphicsContext context(nullptr, &rootDisplayItemList());
|
| FloatRect bound = renderView()->viewRect();
|
| drawRect(&context, renderView(), PaintPhaseForeground, bound);
|
| + rootDisplayItemList().endNewPaints();
|
| EXPECT_EQ((size_t)1, rootDisplayItemList().paintList().size());
|
| #ifndef NDEBUG
|
| EXPECT_STREQ("Drawing", rootDisplayItemList().paintList()[0]->name());
|
| @@ -84,6 +86,7 @@ TEST_F(DrawingRecorderTest, DrawingRecorderTest_Cached)
|
| FloatRect bound = renderView()->viewRect();
|
| drawNothing(&context, renderView(), PaintPhaseBlockBackground, bound);
|
| drawRect(&context, renderView(), PaintPhaseForeground, bound);
|
| + rootDisplayItemList().endNewPaints();
|
| EXPECT_EQ((size_t)2, rootDisplayItemList().paintList().size());
|
| #ifndef NDEBUG
|
| EXPECT_STREQ("Dummy", rootDisplayItemList().paintList()[0]->name());
|
| @@ -92,6 +95,7 @@ TEST_F(DrawingRecorderTest, DrawingRecorderTest_Cached)
|
|
|
| drawNothing(&context, renderView(), PaintPhaseBlockBackground, bound);
|
| drawRect(&context, renderView(), PaintPhaseForeground, bound);
|
| + rootDisplayItemList().endNewPaints();
|
| EXPECT_EQ((size_t)2, rootDisplayItemList().paintList().size());
|
| #ifndef NDEBUG
|
| EXPECT_STREQ("Dummy", rootDisplayItemList().paintList()[0]->name());
|
|
|