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:
8d55bd6
)
tests: add ResetFocus test for DSWaylandTouch
56/243456/1
author
jeon
<jhyuni.kang@samsung.com>
Wed, 2 Sep 2020 07:40:23 +0000
(16:40 +0900)
committer
Sung-Jin Park
<sj76.park@samsung.com>
Mon, 7 Sep 2020 10:35:45 +0000
(19:35 +0900)
Change-Id: Id4374be0b42af7d22db6f015d233767f6aad5fea
tests/DSWaylandTouch-test.cpp
patch
|
blob
|
history
diff --git
a/tests/DSWaylandTouch-test.cpp
b/tests/DSWaylandTouch-test.cpp
index
a7c8a14
..
ee43b32
100644
(file)
--- a/
tests/DSWaylandTouch-test.cpp
+++ b/
tests/DSWaylandTouch-test.cpp
@@
-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());
+ }
+}
+