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

Unified Diff: Source/core/css/CSSCalculationValueTest.cpp

Issue 641343004: Don't use nonstandard %% dimension in unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/animation/LengthStyleInterpolationTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSCalculationValueTest.cpp
diff --git a/Source/core/css/CSSCalculationValueTest.cpp b/Source/core/css/CSSCalculationValueTest.cpp
index c7614b41a24c73367529e9c6688080bce14d5755..b3e553024f1cb8a7809c0e7e4d6c9a4a5413dfb1 100644
--- a/Source/core/css/CSSCalculationValueTest.cpp
+++ b/Source/core/css/CSSCalculationValueTest.cpp
@@ -179,20 +179,20 @@ TEST(CSSCalculationValue, AddToLengthUnitValues)
expectation.at(CSSPrimitiveValue::UnitTypePixels) = 0;
expectation.at(CSSPrimitiveValue::UnitTypePercentage) = 20;
- EXPECT_TRUE(lengthArraysEqual(expectation, setLengthArray(actual, "20%%")));
+ EXPECT_TRUE(lengthArraysEqual(expectation, setLengthArray(actual, "20%")));
expectation.at(CSSPrimitiveValue::UnitTypePixels) = 30;
expectation.at(CSSPrimitiveValue::UnitTypePercentage) = -40;
- EXPECT_TRUE(lengthArraysEqual(expectation, setLengthArray(actual, "calc(30px - 40%%)")));
+ EXPECT_TRUE(lengthArraysEqual(expectation, setLengthArray(actual, "calc(30px - 40%)")));
expectation.at(CSSPrimitiveValue::UnitTypePixels) = 90;
expectation.at(CSSPrimitiveValue::UnitTypePercentage) = 10;
- EXPECT_TRUE(lengthArraysEqual(expectation, setLengthArray(actual, "calc(1in + 10%% - 6px)")));
+ EXPECT_TRUE(lengthArraysEqual(expectation, setLengthArray(actual, "calc(1in + 10% - 6px)")));
expectation.at(CSSPrimitiveValue::UnitTypePixels) = 15;
expectation.at(CSSPrimitiveValue::UnitTypeFontSize) = 20;
expectation.at(CSSPrimitiveValue::UnitTypePercentage) = -40;
- EXPECT_TRUE(lengthArraysEqual(expectation, setLengthArray(actual, "calc((1 * 2) * (5px + 20em / 2) - 80%% / (3 - 1) + 5px)")));
+ EXPECT_TRUE(lengthArraysEqual(expectation, setLengthArray(actual, "calc((1 * 2) * (5px + 20em / 2) - 80% / (3 - 1) + 5px)")));
}
}
« no previous file with comments | « Source/core/animation/LengthStyleInterpolationTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698