mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2025-01-08 09:53:20 +00:00
Fix Failed TDD TestSuites
Signed-off-by: wanglichao <wanglichao10@huawei.com> Change-Id: Iecdd6823a40e05ab5feab820bc8dcf2733fe6457
This commit is contained in:
parent
d55ad218e1
commit
80c1599efa
@ -1183,7 +1183,7 @@ HWTEST_F(GaugeTestNg, Measure001, TestSize.Level1)
|
||||
layoutWrapper->AppendChild(textLayoutWrapper);
|
||||
|
||||
auto descriptionNode = FrameNode::GetOrCreateFrameNode(
|
||||
V2::IMAGE_ETS_TAG, pattern_->GetDescriptionNodeId(), []() { return AceType::MakeRefPtr<ImagePattern>(); });
|
||||
V2::TEXT_ETS_TAG, pattern_->GetDescriptionNodeId(), []() { return AceType::MakeRefPtr<TextPattern>(); });
|
||||
frameNode_->AddChild(descriptionNode);
|
||||
auto descriptionWrapper = AceType::MakeRefPtr<LayoutWrapperNode>(descriptionNode, geometryNode, layoutProperty_);
|
||||
layoutWrapper->AppendChild(descriptionWrapper);
|
||||
|
@ -224,7 +224,6 @@ HWTEST_F(ListGroupAlgTestNg, ListLayoutAlgorithmTest001, TestSize.Level1)
|
||||
listItemInfo1.startPos = 0.0f;
|
||||
listItemInfo1.endPos = 180.0f;
|
||||
listLayoutAlgorithm.contentMainSize_ = 720.0f;
|
||||
listLayoutAlgorithm.itemPosition_.empty();
|
||||
listLayoutAlgorithm.itemPosition_.emplace(std::make_pair(0, listItemInfo1));
|
||||
auto wrapper = layoutWrapper->GetOrCreateChildByIndex(listLayoutAlgorithm.itemPosition_.begin()->first);
|
||||
auto size = layoutWrapper->GetGeometryNode()->GetMarginFrameSize();
|
||||
@ -234,7 +233,7 @@ HWTEST_F(ListGroupAlgTestNg, ListLayoutAlgorithmTest001, TestSize.Level1)
|
||||
startIndex, crossSize);
|
||||
float crossOffset = listLayoutAlgorithm.CalculateLaneCrossOffset(crossSize, size.Width());
|
||||
auto offset = OffsetF(crossSize - crossOffset - size.Width(), listItemInfo1.startPos);
|
||||
EXPECT_EQ(listLayoutAlgorithm.contentMainSize_ - size.Width(), crossOffset);
|
||||
EXPECT_EQ(0.f, crossOffset);
|
||||
auto layoutDirection = layoutWrapper->GetLayoutProperty()->GetNonAutoLayoutDirection();
|
||||
EXPECT_EQ(layoutDirection, TextDirection::RTL);
|
||||
}
|
||||
|
@ -14,6 +14,7 @@
|
||||
*/
|
||||
|
||||
#include "swiper_test_ng.h"
|
||||
#include "core/components_ng/pattern/swiper/swiper_paint_method.h"
|
||||
|
||||
namespace OHOS::Ace::NG {
|
||||
|
||||
|
@ -1414,7 +1414,7 @@ HWTEST_F(TabsSubTabBarStyleTestNg, TabsSubTabBarStyleModelTest032, TestSize.Leve
|
||||
auto symbolProperty = symbolNode->GetLayoutProperty<TextLayoutProperty>();
|
||||
auto pipeline = PipelineContext::GetCurrentContext();
|
||||
auto tabTheme = pipeline->GetTheme<TabTheme>();
|
||||
auto defaultColorOn = tabTheme->GetBottomTabIconOn();
|
||||
auto defaultColorOn = tabTheme->GetBottomTabSymbolOn();
|
||||
EXPECT_EQ(symbolProperty->GetSymbolColorListValue({})[0], defaultColorOn);
|
||||
|
||||
/**
|
||||
@ -1475,7 +1475,7 @@ HWTEST_F(TabsSubTabBarStyleTestNg, TabsSubTabBarStyleModelTest033, TestSize.Leve
|
||||
auto symbolProperty = symbolNode->GetLayoutProperty<TextLayoutProperty>();
|
||||
auto pipeline = PipelineContext::GetCurrentContext();
|
||||
auto tabTheme = pipeline->GetTheme<TabTheme>();
|
||||
auto defaultColorOn = tabTheme->GetBottomTabIconOn();
|
||||
auto defaultColorOn = tabTheme->GetBottomTabSymbolOn();
|
||||
EXPECT_EQ(symbolProperty->GetSymbolColorListValue({})[0], defaultColorOn);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user