Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: third_party/WebKit/Source/core/paint/ObjectPaintInvalidatorTest.cpp

Issue 2293493003: Move blink platform's JSON code into a directory. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/LayoutTestHelper.h" 7 #include "core/layout/LayoutTestHelper.h"
8 #include "platform/JSONValues.h" 8 #include "platform/json/JSONValues.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 using ObjectPaintInvalidatorTest = RenderingTest; 13 using ObjectPaintInvalidatorTest = RenderingTest;
14 14
15 TEST_F(ObjectPaintInvalidatorTest, TraverseNonCompositingDescendantsInPaintOrder ) 15 TEST_F(ObjectPaintInvalidatorTest, TraverseNonCompositingDescendantsInPaintOrder )
16 { 16 {
17 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) 17 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
18 return; 18 return;
(...skipping 26 matching lines...) Expand all
45 EXPECT_EQ(getLayoutObjectByElementId("container")->debugName(), s); 45 EXPECT_EQ(getLayoutObjectByElementId("container")->debugName(), s);
46 JSONObject::cast(invalidations->at(1))->get("object")->asString(&s); 46 JSONObject::cast(invalidations->at(1))->get("object")->asString(&s);
47 EXPECT_EQ(getLayoutObjectByElementId("normal-child")->debugName(), s); 47 EXPECT_EQ(getLayoutObjectByElementId("normal-child")->debugName(), s);
48 JSONObject::cast(invalidations->at(2))->get("object")->asString(&s); 48 JSONObject::cast(invalidations->at(2))->get("object")->asString(&s);
49 EXPECT_EQ(getLayoutObjectByElementId("stacked-child")->debugName(), s); 49 EXPECT_EQ(getLayoutObjectByElementId("stacked-child")->debugName(), s);
50 JSONObject::cast(invalidations->at(3))->get("object")->asString(&s); 50 JSONObject::cast(invalidations->at(3))->get("object")->asString(&s);
51 EXPECT_EQ(getLayoutObjectByElementId("stacked-child-of-composited-non-stacki ng-context")->debugName(), s); 51 EXPECT_EQ(getLayoutObjectByElementId("stacked-child-of-composited-non-stacki ng-context")->debugName(), s);
52 } 52 }
53 53
54 } // namespace blink 54 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698