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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSCalculationValueTest.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 style->effectiveZoom()); 85 style->effectiveZoom());
86 86
87 testAccumulatePixelsAndPercent( 87 testAccumulatePixelsAndPercent(
88 conversionData, 88 conversionData,
89 CSSCalcValue::createExpressionNode( 89 CSSCalcValue::createExpressionNode(
90 CSSPrimitiveValue::create(10, CSSPrimitiveValue::UnitType::Pixels), 90 CSSPrimitiveValue::create(10, CSSPrimitiveValue::UnitType::Pixels),
91 true), 91 true),
92 50, 0); 92 50, 0);
93 93
94 testAccumulatePixelsAndPercent( 94 testAccumulatePixelsAndPercent(
95 conversionData, CSSCalcValue::createExpressionNode( 95 conversionData,
96 CSSCalcValue::createExpressionNode( 96 CSSCalcValue::createExpressionNode(
97 CSSPrimitiveValue::create( 97 CSSCalcValue::createExpressionNode(
98 10, CSSPrimitiveValue::UnitType::Pixels), 98 CSSPrimitiveValue::create(10,
99 true), 99 CSSPrimitiveValue::UnitType::Pixels),
100 CSSCalcValue::createExpressionNode( 100 true),
101 CSSPrimitiveValue::create( 101 CSSCalcValue::createExpressionNode(
102 20, CSSPrimitiveValue::UnitType::Pixels), 102 CSSPrimitiveValue::create(20,
103 true), 103 CSSPrimitiveValue::UnitType::Pixels),
104 CalcAdd), 104 true),
105 CalcAdd),
105 150, 0); 106 150, 0);
106 107
107 testAccumulatePixelsAndPercent( 108 testAccumulatePixelsAndPercent(
108 conversionData, 109 conversionData,
109 CSSCalcValue::createExpressionNode( 110 CSSCalcValue::createExpressionNode(
110 CSSCalcValue::createExpressionNode( 111 CSSCalcValue::createExpressionNode(
111 CSSPrimitiveValue::create(1, CSSPrimitiveValue::UnitType::Inches), 112 CSSPrimitiveValue::create(1, CSSPrimitiveValue::UnitType::Inches),
112 true), 113 true),
113 CSSCalcValue::createExpressionNode( 114 CSSCalcValue::createExpressionNode(
114 CSSPrimitiveValue::create(2, CSSPrimitiveValue::UnitType::Number), 115 CSSPrimitiveValue::create(2, CSSPrimitiveValue::UnitType::Number),
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 expectation.values.at(CSSPrimitiveValue::UnitTypePercentage) = -40; 214 expectation.values.at(CSSPrimitiveValue::UnitTypePercentage) = -40;
214 EXPECT_TRUE(lengthArraysEqual( 215 EXPECT_TRUE(lengthArraysEqual(
215 expectation, 216 expectation,
216 setLengthArray( 217 setLengthArray(
217 actual, "calc((1 * 2) * (5px + 20em / 2) - 80% / (3 - 1) + 5px)"))); 218 actual, "calc((1 * 2) * (5px + 20em / 2) - 80% / (3 - 1) + 5px)")));
218 } 219 }
219 220
220 } // anonymous namespace 221 } // anonymous namespace
221 222
222 } // namespace blink 223 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCalculationValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSGroupingRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698