!1864 【ST】修改display_change_test用例

Merge pull request !1864 from 张凯/fix_display_change_test
This commit is contained in:
openharmony_ci 2022-11-09 07:17:44 +00:00 committed by Gitee
commit b413a3474f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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());
}
}