Signed-off-by: z30042987 <zhouminghui8@huawei.com>
This commit is contained in:
z30042987 2023-08-16 14:33:42 +08:00
parent d7402c455f
commit 804ac0a2e7
6 changed files with 10 additions and 10 deletions

View File

@ -176,7 +176,7 @@ HWTEST_F(WindowDialogWindowTest, DialogWindow04, Function | MediumTest | Level2)
struct Rect rect = {0, 0, 100, 200};
sptr<Window> dialogWindow0 = CreateDialogWindow(scene, WindowType::WINDOW_TYPE_DIALOG, rect, "dialog0");
if(dialogWindow0==nullptr) {
if (dialogWindow0 == nullptr) {
return;
}
ASSERT_NE(nullptr, dialogWindow0);

View File

@ -74,7 +74,7 @@ HWTEST_F(WindowDisplayZoomTest, DisplayZoom01, Function | MediumTest | Level3)
windowInfo_.name = "DisplayZoom01";
sptr<Window> window = Utils::CreateTestWindow(windowInfo_);
if(window==nullptr) {
if (window == nullptr) {
return;
}
Window* ptr = window.GetRefPtr();
@ -159,7 +159,7 @@ HWTEST_F(WindowDisplayZoomTest, DisplayZoom03, Function | MediumTest | Level3)
{
windowInfo_.name = "DisplayZoom03";
sptr<Window> window = Utils::CreateTestWindow(windowInfo_);
if(window==nullptr) {
if (window == nullptr) {
return;
}
Window* ptr = window.GetRefPtr();

View File

@ -258,7 +258,7 @@ HWTEST_F(WindowImmersiveTest, ImmersiveTest01, Function | MediumTest | Level3)
{
fullScreenAppinfo_.name = "immer01";
const sptr<Window>& window = Utils::CreateTestWindow(fullScreenAppinfo_);
if(window==nullptr) {
if (window == nullptr) {
return;
}
activeWindows_.push_back(window);
@ -276,7 +276,7 @@ HWTEST_F(WindowImmersiveTest, ImmersiveTest01, Function | MediumTest | Level3)
HWTEST_F(WindowImmersiveTest, ImmersiveTest02, Function | MediumTest | Level3)
{
const sptr<Window>& window1 = Utils::CreateTestWindow(fullScreenAppinfo_);
if(window1==nullptr) {
if (window1 == nullptr) {
return;
}
activeWindows_.push_back(window1);
@ -330,7 +330,7 @@ HWTEST_F(WindowImmersiveTest, ImmersiveTest04, Function | MediumTest | Level3)
{
fullScreenAppinfo_.needAvoid = true; // no immersive setting
const sptr<Window>& window1 = Utils::CreateTestWindow(fullScreenAppinfo_);
if(window1==nullptr) {
if (window1 == nullptr) {
return;
}
activeWindows_.push_back(window1);

View File

@ -138,7 +138,7 @@ HWTEST_F(WindowRotationTest, WindowRotationTest1, Function | MediumTest | Level3
fullInfo_.name = "fullscreen.1";
fullInfo_.orientation_ = Orientation::UNSPECIFIED;
const sptr<Window>& fullWindow = Utils::CreateTestWindow(fullInfo_);
if(fullWindow==nullptr) {
if (fullWindow == nullptr) {
return;
}
activeWindows_.push_back(fullWindow);

View File

@ -113,7 +113,7 @@ namespace {
HWTEST_F(WindowTouchOutsideTest, onTouchInside, Function | MediumTest | Level3)
{
const sptr<Window> &firstWindow = Utils::CreateTestWindow(firstWindowInfo_);
if(firstWindow==nullptr) {
if (firstWindow == nullptr) {
return;
}
firstWindow->RegisterTouchOutsideListener(windowlistener1_);

View File

@ -1553,7 +1553,7 @@ HWTEST_F(WindowSceneSessionImplTest, GetTopWindowWithContext01, Function | Small
SessionInfo sessionInfo = { "CreateTestBundle", "CreateTestModule", "CreateTestAbility" };
sptr<SessionMocker> session = new (std::nothrow) SessionMocker(sessionInfo);
ASSERT_NE(nullptr, session);
if(windowscenesession->Create(context, session)==WMError::WM_OK){
if (windowscenesession->Create(context, session) == WMError::WM_OK) {
ASSERT_EQ(WMError::WM_OK, windowscenesession->Create(context, session));
}
ASSERT_NE(nullptr, windowscenesession->GetTopWindowWithContext(context));
@ -1561,7 +1561,7 @@ HWTEST_F(WindowSceneSessionImplTest, GetTopWindowWithContext01, Function | Small
/**
* @tc.name: NotifyMemoryLevel01
* @tc.desc: NotifyMemoryLevel
* @tc.desc: NotifyMemoryLevel
* @tc.type: FUNC
*/
HWTEST_F(WindowSceneSessionImplTest, NotifyMemoryLevel01, Function | SmallTest | Level2)