mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-30 10:43:03 +00:00
use fixed heights
Signed-off-by: Tianer Zhou <zhoutianer@huawei.com> Change-Id: Ia3ffc3f6a1aa0db295e4a73505c15f86397c273a
This commit is contained in:
parent
5edd6106f5
commit
1ae5458d3f
@ -580,7 +580,16 @@ HWTEST_F(WaterFlowSWTest, Misaligned001, TestSize.Level1)
|
||||
*/
|
||||
HWTEST_F(WaterFlowSWTest, Misaligned002, TestSize.Level1)
|
||||
{
|
||||
Create([](WaterFlowModelNG model) { CreateRandomItem(45); }, false);
|
||||
Create(
|
||||
[](WaterFlowModelNG model) {
|
||||
const std::vector<float> randomHeights = { 249, 228, 232, 171, 184, 168, 236, 167, 156, 163, 212, 50, 130,
|
||||
225, 63, 106, 156, 213, 102, 93, 73, 184, 89, 156, 178, 163, 176, 187, 191, 118, 218, 212, 196, 52, 103,
|
||||
57, 189, 55, 127, 230, 51, 167, 166, 118, 107 };
|
||||
for (const float& f : randomHeights) {
|
||||
CreateItemWithHeight(f);
|
||||
}
|
||||
},
|
||||
false);
|
||||
auto secObj = pattern_->GetOrCreateWaterFlowSections();
|
||||
secObj->ChangeData(0, 0, SECTION_10);
|
||||
MockPipelineContext::GetCurrent()->FlushBuildFinishCallbacks();
|
||||
|
Loading…
Reference in New Issue
Block a user