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

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

Issue 1164413003: Fix unit test style in core/{animation,css,fetch,frame,layout,style,timing}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: anonymous Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/shapes/BoxShapeTest.cpp ('k') | Source/core/style/OutlineValueTest.cpp » ('j') | 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 "config.h" 5 #include "config.h"
6 #include "core/style/ComputedStyle.h" 6 #include "core/style/ComputedStyle.h"
7 7
8 #include "core/layout/ClipPathOperation.h" 8 #include "core/layout/ClipPathOperation.h"
9 #include "core/style/ShapeValue.h" 9 #include "core/style/ShapeValue.h"
10
11 #include <gtest/gtest.h> 10 #include <gtest/gtest.h>
12 11
13 using namespace blink; 12 namespace blink {
14
15 namespace {
16 13
17 TEST(ComputedStyleTest, ShapeOutsideBoxEqual) 14 TEST(ComputedStyleTest, ShapeOutsideBoxEqual)
18 { 15 {
19 RefPtr<ShapeValue> shape1 = ShapeValue::createBoxShapeValue(ContentBox); 16 RefPtr<ShapeValue> shape1 = ShapeValue::createBoxShapeValue(ContentBox);
20 RefPtr<ShapeValue> shape2 = ShapeValue::createBoxShapeValue(ContentBox); 17 RefPtr<ShapeValue> shape2 = ShapeValue::createBoxShapeValue(ContentBox);
21 RefPtr<ComputedStyle> style1 = ComputedStyle::create(); 18 RefPtr<ComputedStyle> style1 = ComputedStyle::create();
22 RefPtr<ComputedStyle> style2 = ComputedStyle::create(); 19 RefPtr<ComputedStyle> style2 = ComputedStyle::create();
23 style1->setShapeOutside(shape1); 20 style1->setShapeOutside(shape1);
24 style2->setShapeOutside(shape2); 21 style2->setShapeOutside(shape2);
25 ASSERT_EQ(*style1, *style2); 22 ASSERT_EQ(*style1, *style2);
(...skipping 17 matching lines...) Expand all
43 RefPtr<BasicShapeCircle> shape = BasicShapeCircle::create(); 40 RefPtr<BasicShapeCircle> shape = BasicShapeCircle::create();
44 RefPtr<ShapeClipPathOperation> path1 = ShapeClipPathOperation::create(shape) ; 41 RefPtr<ShapeClipPathOperation> path1 = ShapeClipPathOperation::create(shape) ;
45 RefPtr<ShapeClipPathOperation> path2 = ShapeClipPathOperation::create(shape) ; 42 RefPtr<ShapeClipPathOperation> path2 = ShapeClipPathOperation::create(shape) ;
46 RefPtr<ComputedStyle> style1 = ComputedStyle::create(); 43 RefPtr<ComputedStyle> style1 = ComputedStyle::create();
47 RefPtr<ComputedStyle> style2 = ComputedStyle::create(); 44 RefPtr<ComputedStyle> style2 = ComputedStyle::create();
48 style1->setClipPath(path1); 45 style1->setClipPath(path1);
49 style2->setClipPath(path2); 46 style2->setClipPath(path2);
50 ASSERT_EQ(*style1, *style2); 47 ASSERT_EQ(*style1, *style2);
51 } 48 }
52 49
53 } 50 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/shapes/BoxShapeTest.cpp ('k') | Source/core/style/OutlineValueTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698