Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libinput
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
88
Issues
88
List
Boards
Labels
Service Desk
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
libinput
libinput
Commits
2b3fe1a7
Commit
2b3fe1a7
authored
Jan 12, 2017
by
Peter Hutterer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: add the right pressure bits.
Signed-off-by:
Peter Hutterer
<
peter.hutterer@who-t.net
>
parent
c27f9aff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
test/test-touchpad.c
test/test-touchpad.c
+11
-0
No files found.
test/test-touchpad.c
View file @
2b3fe1a7
...
...
@@ -1686,6 +1686,7 @@ START_TEST(touchpad_semi_mt_hover_down)
litest_event
(
dev
,
EV_ABS
,
ABS_X
,
x
+
100
);
litest_event
(
dev
,
EV_ABS
,
ABS_Y
,
y
+
100
);
litest_event
(
dev
,
EV_ABS
,
ABS_PRESSURE
,
50
);
litest_event
(
dev
,
EV_KEY
,
BTN_TOUCH
,
1
);
litest_event
(
dev
,
EV_SYN
,
SYN_REPORT
,
0
);
libinput_dispatch
(
li
);
...
...
@@ -1712,6 +1713,7 @@ START_TEST(touchpad_semi_mt_hover_down)
/* go back to hover */
hover_continue
(
dev
,
0
,
x
,
y
);
litest_event
(
dev
,
EV_ABS
,
ABS_PRESSURE
,
0
);
litest_event
(
dev
,
EV_KEY
,
BTN_TOUCH
,
0
);
litest_event
(
dev
,
EV_SYN
,
SYN_REPORT
,
0
);
...
...
@@ -1752,6 +1754,7 @@ START_TEST(touchpad_semi_mt_hover_down_hover_down)
/* touch */
litest_event
(
dev
,
EV_ABS
,
ABS_X
,
x
+
100
);
litest_event
(
dev
,
EV_ABS
,
ABS_Y
,
y
+
100
);
litest_event
(
dev
,
EV_ABS
,
ABS_PRESSURE
,
50
);
litest_event
(
dev
,
EV_KEY
,
BTN_TOUCH
,
1
);
litest_event
(
dev
,
EV_SYN
,
SYN_REPORT
,
0
);
libinput_dispatch
(
li
);
...
...
@@ -1773,6 +1776,7 @@ START_TEST(touchpad_semi_mt_hover_down_hover_down)
/* go back to hover */
hover_continue
(
dev
,
0
,
x
,
y
);
litest_event
(
dev
,
EV_ABS
,
ABS_PRESSURE
,
0
);
litest_event
(
dev
,
EV_KEY
,
BTN_TOUCH
,
0
);
litest_event
(
dev
,
EV_SYN
,
SYN_REPORT
,
0
);
...
...
@@ -1796,7 +1800,10 @@ START_TEST(touchpad_semi_mt_hover_down_hover_down)
litest_assert_empty_queue
(
li
);
/* start a new touch to be sure */
litest_push_event_frame
(
dev
);
litest_touch_down
(
dev
,
0
,
50
,
50
);
litest_event
(
dev
,
EV_ABS
,
ABS_PRESSURE
,
50
);
litest_pop_event_frame
(
dev
);
litest_touch_move_to
(
dev
,
0
,
50
,
50
,
70
,
70
,
10
,
10
);
litest_touch_up
(
dev
,
0
);
...
...
@@ -1845,6 +1852,7 @@ START_TEST(touchpad_semi_mt_hover_down_up)
litest_assert_empty_queue
(
li
);
litest_event
(
dev
,
EV_ABS
,
ABS_PRESSURE
,
50
);
litest_event
(
dev
,
EV_KEY
,
BTN_TOUCH
,
1
);
litest_event
(
dev
,
EV_SYN
,
SYN_REPORT
,
0
);
libinput_dispatch
(
li
);
...
...
@@ -1930,6 +1938,7 @@ START_TEST(touchpad_semi_mt_hover_2fg_1fg_down)
/* two slots active, but BTN_TOOL_FINGER only */
hover_start
(
dev
,
0
,
x
,
y
);
hover_start
(
dev
,
1
,
x
+
500
,
y
+
500
);
litest_event
(
dev
,
EV_ABS
,
ABS_PRESSURE
,
50
);
litest_event
(
dev
,
EV_KEY
,
BTN_TOUCH
,
1
);
litest_event
(
dev
,
EV_KEY
,
BTN_TOOL_FINGER
,
1
);
litest_event
(
dev
,
EV_SYN
,
SYN_REPORT
,
0
);
...
...
@@ -1948,6 +1957,7 @@ START_TEST(touchpad_semi_mt_hover_2fg_1fg_down)
litest_event
(
dev
,
EV_SYN
,
SYN_REPORT
,
0
);
}
litest_event
(
dev
,
EV_ABS
,
ABS_PRESSURE
,
0
);
litest_event
(
dev
,
EV_KEY
,
BTN_TOUCH
,
0
);
litest_event
(
dev
,
EV_KEY
,
BTN_TOOL_FINGER
,
0
);
litest_event
(
dev
,
EV_SYN
,
SYN_REPORT
,
0
);
...
...
@@ -1969,6 +1979,7 @@ START_TEST(touchpad_semi_mt_hover_2fg_up)
litest_push_event_frame
(
dev
);
litest_touch_move
(
dev
,
0
,
72
,
50
);
litest_touch_move
(
dev
,
1
,
52
,
50
);
litest_event
(
dev
,
EV_ABS
,
ABS_PRESSURE
,
0
);
litest_event
(
dev
,
EV_KEY
,
BTN_TOUCH
,
0
);
litest_pop_event_frame
(
dev
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment