mirror of
https://gitee.com/openharmony/window_window_manager
synced 2025-03-03 05:06:38 +00:00
modify display_change_test
Signed-off-by: zhangkai <zhangkai324@huawei.com> Change-Id: Id34b3ecf8db62855ed5c150af1f96cabb7099517
This commit is contained in:
parent
cefb3356a9
commit
9924a60c7b
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user