tests: add ResetFocus test for DSWaylandPointer 58/243458/1
authorjeon <jhyuni.kang@samsung.com>
Wed, 2 Sep 2020 07:55:56 +0000 (16:55 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 7 Sep 2020 10:36:08 +0000 (19:36 +0900)
Change-Id: I1fed15d212e1b191387df10d599a698950bab665

tests/DSWaylandPointer-test.cpp

index 05cf9c0..0156b07 100644 (file)
@@ -91,3 +91,15 @@ TEST_F(DSWaylandPointerTest, SetGetFocus)
         }
 }
 
+TEST_F(DSWaylandPointerTest, ResetFocus)
+{
+       auto pointer = new DSWaylandPointer(nullptr);
+       EXPECT_TRUE(pointer != nullptr);
+
+       if (pointer)
+       {
+               pointer->resetFocus();
+               EXPECT_TRUE(nullptr == pointer->getFocus());
+       }
+}
+