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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyleTest.cpp

Issue 2569013006: Changed EOverflow to an enum class and renamed its members (Closed)
Patch Set: Rebase Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyleConstants.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/style/ComputedStyle.h" 5 #include "core/style/ComputedStyle.h"
6 6
7 #include "core/style/ClipPathOperation.h" 7 #include "core/style/ClipPathOperation.h"
8 #include "core/style/ShapeValue.h" 8 #include "core/style/ShapeValue.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 #if OS(MACOSX) 64 #if OS(MACOSX)
65 ASSERT_EQ(4, style->outlineOutsetExtent()); 65 ASSERT_EQ(4, style->outlineOutsetExtent());
66 #else 66 #else
67 ASSERT_EQ(3, style->outlineOutsetExtent()); 67 ASSERT_EQ(3, style->outlineOutsetExtent());
68 #endif 68 #endif
69 } 69 }
70 70
71 TEST(ComputedStyleTest, Preserve3dForceStackingContext) { 71 TEST(ComputedStyleTest, Preserve3dForceStackingContext) {
72 RefPtr<ComputedStyle> style = ComputedStyle::create(); 72 RefPtr<ComputedStyle> style = ComputedStyle::create();
73 style->setTransformStyle3D(TransformStyle3DPreserve3D); 73 style->setTransformStyle3D(TransformStyle3DPreserve3D);
74 style->setOverflowX(OverflowHidden); 74 style->setOverflowX(EOverflow::Hidden);
75 style->setOverflowY(OverflowHidden); 75 style->setOverflowY(EOverflow::Hidden);
76 style->updateIsStackingContext(false, false); 76 style->updateIsStackingContext(false, false);
77 EXPECT_EQ(TransformStyle3DFlat, style->usedTransformStyle3D()); 77 EXPECT_EQ(TransformStyle3DFlat, style->usedTransformStyle3D());
78 EXPECT_TRUE(style->isStackingContext()); 78 EXPECT_TRUE(style->isStackingContext());
79 } 79 }
80 80
81 } // namespace blink 81 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyleConstants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698