/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
D | vector.h | 28 return NearEqual(x, other.x) && NearEqual(y, other.y); 40 return NearEqual(x, other.x) && NearEqual(y, other.y) && NearEqual(z, other.z); 53 …return NearEqual(x, other.x) && NearEqual(y, other.y) && NearEqual(z, other.z) && NearEqual(w, oth… 67 return NearEqual(x, other.x) && NearEqual(y, other.y) && NearEqual(z, other.z) && 68 NearEqual(w, other.w) && NearEqual(v, other.v);
|
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/progress/ |
D | progress_test_utils.h | 43 return NearEqual(value, diameter_); in CheckDiameter() 53 return NearEqual(value, scale_); in CheckScale() 58 return NearEqual(value, moveRatio_); in CheckMoveRatio() 63 return NearEqual(value, ringWidth_); in CheckRingWidth() 68 return NearEqual(value, ringRadius_); in CheckRingRadius() 73 return NearEqual(value, orbitRadius_); in CheckOrbitRadius() 78 return NearEqual(value, cometRadius_); in CheckCometRadius() 83 return NearEqual(value, cometTailLen_); in CheckCometTailLen() 93 return NearEqual(value, ringBgWidth_); in CheckRingBgWidth() 98 return NearEqual(value, ringBlurRadius_); in CheckRingBlurRadius() [all …]
|
D | progress_creator_test.cpp | 90 EXPECT_TRUE(NearEqual(min, JSON_MIN_VALUE)); in CompareAllProperty() 91 EXPECT_TRUE(NearEqual(max, JSON_MAX_VALUE)); in CompareAllProperty() 92 EXPECT_TRUE(NearEqual(cachedValue, JSON_CACHED_VALUE)); in CompareAllProperty() 93 EXPECT_TRUE(NearEqual(value, JSON_VALUE)); in CompareAllProperty() 102 EXPECT_TRUE(NearEqual(thickness, JSON_THICKNESS)); in CompareAllProperty() 111 EXPECT_TRUE(NearEqual(min, JSON_MIN_VALUE)); in CompareAllDefault() 112 EXPECT_TRUE(NearEqual(max, JSON_MAX_VALUE)); in CompareAllDefault() 113 EXPECT_TRUE(NearEqual(cachedValue, JSON_CACHED_VALUE)); in CompareAllDefault() 114 EXPECT_TRUE(NearEqual(value, JSON_VALUE)); in CompareAllDefault() 436 EXPECT_TRUE(NearEqual(loadingProgress->GetDiameter().Value(), JSON_DIAMETER)); [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/stack/ |
D | positioned_creator_test.cpp | 83 EXPECT_TRUE(NearEqual(top, 0)); in CheckItemProperties() 84 EXPECT_TRUE(NearEqual(bottom, 0)); in CheckItemProperties() 85 EXPECT_TRUE(NearEqual(left, 0)); in CheckItemProperties() 86 EXPECT_TRUE(NearEqual(right, 0)); in CheckItemProperties() 87 EXPECT_TRUE(NearEqual(width, 0)); in CheckItemProperties() 88 EXPECT_TRUE(NearEqual(height, 0)); in CheckItemProperties() 90 EXPECT_TRUE(NearEqual(top, TEST_TOP)); in CheckItemProperties() 91 EXPECT_TRUE(NearEqual(bottom, TEST_BOTTOM)); in CheckItemProperties() 92 EXPECT_TRUE(NearEqual(left, TEST_LEFT)); in CheckItemProperties() 93 EXPECT_TRUE(NearEqual(right, TEST_RIGHT)); in CheckItemProperties() [all …]
|
/foundation/arkui/ace_engine/frameworks/bridge/test/unittest/jsfrontend/slider/ |
D | dom_slider_test.cpp | 137 EXPECT_TRUE(NearEqual(padding->GetPadding().Left().Value(), TEST_PADDING_LEFT)); 138 EXPECT_TRUE(NearEqual(padding->GetPadding().Right().Value(), TEST_PADDING_RIGHT)); 139 EXPECT_TRUE(NearEqual(sliderComponent->GetMinValue(), TEST_MIN_VALUE)); 140 EXPECT_TRUE(NearEqual(sliderComponent->GetMaxValue(), TEST_MAX_VALUE)); 141 EXPECT_TRUE(NearEqual(sliderComponent->GetStep(), TEST_STEP_VALUE)); 142 EXPECT_TRUE(NearEqual(sliderComponent->GetValue(), TEST_VALUE_VALUE)); 177 EXPECT_TRUE(NearEqual(padding->GetPadding().Left().Value(), PADDING_DEFAULT)); 178 EXPECT_TRUE(NearEqual(padding->GetPadding().Right().Value(), PADDING_DEFAULT)); 179 EXPECT_TRUE(NearEqual(sliderComponent->GetMinValue(), MIN_DEFAULT)); 180 EXPECT_TRUE(NearEqual(sliderComponent->GetMaxValue(), MAX_DEFAULT)); [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/drag_bar/ |
D | drag_bar_test_utils.h | 35 if (!NearEqual(barLeftPoint_.GetY(), barCenterPoint_.GetY()) || in CheckPanelMode() 36 !NearEqual(barCenterPoint_.GetY(), barRightPoint_.GetY())) { in CheckPanelMode() 41 if (NearEqual(barLeftPoint_.GetY(), barCenterPoint_.GetY()) || in CheckPanelMode() 42 NearEqual(barCenterPoint_.GetY(), barRightPoint_.GetY())) { in CheckPanelMode() 56 return NearEqual(scaleX_, 1.0) && NearEqual(scaleY_, 1.0); in CheckScale()
|
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/text/ |
D | textspan_creator_test.cpp | 195 EXPECT_TRUE(NearEqual(textStyle.GetFontSize().Value(), FONT_SIZE)); 200 EXPECT_TRUE(NearEqual(textStyle.GetWordSpacing().Value(), WORD_SPACING)); 201 EXPECT_TRUE(NearEqual(textStyle.GetLetterSpacing().Value(), LETTER_SPACING)); 202 EXPECT_TRUE(NearEqual(textStyle.GetLineHeight().Value(), LINE_HEIGHT)); 206 EXPECT_TRUE(NearEqual(spanShadow.GetOffset().GetX(), OFFSET_DX)); 207 EXPECT_TRUE(NearEqual(spanShadow.GetOffset().GetY(), OFFSET_DY)); 208 EXPECT_TRUE(NearEqual(spanShadow.GetBlurRadius(), BLURRADIUS)); 240 EXPECT_TRUE(NearEqual(textStyle.GetFontSize().Value(), FONT_SIZE)); 245 EXPECT_TRUE(NearEqual(textStyle.GetWordSpacing().Value(), WORD_SPACING)); 246 EXPECT_TRUE(NearEqual(textStyle.GetLetterSpacing().Value(), LETTER_SPACING)); [all …]
|
D | textstyle_creator_test.cpp | 159 EXPECT_TRUE(NearEqual(textStyle.GetFontSize().Value(), FONT_SIZE)); 165 EXPECT_TRUE(NearEqual(textStyle.GetWordSpacing().Value(), WORD_SPACING.Value())); 167 EXPECT_TRUE(NearEqual(textStyle.GetLetterSpacing().Value(), LETTER_SPACING.Value())); 168 EXPECT_TRUE(NearEqual(textStyle.GetLineHeight().Value(), LINE_HEIGHT)); 172 EXPECT_TRUE(NearEqual(textShadow.GetOffset().GetX(), OFFSET_DX)); 173 EXPECT_TRUE(NearEqual(textShadow.GetOffset().GetY(), OFFSET_DY)); 174 EXPECT_TRUE(NearEqual(textShadow.GetBlurRadius(), SHADOW_BLUR_RADIUS)); 222 EXPECT_TRUE(NearEqual(textStyle.GetFontSize().Value(), FONT_SIZE)); 228 EXPECT_TRUE(NearEqual(textStyle.GetWordSpacing().Value(), WORD_SPACING.Value())); 230 EXPECT_TRUE(NearEqual(textStyle.GetLetterSpacing().Value(), LETTER_SPACING.Value())); [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/image/ |
D | image_creator_test.cpp | 91 ASSERT_TRUE(NearEqual(imageComponent->GetWidth().Value(), IMAGE_WIDTH_JSON)); 92 ASSERT_TRUE(NearEqual(imageComponent->GetHeight().Value(), IMAGE_HEIGHT_JSON)); 93 ASSERT_TRUE(NearEqual(imageComponent->GetAlignment().GetHorizontal(), LEFT)); 94 ASSERT_TRUE(NearEqual(imageComponent->GetAlignment().GetVertical(), TOP)); 129 ASSERT_TRUE(NearEqual(imageComponent->GetWidth().Value(), IMAGE_WIDTH_DEFAULT)); 130 ASSERT_TRUE(NearEqual(imageComponent->GetHeight().Value(), IMAGE_HEIGHT_DEFAULT)); 131 ASSERT_TRUE(NearEqual(imageComponent->GetAlignment().GetHorizontal(), ALIGNMENT_CENTER)); 132 ASSERT_TRUE(NearEqual(imageComponent->GetAlignment().GetVertical(), ALIGNMENT_CENTER)); 169 ASSERT_TRUE(NearEqual(imageComponent->GetWidth().Value(), IMAGE_WIDTH_DEFAULT)); 170 ASSERT_TRUE(NearEqual(imageComponent->GetHeight().Value(), IMAGE_HEIGHT_DEFAULT)); [all …]
|
/foundation/arkui/ace_engine/frameworks/base/geometry/ |
D | size.h | 37 return NearEqual(inputValue, INFINITE_SIZE); in IsValueInfinite() 78 return NearEqual(width_, INFINITE_SIZE); in IsWidthInfinite() 83 return NearEqual(height_, INFINITE_SIZE); in IsHeightInfinite() 88 return NearEqual(width_, INFINITE_SIZE) || NearEqual(height_, INFINITE_SIZE); in IsInfinite() 93 return NearEqual(width_, 0.0) || NearEqual(height_, 0.0); in IsEmpty() 150 return NearEqual(width_, size.width_) && NearEqual(height_, size.height_); 217 if (NearEqual(width_, INFINITE_SIZE)) { in ToString() 223 if (NearEqual(height_, INFINITE_SIZE)) { in ToString()
|
D | transform_util.h | 48 … return NearEqual(scaleX, other.scaleX, epsilon) && NearEqual(scaleY, other.scaleY, epsilon) && 49 NearEqual(scaleZ, other.scaleZ, epsilon); 63 return NearEqual(skewX, other.skewX) && NearEqual(skewY, other.skewY); 76 return NearEqual(dx, other.dx) && NearEqual(dy, other.dy) && NearEqual(dz, other.dz) && 77 NearEqual(angle, other.angle);
|
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/text_field/ |
D | dsl_text_field_style_creator_test.cpp | 139 EXPECT_TRUE(NearEqual(textStyle.GetFontSize().Value(), TEXT_FIELD_STYLE_FONT_SIZE)); 145 … EXPECT_TRUE(NearEqual(textStyle.GetWordSpacing().Value(), TEXT_FIELD_STYLE_WORD_SPACING.Value())); 147 …EXPECT_TRUE(NearEqual(textStyle.GetLetterSpacing().Value(), TEXT_FIELD_STYLE_LETTER_SPACING.Value(… 148 EXPECT_TRUE(NearEqual(textStyle.GetLineHeight().Value(), TEXT_FIELD_STYLE_LINE_HEIGHT)); 153 EXPECT_TRUE(NearEqual(textShadow.GetOffset().GetX(), TEXT_FIELD_STYLE_OFFSET_DX)); 154 EXPECT_TRUE(NearEqual(textShadow.GetOffset().GetY(), TEXT_FIELD_STYLE_OFFSET_DY)); 155 EXPECT_TRUE(NearEqual(textShadow.GetBlurRadius(), TEXT_FIELD_STYLE_BLURRADIUS)); 191 EXPECT_TRUE(NearEqual(textStyle.GetFontSize().Value(), TEXT_FIELD_STYLE_FONT_SIZE_DEFAULT)); 197 …EXPECT_TRUE(NearEqual(textStyle.GetWordSpacing().Value(), TEXT_FIELD_STYLE_WORD_SPACING_DEFAULT.Va… 199 …EXPECT_TRUE(NearEqual(textStyle.GetLetterSpacing().Value(), TEXT_FIELD_STYLE_LETTER_SPACING_DEFAUL… [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/align/ |
D | align_creator_test.cpp | 83 ASSERT_TRUE(NearEqual(alignComponent->GetAlignment().GetHorizontal(), LEFT)); 84 ASSERT_TRUE(NearEqual(alignComponent->GetAlignment().GetVertical(), TOP)); 120 ASSERT_TRUE(NearEqual(alignComponent->GetAlignment().GetHorizontal(), DEFAULT_CENTER)); 121 ASSERT_TRUE(NearEqual(alignComponent->GetAlignment().GetVertical(), DEFAULT_CENTER)); 157 ASSERT_TRUE(NearEqual(alignComponent->GetAlignment().GetHorizontal(), RIGHT)); 158 ASSERT_TRUE(NearEqual(alignComponent->GetAlignment().GetVertical(), BOTTOM)); 192 ASSERT_TRUE(NearEqual(alignComponent->GetAlignment().GetHorizontal(), DEFAULT_CENTER)); 193 ASSERT_TRUE(NearEqual(alignComponent->GetAlignment().GetVertical(), DEFAULT_CENTER));
|
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/box/ |
D | box_creator_test.cpp | 113 ASSERT_TRUE(NearEqual(box->GetWidthDimension().Value(), BOX_WIDTH)); 114 ASSERT_TRUE(NearEqual(box->GetHeightDimension().Value(), BOX_HEIGHT)); 115 ASSERT_TRUE(NearEqual(box->GetAlignment().GetHorizontal(), BOX_ALIGN)); 116 ASSERT_TRUE(NearEqual(box->GetAlignment().GetVertical(), BOX_ALIGN)); 152 ASSERT_TRUE(NearEqual(box->GetWidthDimension().Value(), BOX_WIDTH_DEFAULT)); 153 ASSERT_TRUE(NearEqual(box->GetHeightDimension().Value(), BOX_HEIGHT_DEFAULT)); 154 ASSERT_TRUE(NearEqual(box->GetAlignment().GetHorizontal(), BOX_ALIGN_DEFAULT)); 155 ASSERT_TRUE(NearEqual(box->GetAlignment().GetVertical(), BOX_ALIGN_DEFAULT));
|
/foundation/arkui/ace_engine/frameworks/base/utils/ |
D | utils.h | 124 inline bool NearEqual(const double left, const double right, const double epsilon) in NearEqual() function 130 constexpr bool NearEqual(const T& left, const T& right); 133 inline bool NearEqual<float>(const float& left, const float& right) 136 return NearEqual(left, right, epsilon); 140 inline bool NearEqual<double>(const double& left, const double& right) 143 return NearEqual(left, right, epsilon); 147 constexpr bool NearEqual(const T& left, const T& right) in NearEqual() function 154 return NearEqual(value, 0.0, epsilon); in NearZero() 157 inline bool NearEqual(const double left, const double right) in NearEqual() function 160 return NearEqual(left, right, epsilon); in NearEqual()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
D | transition_property.h | 62 …return NearEqual(xScale, other.xScale) && NearEqual(yScale, other.yScale) && NearEqual(zScale, oth… 63 NearEqual(centerX, other.centerX) && NearEqual(centerY, other.centerY); 90 return NearEqual(angle, other.angle) && NearEqual(xDirection, other.xDirection) && 91 NearEqual(yDirection, other.yDirection) && NearEqual(zDirection, other.zDirection) && 92 NearEqual(centerX, other.centerX) && NearEqual(centerY, other.centerY) && 93 NearEqual(centerZ, other.centerZ) && NearEqual(perspective, other.perspective); 118 return NearEqual(Type, other.Type) && NearEqual(propOpacity, other.propOpacity) && 119 … NearEqual(propTranslate, other.propTranslate) && NearEqual(propScale, other.propScale) && 120 NearEqual(propRotate, other.propRotate);
|
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/grid/ |
D | grid_creator_test.cpp | 82 ASSERT_TRUE(NearEqual(grid->GetWidth(), 800.0)); 83 ASSERT_TRUE(NearEqual(grid->GetHeight(), 1000.0)); 126 ASSERT_TRUE(NearEqual(grid->GetWidth(), -1.0)); 127 ASSERT_TRUE(NearEqual(grid->GetHeight(), -1.0)); 169 ASSERT_TRUE(NearEqual(grid->GetWidth(), -1.0)); 170 ASSERT_TRUE(NearEqual(grid->GetHeight(), -1.0)); 210 ASSERT_TRUE(NearEqual(grid->GetWidth(), -1.0)); 211 ASSERT_TRUE(NearEqual(grid->GetHeight(), -1.0)); 262 ASSERT_TRUE(NearEqual(grid->GetWidth(), -1.0)); 263 ASSERT_TRUE(NearEqual(grid->GetHeight(), -1.0)); [all …]
|
/foundation/arkui/ace_engine/frameworks/bridge/test/unittest/jsfrontend/domlabel/ |
D | dom_label_test.cpp | 95 …EXPECT_TRUE(NearEqual(textStyle.GetFontSize().Value(), theme->GetTextStyle().GetFontSize().Value()… 102 …EXPECT_TRUE(NearEqual(textStyle.GetLetterSpacing().Value(), theme->GetTextStyle().GetLetterSpacing… 171 EXPECT_TRUE(NearEqual(textStyle.GetFontSize().Value(), TEST_FONT_SIZE)); 174 EXPECT_TRUE(NearEqual(textStyle.GetLineHeight().Value(), TEST_LINE_HEIGHT)); 175 EXPECT_TRUE(NearEqual(static_cast<int32_t>(textStyle.GetFontStyle()), TEST_FONT_STYLE)); 176 … EXPECT_TRUE(NearEqual(static_cast<int32_t>(textStyle.GetTextDecoration()), TEST_TEXT_DECORATION)); 177 EXPECT_TRUE(NearEqual(textChild->GetTextStyle().GetMaxLines(), TEST_MAX_LINE)); 179 EXPECT_TRUE(NearEqual(textStyle.GetLetterSpacing().Value(), TEST_LETTER_SPACING.Value()));
|
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/clock/ |
D | render_clock_test.cpp | 136 ASSERT_TRUE(NearEqual(renderClock->digitSizeRatio_, VALID_DIGIT_SIZE_RATIO)); 137 ASSERT_TRUE(NearEqual(renderClock->digitRadiusRatio_, VALID_DIGIT_RADIUS_RATIO)); 138 ASSERT_TRUE(NearEqual(renderClock->renderClockHand_->hoursWest_, VALID_HOUR_WEST)); 143 ASSERT_TRUE(NearEqual(fontFamilies.size(), FONT_FAMILY_SIZE)); 178 ASSERT_TRUE(NearEqual(renderClock->digitSizeRatio_, DEFAULT_DIGIT_SIZE_RATIO)); 179 ASSERT_TRUE(NearEqual(renderClock->digitRadiusRatio_, DEFAULT_DIGIT_RADIUS_RATIO)); 180 ASSERT_TRUE(NearEqual(renderClock->renderClockHand_->hoursWest_, DEFAULT_HOUR_WEST)); 211 ASSERT_TRUE(NearEqual(renderClock->digitSizeRatio_, DEFAULT_DIGIT_SIZE_RATIO)); 212 ASSERT_TRUE(NearEqual(renderClock->digitRadiusRatio_, DEFAULT_DIGIT_RADIUS_RATIO));
|
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/list/ |
D | render_list_test_v2.cpp | 144 EXPECT_TRUE(NearEqual(renderList_->GetLayoutSize().Width(), 1000.0)); 153 EXPECT_TRUE(NearEqual(renderList_->GetLayoutSize().Width(), 1000.0)); 187 EXPECT_TRUE(NearEqual(renderList_->GetLayoutSize().Width(), 1000.0)); 196 EXPECT_TRUE(NearEqual(renderList_->GetLayoutSize().Width(), 1000.0)); 231 EXPECT_TRUE(NearEqual(renderList_->GetLayoutSize().Width(), 0)); 240 EXPECT_TRUE(NearEqual(renderList_->GetLayoutSize().Width(), 0)); 275 EXPECT_TRUE(NearEqual(renderList_->GetLayoutSize().Width(), 0)); 284 EXPECT_TRUE(NearEqual(renderList_->GetLayoutSize().Width(), 0));
|
/foundation/arkui/ace_engine/frameworks/core/components/web/ |
D | flutter_render_web.cpp | 43 if (NearEqual(prePosition_.GetX(), position_.GetX()) && in OnPaintFinish() 44 NearEqual(prePosition_.GetY(), position_.GetY()) && in OnPaintFinish() 45 NearEqual(preDrawSize_.Width(), drawSize_.Width()) && in OnPaintFinish() 46 NearEqual(preDrawSize_.Height(), drawSize_.Height())) { in OnPaintFinish()
|
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/slider/ |
D | slider_creator_test.cpp | 120 EXPECT_TRUE(NearEqual(value, JSON_VALUE)); in CompareAllEssential() 122 EXPECT_TRUE(NearEqual(minValue, JSON_MIN_VALUE)); in CompareAllEssential() 124 EXPECT_TRUE(NearEqual(maxValue, JSON_MAX_VALUE)); in CompareAllEssential() 126 EXPECT_TRUE(NearEqual(step, JSON_STEP)); in CompareAllEssential() 309 EXPECT_TRUE(NearEqual(value, JSON_VALUE)); 311 EXPECT_TRUE(NearEqual(minValue, JSON_MIN_VALUE)); 313 EXPECT_TRUE(NearEqual(maxValue, JSON_MAX_VALUE)); 315 EXPECT_TRUE(NearEqual(step, 0.0)); 593 EXPECT_TRUE(NearEqual(value, -1.0)); 595 EXPECT_TRUE(NearEqual(minValue, -10)); [all …]
|
/foundation/arkui/ace_engine/frameworks/bridge/test/unittest/jsfrontend/utils/ |
D | common_utils_test.cpp | 101 EXPECT_TRUE(NearEqual(stepsCurve->MoveInternal(0.0), ANIMATION_ONE_VALUE)); 102 EXPECT_TRUE(NearEqual(stepsCurve->MoveInternal(0.5), ANIMATION_ONE_VALUE)); 104 EXPECT_TRUE(NearEqual(stepsCurve->MoveInternal(0.0), ANIMATION_ZERO_VALUE)); 105 EXPECT_TRUE(NearEqual(stepsCurve->MoveInternal(1.0), ANIMATION_ONE_VALUE)); 112 EXPECT_TRUE(NearEqual(cubicCurve->MoveInternal(0.0), ANIMATION_CUBIC_VALUE_ONE)); 113 EXPECT_TRUE(NearEqual(cubicCurve->MoveInternal(0.5), ANIMATION_CUBIC_VALUE_TWO)); 115 EXPECT_TRUE(NearEqual(cubicCurve->MoveInternal(0.0), ANIMATION_CUBIC_VALUE_ONE)); 116 EXPECT_TRUE(NearEqual(cubicCurve->MoveInternal(1.0), ANIMATION_ONE_VALUE)); 133 EXPECT_TRUE(NearEqual(springCurve->MoveInternal(0.0), ANIMATION_ZERO_VALUE)); 134 EXPECT_TRUE(NearEqual(springCurve->MoveInternal(1.0), ANIMATION_SPRING_VALUE)); [all …]
|
/foundation/arkui/ace_engine/frameworks/bridge/test/unittest/jsfrontend/swiper/ |
D | dom_swiper_test.cpp | 178 EXPECT_TRUE(NearEqual(swiperComponent->GetAutoPlayInterval(), TEST_INTERVAL_VALUE)); 180 EXPECT_TRUE(NearEqual(swiperComponent->GetDuration(), TEST_DURATION_VALUE)); 184 EXPECT_TRUE(NearEqual(indicator->GetSize().Value(), TEST_INDICATOR_SIZE)); 185 EXPECT_TRUE(NearEqual(indicator->GetTop().Value(), TEST_INDICATOR_TOP)); 186 EXPECT_TRUE(NearEqual(indicator->GetLeft().Value(), TEST_INDICATOR_LEFT)); 187 EXPECT_TRUE(NearEqual(indicator->GetBottom().Value(), TEST_INDICATOR_BOTTOM)); 188 EXPECT_TRUE(NearEqual(indicator->GetRight().Value(), TEST_INDICATOR_RIGHT)); 286 EXPECT_TRUE(NearEqual(swiperComponent->GetAutoPlayInterval(), DEFAULT_INTERVAL_VALUE));
|
/foundation/arkui/ace_engine/frameworks/core/components/positioned/ |
D | render_positioned.cpp | 57 if (NearEqual(left_.Value(), left.Value()) && (left_.Unit() == left.Unit())) { in SetLeft() 67 if (NearEqual(top_.Value(), top.Value()) && (top_.Unit() == top.Unit())) { in SetTop() 77 if (NearEqual(right_.Value(), right.Value()) && (right_.Unit() == right.Unit())) { in SetRight() 87 if (NearEqual(bottom_.Value(), bottom.Value()) && (bottom_.Unit() == bottom.Unit())) { in SetBottom()
|