From 1b78407681eea4669cd6eb9934e95bb992196a1f Mon Sep 17 00:00:00 2001 From: xiahaiqin Date: Wed, 3 Aug 2022 16:57:13 +0800 Subject: [PATCH] fix touchoutside st Signed-off-by: xiahaiqin Change-Id: Ib5def83a5a2b60026ff7f34eab70f6bdc1cf7c1c --- test/systemtest/wms/window_touch_outside_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/systemtest/wms/window_touch_outside_test.cpp b/test/systemtest/wms/window_touch_outside_test.cpp index fc4ddf5a..59d129f6 100644 --- a/test/systemtest/wms/window_touch_outside_test.cpp +++ b/test/systemtest/wms/window_touch_outside_test.cpp @@ -118,7 +118,7 @@ HWTEST_F(WindowTouchOutsideTest, onTouchInside, Function | MediumTest | Level3) option->SetWindowMode(firstWindowInfo_.mode); option->SetWindowType(firstWindowInfo_.type); option->SetWindowRect(firstWindowInfo_.rect); - auto firstWindow = new WindowImpl(option); + sptr firstWindow = new WindowImpl(option); firstWindow->Create(""); firstWindow->RegisterTouchOutsideListener(windowlistener1_); firstWindow->Show(); @@ -144,7 +144,7 @@ HWTEST_F(WindowTouchOutsideTest, onTouchOutside, Function | MediumTest | Level3) secondOption->SetWindowMode(secondWindowInfo_.mode); secondOption->SetWindowType(secondWindowInfo_.type); secondOption->SetWindowRect(secondWindowInfo_.rect); - auto secondWindow = new WindowImpl(secondOption); + sptr secondWindow = new WindowImpl(secondOption); secondWindow->Create(""); firstWindow->Show(); secondWindow->Show(); @@ -171,7 +171,7 @@ HWTEST_F(WindowTouchOutsideTest, onTouchOutsideNotShow, Function | MediumTest | secondOption->SetWindowMode(secondWindowInfo_.mode); secondOption->SetWindowType(secondWindowInfo_.type); secondOption->SetWindowRect(secondWindowInfo_.rect); - auto secondWindow = new WindowImpl(secondOption); + sptr secondWindow = new WindowImpl(secondOption); secondWindow->Create(""); secondWindow->Show(); SingletonContainer::Get().ProcessPointDown(secondWindow->GetWindowId(), @@ -202,7 +202,7 @@ HWTEST_F(WindowTouchOutsideTest, onTouchOutsideForAllWindow, Function | MediumTe thirdOption->SetWindowMode(thirdWindowInfo_.mode); thirdOption->SetWindowType(thirdWindowInfo_.type); thirdOption->SetWindowRect(thirdWindowInfo_.rect); - auto thirdWindow = new WindowImpl(thirdOption); + sptr thirdWindow = new WindowImpl(thirdOption); thirdWindow->Create(""); thirdWindow->Show(); SingletonContainer::Get().ProcessPointDown(thirdWindow->GetWindowId(),