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

Side by Side Diff: Source/core/style/OutlineValueTest.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/style/ComputedStyleTest.cpp ('k') | Source/core/style/SVGComputedStyleTest.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/OutlineValue.h" 6 #include "core/style/OutlineValue.h"
7 7
8 #include <gtest/gtest.h> 8 #include <gtest/gtest.h>
9 9
10 using namespace blink; 10 namespace blink {
11
12 namespace {
13 11
14 TEST(OutlineValueTest, VisuallyEqualStyle) 12 TEST(OutlineValueTest, VisuallyEqualStyle)
15 { 13 {
16 OutlineValue outline1; 14 OutlineValue outline1;
17 OutlineValue outline2; 15 OutlineValue outline2;
18 16
19 // Outlines visually equal if their styles are all BNONE. 17 // Outlines visually equal if their styles are all BNONE.
20 EXPECT_TRUE(outline1.visuallyEqual(outline2)); 18 EXPECT_TRUE(outline1.visuallyEqual(outline2));
21 outline2.setOffset(10); 19 outline2.setOffset(10);
22 EXPECT_TRUE(outline1.visuallyEqual(outline2)); 20 EXPECT_TRUE(outline1.visuallyEqual(outline2));
(...skipping 28 matching lines...) Expand all
51 outline2.setStyle(DOTTED); 49 outline2.setStyle(DOTTED);
52 EXPECT_TRUE(outline1.visuallyEqual(outline2)); 50 EXPECT_TRUE(outline1.visuallyEqual(outline2));
53 51
54 outline1.setIsAuto(AUTO_ON); 52 outline1.setIsAuto(AUTO_ON);
55 EXPECT_FALSE(outline1.visuallyEqual(outline2)); 53 EXPECT_FALSE(outline1.visuallyEqual(outline2));
56 54
57 outline2.setIsAuto(AUTO_ON); 55 outline2.setIsAuto(AUTO_ON);
58 EXPECT_TRUE(outline1.visuallyEqual(outline2)); 56 EXPECT_TRUE(outline1.visuallyEqual(outline2));
59 } 57 }
60 58
61 } 59 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/style/ComputedStyleTest.cpp ('k') | Source/core/style/SVGComputedStyleTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698