Signed-off-by: yangningning <yangningning8@huawei.com>
Change-Id: I36255cf9892d09b00d14b925e3788db3150e8edd
This commit is contained in:
yangningning 2024-07-19 09:52:42 +08:00
parent 3d8df20a9f
commit dcb87fd3b4
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);
}
/**