!7530 window_system_toast_test crash

Merge pull request !7530 from yangningning/master
This commit is contained in:
openharmony_ci 2024-07-24 10:56:37 +00:00 committed by Gitee
commit ab8543eb0c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 2 additions and 10 deletions

View File

@ -141,13 +141,6 @@ HWTEST_F(WindowSystemToastWindowTest, SystemToastWindow02, Function | MediumTest
return;
}
ASSERT_NE(nullptr, fltWin);
if (scene->GoForeground() == WMError::WM_OK) {
ASSERT_EQ(WMError::WM_OK, scene->GoForeground());
} else {
ASSERT_NE(WMError::WM_OK, scene->GoForeground());
}
ASSERT_EQ(WMError::WM_OK, fltWin->Show());
if (scene->GoForeground() == WMError::WM_OK) {
ASSERT_EQ(WMError::WM_OK, scene->GoForeground());

View File

@ -27,7 +27,6 @@
using namespace testing;
using namespace testing::ext;
// using namespace FRAME_TRACE;
using namespace testing;
using namespace testing::ext;

View File

@ -122,6 +122,7 @@ HWTEST_F(SceneSessionManagerTest, SetBrightness, Function | SmallTest | Level3)
info.abilityName_ = "SetBrightness";
info.bundleName_ = "SetBrightness1";
sptr<SceneSession> sceneSession = new (std::nothrow) SceneSession(info, nullptr);
ASSERT_NE(nullptr, sceneSession);
WSError result = ssm_->SetBrightness(sceneSession, 0.5);
ASSERT_EQ(result, WSError::WS_OK);
}

View File

@ -1081,8 +1081,7 @@ HWTEST_F(SceneSessionTest, TransferPointerEvent, Function | SmallTest | Level2)
property->SetWindowType(WindowType::WINDOW_TYPE_APP_MAIN_WINDOW);
property->SetPersistentId(11);
scensession->property_ = property;
ASSERT_EQ(scensession->TransferPointerEvent(pointerEvent_),
WSError::WS_ERROR_INVALID_SESSION);
ASSERT_EQ(scensession->TransferPointerEvent(pointerEvent_), WSError::WS_ERROR_INVALID_SESSION);
}
/**