mirror of
https://gitee.com/openharmony/window_window_manager
synced 2025-03-03 05:06:38 +00:00
!1864 【ST】修改display_change_test用例
Merge pull request !1864 from 张凯/fix_display_change_test
This commit is contained in:
commit
b413a3474f
@ -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