#include "third_party/blink/renderer/platform/geometry/length.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/geometry/calculation_expression_node.h"
#include "third_party/blink/renderer/platform/geometry/calculation_value.h"
namespace blink {
namespace {
const PixelsAndPercent ten_px(10,
0,
true,
true);
const PixelsAndPercent twenty_px(20,
0,
true,
true);
const PixelsAndPercent thirty_px(30,
0,
true,
true);
const PixelsAndPercent ten_percent(0,
10,
true,
true);
const PixelsAndPercent twenty_percent(0,
20,
true,
true);
const PixelsAndPercent thirty_percent(0,
30,
true,
true);
const PixelsAndPercent twenty_px_ten_percent(20,
10,
true,
true);
}
class LengthTest : public ::testing::Test { … };
TEST_F(LengthTest, EvaluateSimpleComparison) { … }
TEST_F(LengthTest, EvaluateNestedComparisons) { … }
TEST_F(LengthTest, EvaluateAdditive) { … }
TEST_F(LengthTest, EvaluateMultiplicative) { … }
TEST_F(LengthTest, EvaluateClamp) { … }
TEST_F(LengthTest, BlendExpressions) { … }
TEST_F(LengthTest, ZoomExpression) { … }
TEST_F(LengthTest, SubtractExpressionFromOneHundredPercent) { … }
TEST_F(LengthTest, SimplifiedExpressionFromComparisonCreation) { … }
TEST_F(LengthTest, MultiplyPixelsAndPercent) { … }
TEST_F(LengthTest, ZoomToOperation) { … }
TEST_F(LengthTest, Add) { … }
}