tests: add ResetFocus test for DSWaylandTouch 56/243456/1
authorjeon <jhyuni.kang@samsung.com>
Wed, 2 Sep 2020 07:40:23 +0000 (16:40 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 7 Sep 2020 10:35:45 +0000 (19:35 +0900)
Change-Id: Id4374be0b42af7d22db6f015d233767f6aad5fea

tests/DSWaylandTouch-test.cpp

index a7c8a14..ee43b32 100644 (file)
@@ -91,3 +91,15 @@ TEST_F(DSWaylandTouchTest, SetGetFocus)
         }
 }
 
+TEST_F(DSWaylandTouchTest, ResetFocus)
+{
+       auto touch = new DSWaylandTouch(nullptr);
+       EXPECT_TRUE(touch != nullptr);
+
+       if (touch)
+       {
+               touch->resetFocus();
+               EXPECT_TRUE(nullptr == touch->getFocus());
+       }
+}
+