projects
/
platform
/
core
/
uifw
/
libds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a82ae99
)
tests: add ResetFocus test for DSWaylandPointer
58/243458/1
author
jeon
<jhyuni.kang@samsung.com>
Wed, 2 Sep 2020 07:55:56 +0000
(16:55 +0900)
committer
Sung-Jin Park
<sj76.park@samsung.com>
Mon, 7 Sep 2020 10:36:08 +0000
(19:36 +0900)
Change-Id: I1fed15d212e1b191387df10d599a698950bab665
tests/DSWaylandPointer-test.cpp
patch
|
blob
|
history
diff --git
a/tests/DSWaylandPointer-test.cpp
b/tests/DSWaylandPointer-test.cpp
index
05cf9c0
..
0156b07
100644
(file)
--- a/
tests/DSWaylandPointer-test.cpp
+++ b/
tests/DSWaylandPointer-test.cpp
@@
-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());
+ }
+}
+