modify display_change_test

Signed-off-by: zhangkai <zhangkai324@huawei.com>
Change-Id: Id34b3ecf8db62855ed5c150af1f96cabb7099517
This commit is contained in:
zhangkai 2022-11-08 11:45:16 +08:00
parent cefb3356a9
commit 9924a60c7b

View File

@ -404,19 +404,11 @@ HWTEST_F(DisplayChangeTest, CheckWaterfallCompression01, Function | SmallTest |
ASSERT_EQ(testSizeInVp, DisplayCutoutController::GetWaterfallAreaCompressionSizeWhenHorizontal());
Orientation originOrientation = defaultScreen_->GetOrientation();
defaultScreen_->SetOrientation(Orientation::VERTICAL);
sleep(SPLIT_TEST_SLEEP_S);
defaultScreen_->SetOrientation(Orientation::HORIZONTAL);
sleep(SPLIT_TEST_SLEEP_S);
defaultScreen_->SetOrientation(Orientation::VERTICAL);
sleep(SPLIT_TEST_SLEEP_S);
DisplayCutoutController::SetWaterfallAreaCompressionSizeWhenHorizontal(originSize);
ASSERT_EQ(originSize, DisplayCutoutController::GetWaterfallAreaCompressionSizeWhenHorizontal());
DisplayCutoutController::SetWaterfallAreaCompressionEnableWhenHorzontal(originStatus);
ASSERT_EQ(originStatus, DisplayCutoutController::IsWaterfallAreaCompressionEnableWhenHorizontal());
DisplayCutoutController::SetIsWaterfallDisplay(originWaterfallEnable);
defaultScreen_->SetOrientation(originOrientation);
sleep(SPLIT_TEST_SLEEP_S);
ASSERT_EQ(originOrientation, defaultScreen_->GetOrientation());
}
}