#include "third_party/blink/renderer/core/css/css_primitive_value.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/css/css_math_expression_node.h"
#include "third_party/blink/renderer/core/css/css_math_function_value.h"
#include "third_party/blink/renderer/core/css/css_numeric_literal_value.h"
#include "third_party/blink/renderer/core/css/css_test_helpers.h"
#include "third_party/blink/renderer/core/css/css_to_length_conversion_data.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
namespace blink {
namespace {
class CSSPrimitiveValueTest : public PageTestBase { … };
UnitType;
struct UnitValue { … };
CSSNumericLiteralValue* Create(UnitValue v) { … }
CSSPrimitiveValue* CreateAddition(UnitValue a, UnitValue b) { … }
CSSPrimitiveValue* CreateNonNegativeSubtraction(UnitValue a, UnitValue b) { … }
UnitType ToCanonicalUnit(CSSPrimitiveValue::UnitType unit) { … }
TEST_F(CSSPrimitiveValueTest, IsTime) { … }
TEST_F(CSSPrimitiveValueTest, IsTimeCalc) { … }
TEST_F(CSSPrimitiveValueTest, ClampTimeToNonNegative) { … }
TEST_F(CSSPrimitiveValueTest, ClampAngleToNonNegative) { … }
TEST_F(CSSPrimitiveValueTest, IsResolution) { … }
TEST_F(CSSPrimitiveValueTest, Zooming) { … }
TEST_F(CSSPrimitiveValueTest, PositiveInfinityLengthClamp) { … }
TEST_F(CSSPrimitiveValueTest, NegativeInfinityLengthClamp) { … }
TEST_F(CSSPrimitiveValueTest, NaNLengthClamp) { … }
TEST_F(CSSPrimitiveValueTest, PositiveInfinityPercentLengthClamp) { … }
TEST_F(CSSPrimitiveValueTest, NegativeInfinityPercentLengthClamp) { … }
TEST_F(CSSPrimitiveValueTest, NaNPercentLengthClamp) { … }
TEST_F(CSSPrimitiveValueTest, GetDoubleValueWithoutClampingAllowNaN) { … }
TEST_F(CSSPrimitiveValueTest,
GetDoubleValueWithoutClampingAllowPositveInfinity) { … }
TEST_F(CSSPrimitiveValueTest,
GetDoubleValueWithoutClampingAllowNegativeInfinity) { … }
TEST_F(CSSPrimitiveValueTest, GetDoubleValueClampNaN) { … }
TEST_F(CSSPrimitiveValueTest, GetDoubleValueClampPositiveInfinity) { … }
TEST_F(CSSPrimitiveValueTest, GetDoubleValueClampNegativeInfinity) { … }
TEST_F(CSSPrimitiveValueTest, TestCanonicalizingNumberUnitCategory) { … }
TEST_F(CSSPrimitiveValueTest, HasContainerRelativeUnits) { … }
TEST_F(CSSPrimitiveValueTest, HasStaticViewportUnits) { … }
TEST_F(CSSPrimitiveValueTest, HasDynamicViewportUnits) { … }
TEST_F(CSSPrimitiveValueTest, ComputeMethodsWithLengthResolver) { … }
TEST_F(CSSPrimitiveValueTest, ContainerProgressTreeScope) { … }
TEST_F(CSSPrimitiveValueTest, CSSPrimitiveValueOperations) { … }
TEST_F(CSSPrimitiveValueTest, ComputeValueToCanonicalUnit) { … }
}
}