| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/paint/ObjectPaintInvalidator.h" | 5 #include "core/paint/ObjectPaintInvalidator.h" |
| 6 | 6 |
| 7 #include "core/layout/LayoutObject.h" |
| 7 #include "core/layout/LayoutTestHelper.h" | 8 #include "core/layout/LayoutTestHelper.h" |
| 8 #include "platform/json/JSONValues.h" | 9 #include "platform/json/JSONValues.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 11 |
| 11 namespace blink { | 12 namespace blink { |
| 12 | 13 |
| 13 using ObjectPaintInvalidatorTest = RenderingTest; | 14 using ObjectPaintInvalidatorTest = RenderingTest; |
| 14 | 15 |
| 15 TEST_F(ObjectPaintInvalidatorTest, TraverseNonCompositingDescendantsInPaintOrder
) | 16 TEST_F(ObjectPaintInvalidatorTest, TraverseNonCompositingDescendantsInPaintOrder
) |
| 16 { | 17 { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 45 EXPECT_EQ(getLayoutObjectByElementId("container")->debugName(), s); | 46 EXPECT_EQ(getLayoutObjectByElementId("container")->debugName(), s); |
| 46 JSONObject::cast(invalidations->at(1))->get("object")->asString(&s); | 47 JSONObject::cast(invalidations->at(1))->get("object")->asString(&s); |
| 47 EXPECT_EQ(getLayoutObjectByElementId("normal-child")->debugName(), s); | 48 EXPECT_EQ(getLayoutObjectByElementId("normal-child")->debugName(), s); |
| 48 JSONObject::cast(invalidations->at(2))->get("object")->asString(&s); | 49 JSONObject::cast(invalidations->at(2))->get("object")->asString(&s); |
| 49 EXPECT_EQ(getLayoutObjectByElementId("stacked-child")->debugName(), s); | 50 EXPECT_EQ(getLayoutObjectByElementId("stacked-child")->debugName(), s); |
| 50 JSONObject::cast(invalidations->at(3))->get("object")->asString(&s); | 51 JSONObject::cast(invalidations->at(3))->get("object")->asString(&s); |
| 51 EXPECT_EQ(getLayoutObjectByElementId("stacked-child-of-composited-non-stacki
ng-context")->debugName(), s); | 52 EXPECT_EQ(getLayoutObjectByElementId("stacked-child-of-composited-non-stacki
ng-context")->debugName(), s); |
| 52 } | 53 } |
| 53 | 54 |
| 54 } // namespace blink | 55 } // namespace blink |
| OLD | NEW |