mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 06:50:40 +00:00
!7530 window_system_toast_test crash
Merge pull request !7530 from yangningning/master
This commit is contained in:
commit
ab8543eb0c
@ -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());
|
||||
|
@ -27,7 +27,6 @@
|
||||
using namespace testing;
|
||||
using namespace testing::ext;
|
||||
|
||||
// using namespace FRAME_TRACE;
|
||||
using namespace testing;
|
||||
using namespace testing::ext;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user