Searched refs:LIST_WIDTH (Results 1 – 8 of 8) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/list/ |
H A D | list_group_algorithm_test_ng.cpp | 584 model.SetLaneMaxLength(Dimension(LIST_WIDTH + 100.f)); 588 EXPECT_EQ(GetChildWidth(frameNode_, 0), LIST_WIDTH); 602 EXPECT_EQ(GetChildWidth(frameNode_, 0), LIST_WIDTH); 628 EXPECT_EQ(GetChildWidth(groupNode, HEADER_INDEX), LIST_WIDTH); 642 const float itemWidth = LIST_WIDTH - 100.f; 664 EXPECT_EQ(GetChildX(groupNode, 0), LIST_WIDTH - itemWidth); 678 const float itemWidth = LIST_WIDTH - 100.f; 686 EXPECT_EQ(GetChildX(groupNode, 0), LIST_WIDTH - itemWidth); 935 EXPECT_EQ(GetChildX(groupNode, 9 + 1), LIST_WIDTH / 2); 952 EXPECT_EQ(GetChildX(groupNode, 3 + 1), LIST_WIDTH / 2); [all …]
|
H A D | list_layout_test_ng.cpp | 73 DrawingContext drawingContext = { canvas, LIST_WIDTH, LIST_HEIGHT }; in PaintDivider() 738 itemDivider.startMargin = Dimension(LIST_WIDTH / 2); 739 itemDivider.endMargin = Dimension(LIST_WIDTH / 2); 752 itemDivider.startMargin = Dimension(LIST_WIDTH / 2); 753 itemDivider.endMargin = Dimension(LIST_WIDTH / 2 + 1); 796 { Dimension(10), Dimension(LIST_WIDTH), Dimension(LIST_WIDTH) }, 810 EXPECT_EQ(child.second.length, LIST_WIDTH); 1325 Rect(0, -ITEM_HEIGHT * 2, LIST_WIDTH, ITEM_HEIGHT * TOTAL_ITEM_NUMBER))); 1613 EXPECT_EQ(GetChildX(frameNode_, 9), LIST_WIDTH / 2); 1630 EXPECT_EQ(GetChildX(frameNode_, 3), LIST_WIDTH / 2); [all …]
|
H A D | list_swipe_test_ng.cpp | 43 const RectF itemNodeInitialRect = RectF(0, 0, LIST_WIDTH, ITEM_HEIGHT); 44 const RectF itemNodeSwipeStartRect = RectF(START_NODE_LEN, 0, LIST_WIDTH, ITEM_HEIGHT); 163 const RectF itemNodeInitialRect = RectF(0, 0, LIST_WIDTH, ITEM_HEIGHT); 164 const RectF itemNodeSwipeEndRect = RectF(-END_NODE_LEN, 0, LIST_WIDTH, ITEM_HEIGHT); 218 expectEndNodeRect = RectF(LIST_WIDTH - END_NODE_LEN, 0, END_NODE_LEN, ITEM_HEIGHT); 232 expectEndNodeRect = RectF(LIST_WIDTH - END_NODE_LEN, 0, END_NODE_LEN, ITEM_HEIGHT); 260 expectEndNodeRect = RectF(LIST_WIDTH - END_NODE_LEN, 0, END_NODE_LEN, ITEM_HEIGHT); 1352 EXPECT_FALSE(listItemPattern->ClickJudge(PointF(LIST_WIDTH - 10.f, 10.f))); 1353 EXPECT_TRUE(listItemPattern->ClickJudge(PointF(LIST_WIDTH + 10.f, 10.f))); 1387 EXPECT_FALSE(listItemPattern->ClickJudge(PointF(LIST_WIDTH - 10.f, 10.f))); [all …]
|
H A D | list_attr_test_ng.cpp | 674 model.SetLaneMinLength(Dimension(LIST_WIDTH / 2 - 1)); 675 model.SetLaneMaxLength(Dimension(LIST_WIDTH)); 694 const float minLaneLength = LIST_WIDTH / 2 - 1; 743 double gutter = laneGutter.ConvertToPxWithSize(LIST_WIDTH); 778 const float itemWidth = LIST_WIDTH / 2; 791 EXPECT_EQ(GetChildX(frameNode_, 0), (LIST_WIDTH - itemWidth) / 2); 799 EXPECT_EQ(GetChildX(frameNode_, 0), LIST_WIDTH - itemWidth); 814 const float itemWidth = LIST_WIDTH / 2; 819 EXPECT_EQ(GetChildX(frameNode_, 0), LIST_WIDTH - itemWidth); 827 EXPECT_EQ(GetChildX(frameNode_, 0), (LIST_WIDTH - itemWidth) / 2);
|
H A D | list_scroller_test_ng.cpp | 1229 …EXPECT_TRUE(IsEqual(controller->GetItemRect(0), Rect(0, 0, FILL_LENGTH.Value() * LIST_WIDTH, group… 1242 …controller->GetItemRectInGroup(0, j), Rect(0, itemY, FILL_LENGTH.Value() * LIST_WIDTH, ITEM_HEIGHT… 1287 …IsEqual(controller->GetItemRect(i), Rect(0, groupY, FILL_LENGTH.Value() * LIST_WIDTH, groupHeight)… 1300 …troller->GetItemRectInGroup(i, j), Rect(0, itemY, FILL_LENGTH.Value() * LIST_WIDTH, ITEM_HEIGHT))); 1741 EXPECT_TRUE(IsEqual(pattern_->GetItemRect(3), Rect(0, 0, LIST_WIDTH, LIST_HEIGHT))); 1748 …EXPECT_TRUE(IsEqual(pattern_->GetItemRect(0), Rect(0, -LIST_HEIGHT / 2.0, LIST_WIDTH, LIST_HEIGHT)… 1755 …EXPECT_TRUE(IsEqual(pattern_->GetItemRect(3), Rect(0, -LIST_HEIGHT / 2.0, LIST_WIDTH, LIST_HEIGHT)… 1761 EXPECT_TRUE(IsEqual(pattern_->GetItemRect(1), Rect(0, 0, LIST_WIDTH, LIST_HEIGHT))); 1805 …Rect activeRectBot = Rect(LIST_WIDTH, LIST_HEIGHT - activeRectInit.Height(), 0, activeRectInit.Hei… 1844 …Rect activeRectBot = Rect(LIST_WIDTH, LIST_HEIGHT - activeRectInit.Height(), 0, activeRectInit.Hei… [all …]
|
H A D | list_common_test_ng.cpp | 578 MouseSelect(Offset(0.f, 0.f), Offset(LIST_WIDTH, 50.f)); 587 MouseSelect(Offset(0.f, 50.f), Offset(LIST_WIDTH, 150.f)); 595 MouseSelect(Offset(0.f, 150.f), Offset(LIST_WIDTH, 170.f)); 605 MouseSelect(Offset(LIST_WIDTH / 2, 150.f), Offset(LIST_WIDTH / 2, 150.f)); 612 MouseSelect(Offset(LIST_WIDTH / 2, 50.f), Offset(LIST_WIDTH / 2, 50.f)); 1043 info.SetGlobalPoint(Point(LIST_WIDTH + 1.f, LIST_HEIGHT));
|
H A D | list_test_ng.h | 31 constexpr float LIST_WIDTH = 240.f; variable
|
H A D | list_test_ng.cpp | 97 ViewAbstract::SetWidth(CalcLength(LIST_WIDTH)); in CreateList() 576 …layoutProperty->UpdateUserDefinedIdealSize(CalcSize(CalcLength(LIST_WIDTH), CalcLength(LIST_HEIGHT… in CreateCustomNode()
|