!5737 修改失败用例

Merge pull request !5737 from 许杨杨/4_16
This commit is contained in:
openharmony_ci 2024-04-19 04:16:26 +00:00 committed by Gitee
commit 55b3a62cc8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 3 deletions

View File

@ -207,7 +207,7 @@ HWTEST_F(WindowEffectTest, WindowEffect07, Function | MediumTest | Level3)
*/
HWTEST_F(WindowEffectTest, WindowEffect08, Function | MediumTest | Level3)
{
sptr<Window> window = Utils::CreateTestWindow(windowInfo_);
const sptr<Window> &window = Utils::CreateTestWindow(windowInfo_);
ASSERT_NE(nullptr, window);
WindowAccessibilityController::GetInstance().OffWindowZoom();
sleep(1);

View File

@ -277,7 +277,7 @@ HWTEST_F(WindowLayoutTest, LayoutWindow06, Function | MediumTest | Level3)
ASSERT_EQ(WMError::WM_ERROR_INVALID_WINDOW, statBar->Show());
}
ASSERT_EQ(WMError::WM_OK, sysWin->Show(0, true));
ASSERT_EQ(WMError::WM_OK, sysWin->Show());
if (Utils::RectEqualTo(sysWin, Utils::displayRect_)) {
ASSERT_TRUE(Utils::RectEqualTo(sysWin, Utils::displayRect_));
@ -339,7 +339,7 @@ HWTEST_F(WindowLayoutTest, LayoutWindow07, Function | MediumTest | Level3)
} else if (statBar->Show() == WMError::WM_ERROR_INVALID_WINDOW) {
ASSERT_EQ(WMError::WM_ERROR_INVALID_WINDOW, statBar->Show());
}
ASSERT_EQ(WMError::WM_OK, sysWin->Show(0, true));
ASSERT_EQ(WMError::WM_OK, sysWin->Show());
ASSERT_TRUE(Utils::RectEqualTo(sysWin, Utils::customAppRect_));