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

Unified Diff: Source/core/layout/style/ComputedStyleTest.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/layout/style/ComputedStyleConstants.h ('k') | Source/core/layout/style/ContentData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/style/ComputedStyleTest.cpp
diff --git a/Source/core/layout/style/LayoutStyleTest.cpp b/Source/core/layout/style/ComputedStyleTest.cpp
similarity index 71%
rename from Source/core/layout/style/LayoutStyleTest.cpp
rename to Source/core/layout/style/ComputedStyleTest.cpp
index cb2617994d9afb873d38258fb451632f4818d215..616788f32475185a2950ce6e38ff498286585c52 100644
--- a/Source/core/layout/style/LayoutStyleTest.cpp
+++ b/Source/core/layout/style/ComputedStyleTest.cpp
@@ -3,7 +3,7 @@
// found in the LICENSE file.
#include "config.h"
-#include "core/layout/style/LayoutStyle.h"
+#include "core/layout/style/ComputedStyle.h"
#include "core/layout/ClipPathOperation.h"
#include "core/layout/style/ShapeValue.h"
@@ -14,37 +14,37 @@ using namespace blink;
namespace {
-TEST(LayoutStyleTest, ShapeOutsideBoxEqual)
+TEST(ComputedStyleTest, ShapeOutsideBoxEqual)
{
RefPtr<ShapeValue> shape1 = ShapeValue::createBoxShapeValue(ContentBox);
RefPtr<ShapeValue> shape2 = ShapeValue::createBoxShapeValue(ContentBox);
- RefPtr<LayoutStyle> style1 = LayoutStyle::create();
- RefPtr<LayoutStyle> style2 = LayoutStyle::create();
+ RefPtr<ComputedStyle> style1 = ComputedStyle::create();
+ RefPtr<ComputedStyle> style2 = ComputedStyle::create();
style1->setShapeOutside(shape1);
style2->setShapeOutside(shape2);
ASSERT_EQ(*style1, *style2);
}
-TEST(LayoutStyleTest, ShapeOutsideCircleEqual)
+TEST(ComputedStyleTest, ShapeOutsideCircleEqual)
{
RefPtr<BasicShapeCircle> circle1 = BasicShapeCircle::create();
RefPtr<BasicShapeCircle> circle2 = BasicShapeCircle::create();
RefPtr<ShapeValue> shape1 = ShapeValue::createShapeValue(circle1, ContentBox);
RefPtr<ShapeValue> shape2 = ShapeValue::createShapeValue(circle2, ContentBox);
- RefPtr<LayoutStyle> style1 = LayoutStyle::create();
- RefPtr<LayoutStyle> style2 = LayoutStyle::create();
+ RefPtr<ComputedStyle> style1 = ComputedStyle::create();
+ RefPtr<ComputedStyle> style2 = ComputedStyle::create();
style1->setShapeOutside(shape1);
style2->setShapeOutside(shape2);
ASSERT_EQ(*style1, *style2);
}
-TEST(LayoutStyleTest, ClipPathEqual)
+TEST(ComputedStyleTest, ClipPathEqual)
{
RefPtr<BasicShapeCircle> shape = BasicShapeCircle::create();
RefPtr<ShapeClipPathOperation> path1 = ShapeClipPathOperation::create(shape);
RefPtr<ShapeClipPathOperation> path2 = ShapeClipPathOperation::create(shape);
- RefPtr<LayoutStyle> style1 = LayoutStyle::create();
- RefPtr<LayoutStyle> style2 = LayoutStyle::create();
+ RefPtr<ComputedStyle> style1 = ComputedStyle::create();
+ RefPtr<ComputedStyle> style2 = ComputedStyle::create();
style1->setClipPath(path1);
style2->setClipPath(path2);
ASSERT_EQ(*style1, *style2);
« no previous file with comments | « Source/core/layout/style/ComputedStyleConstants.h ('k') | Source/core/layout/style/ContentData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698