Home
last modified time | relevance | path

Searched refs:GetChildRect (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/list/
H A Dlist_swipe_test_ng.cpp68 itemNodeRect = GetChildRect(listItem, itemNodeIndex);
82 itemNodeRect = GetChildRect(listItem, itemNodeIndex);
97 itemNodeRect = GetChildRect(listItem, itemNodeIndex);
111 itemNodeRect = GetChildRect(listItem, itemNodeIndex);
125 itemNodeRect = GetChildRect(listItem, itemNodeIndex);
187 endNodeRect = GetChildRect(listItem, endNodeIndex);
201 endNodeRect = GetChildRect(listItem, endNodeIndex);
216 endNodeRect = GetChildRect(listItem, endNodeIndex);
230 endNodeRect = GetChildRect(listItem, endNodeIndex);
244 endNodeRect = GetChildRect(listItem, endNodeIndex);
[all …]
H A Dlist_layout_test_ng.cpp342 auto rect = GetChildRect(frameNode_, index);
380 auto item1Rect = GetChildRect(group1, 2);
386 auto item2Rect = GetChildRect(group1, 3);
393 item1Rect = GetChildRect(group1, 2);
399 item2Rect = GetChildRect(group1, 3);
431 auto header0Rect = GetChildRect(group0, 0);
436 auto footer1Rect = GetChildRect(group1, 1);
446 auto item1Rect = GetChildRect(group1, 2);
452 auto item2Rect = GetChildRect(group2, 3);
458 item1Rect = GetChildRect(group1, 2);
[all …]
H A Dlist_group_algorithm_test_ng.cpp177 RectF groupRect = GetChildRect(frameNode_, 0);
178 RectF headRect = GetChildRect(groupNode, HEADER_INDEX);
179 RectF firstItemRect = GetChildRect(groupNode, FOOTER_INDEX + 1);
180 RectF secondItemRect = GetChildRect(groupNode, FOOTER_INDEX + 2);
181 RectF footRect = GetChildRect(groupNode, FOOTER_INDEX);
201 RectF groupRect = GetChildRect(frameNode_, 0);
202 RectF headRect = GetChildRect(groupNode, 0);
203 RectF firstItemRect = GetChildRect(groupNode, FOOTER_INDEX + 1);
204 RectF secondItemRect = GetChildRect(groupNode, FOOTER_INDEX + 2);
205 RectF footRect = GetChildRect(groupNode, 1);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/scroll_bar/
H A Dscroll_bar_layout_test_ng.cpp46 EXPECT_TRUE(IsEqual(GetChildRect(stackNode_, 0), RectF(0, 0, SCROLL_WIDTH, SCROLL_HEIGHT)));
47 EXPECT_TRUE(IsEqual(GetChildRect(stackNode_, 1),
61 EXPECT_TRUE(IsEqual(GetChildRect(stackNode_, 0), RectF(0, 0, SCROLL_WIDTH, SCROLL_HEIGHT)));
63 …IsEqual(GetChildRect(stackNode_, 1), RectF(0, SCROLL_HEIGHT - DEFAULT_HEIGHT, SCROLL_WIDTH, DEFAUL…
75 EXPECT_TRUE(IsEqual(GetChildRect(stackNode_, 0), RectF(0, 0, SCROLL_WIDTH, SCROLL_HEIGHT)));
76 EXPECT_TRUE(IsEqual(GetChildRect(stackNode_, 1),
H A Dscroll_bar_event_test_ng.cpp74 EXPECT_TRUE(IsEqual(GetChildRect(stackNode_, 0), RectF(0, 0, SCROLL_WIDTH, SCROLL_HEIGHT)));
75 …EXPECT_TRUE(IsEqual(GetChildRect(stackNode_, 1), RectF(460.f, 0, SCROLL_BAR_CHILD_WIDTH, SCROLL_HE…
214 EXPECT_TRUE(IsEqual(GetChildRect(stackNode_, 0), RectF(0, 0, SCROLL_WIDTH, SCROLL_HEIGHT)));
215 …EXPECT_TRUE(IsEqual(GetChildRect(stackNode_, 1), RectF(0.f, 780.f, SCROLL_WIDTH, SCROLL_BAR_CHILD_…
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/
H A Dgrid_option_layout_test_ng.cpp696 EXPECT_EQ(GetChildRect(frameNode_, 0), RectF(0.f, ITEM_HEIGHT * 0, ITEM_WIDTH, ITEM_HEIGHT));
697 EXPECT_EQ(GetChildRect(frameNode_, 1), RectF(0.f, ITEM_HEIGHT * 1, GRID_WIDTH, ITEM_HEIGHT));
698 EXPECT_EQ(GetChildRect(frameNode_, 2), RectF(0.f, ITEM_HEIGHT * 2, ITEM_WIDTH, ITEM_HEIGHT));
700 EXPECT_EQ(GetChildRect(frameNode_, 4), RectF(0.f, ITEM_HEIGHT * 3, GRID_WIDTH, ITEM_HEIGHT));
701 EXPECT_EQ(GetChildRect(frameNode_, 5), RectF()); // out of view
777 EXPECT_EQ(GetChildRect(frameNode_, 0), RectF(0.f, ITEM_HEIGHT * 0, GRID_WIDTH, ITEM_HEIGHT));
778 EXPECT_EQ(GetChildRect(frameNode_, 1), RectF(0.f, ITEM_HEIGHT * 1, GRID_WIDTH, ITEM_HEIGHT));
781 EXPECT_EQ(GetChildRect(frameNode_, 4), RectF(0.f, ITEM_HEIGHT * 3, GRID_WIDTH, ITEM_HEIGHT));
782 EXPECT_EQ(GetChildRect(frameNode_, 5), RectF()); // out of view
800 EXPECT_EQ(GetChildRect(frameNode_, 29).Bottom(), GRID_HEIGHT);
[all …]
H A Dgrid_cache_layout_test_ng.cpp122 RectF childRect = GetChildRect(frameNode_, index);
152 RectF childRect = GetChildRect(frameNode_, index);
188 RectF childRect = GetChildRect(frameNode_, index);
H A Dgrid_layout_test_ng.cpp212 RectF childRect = GetChildRect(frameNode_, index);
1290 RectF childRect = GetChildRect(frameNode_, index);
1322 RectF childRect = GetChildRect(frameNode_, index);
1355 RectF childRect = GetChildRect(frameNode_, index);
1387 RectF childRect = GetChildRect(frameNode_, index);
1420 RectF childRect = GetChildRect(frameNode_, index);
1444 RectF childRect = GetChildRect(frameNode_, index);
1468 RectF childRect = GetChildRect(frameNode_, index);
1579 RectF childRect = GetChildRect(frameNode_, index);
1608 RectF childRect = GetChildRect(frameNode_, index);
[all …]
H A Dgrid_attr_test_ng.cpp33 return IsEqual(GetChildRect(frameNode_, index), expectRect); in VerifyBigItemRect()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/
H A Dtest_ng.h170 RectF GetChildRect(const RefPtr<FrameNode>& frameNode, int32_t index) in GetChildRect() function
187 return GetChildRect(frameNode, index).GetX(); in GetChildX()
192 return GetChildRect(frameNode, index).GetY(); in GetChildY()
197 return GetChildRect(frameNode, index).Width(); in GetChildWidth()
202 return GetChildRect(frameNode, index).Height(); in GetChildHeight()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/waterflow/
H A Dwater_flow_sw_layout_test.cpp81 EXPECT_EQ(GetChildRect(frameNode_, 100).Bottom(), 750.0f);
83 UpdateCurrentOffset(50.0f + GetChildRect(frameNode_, 100).Height() + 1.0f);
570 EXPECT_EQ(GetChildRect(frameNode_, 1).Bottom(), 53.0f);
752 … ASSERT_EQ(GetChildRect(frameNode_, endItems[i] + 1).Bottom(), info_->lanes_[0][i].endPos);
790 ASSERT_EQ(GetChildRect(frameNode_, i).Bottom(),
792 ASSERT_EQ(GetChildRect(frameNode_, i).Bottom(), info_->lanes_[0][i].endPos);
H A Dwater_flow_segment_common_test.cpp129 EXPECT_EQ(GetChildRect(frameNode_, 69).Bottom(), 600.0f);
468 EXPECT_EQ(GetChildRect(frameNode_, 9).Bottom(), 400.0f);
574 EXPECT_EQ(GetChildRect(frameNode_, 14).Height(), 300.0f);
853 EXPECT_EQ(GetChildRect(frameNode_, 36).Bottom(), 400.0f);
855 EXPECT_EQ(GetChildRect(frameNode_, 36).Bottom(), 390.0f);
H A Dwater_flow_scroller_test_ng.cpp657 EXPECT_EQ(GetChildRect(frameNode_, 11).Bottom(), WATER_FLOW_HEIGHT);
H A Dwater_flow_test_ng.cpp1459 auto footerRect = GetChildRect(frameNode_, pattern_->layoutInfo_->footerIndex_);
1885 EXPECT_TRUE(IsEqual(GetChildRect(frameNode_, 2), RectF(3, 111, 237, 100)));
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
H A Dswiper_arrow_test_ng.cpp667 EXPECT_TRUE(IsEqual(GetChildRect(frameNode_, 5), RectF(165.f, 772.01f, 24.f, 24.f)));
705 EXPECT_TRUE(IsEqual(GetChildRect(frameNode_, 6), RectF(440.f, 384.f, 32.f, 32.f)));
737 EXPECT_TRUE(IsEqual(GetChildRect(frameNode_, 5), RectF(448.01f, 317.f, 32.f, 32.f)));
769 EXPECT_TRUE(IsEqual(GetChildRect(frameNode_, 6), RectF(224.f, 760.f, 32.f, 32.f)));
H A Dswiper_attr_test_ng.cpp238 EXPECT_TRUE(IsEqual(GetChildRect(frameNode_, 4), RectF(196.05f, 768.02f, 87.9f, 31.98f)));
283 EXPECT_TRUE(IsEqual(GetChildRect(frameNode_, 4), RectF(10.f, 10.f, 114.5f, 37.3f)));
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/irregular/
H A Dgrid_irregular_layout_test.cpp1358 EXPECT_EQ(GetChildRect(frameNode_, 1).GetX(), 240.5f);
1359 EXPECT_EQ(GetChildRect(frameNode_, 4).GetY(), 402.0f);
1363 EXPECT_EQ(GetChildRect(frameNode_, 1).GetX(), 242.5f);
1365 EXPECT_EQ(GetChildRect(frameNode_, 4).GetY(), 402.0f);
1369 EXPECT_EQ(GetChildRect(frameNode_, 1).GetX(), 242.5f);
1370 EXPECT_EQ(GetChildRect(frameNode_, 4).GetY(), 406.0f);
H A Dgrid_layout_range_solver_test.cpp488 EXPECT_EQ(GetChildRect(frameNode_, 22).Bottom(), GRID_HEIGHT - itemHeight);