bugfix: TIVI-2396: Virtual Keyboard doesn't catch the mouse event with the ICO UI
[profile/ivi/ico-uxf-weston-plugin.git] / tests / testdata / hs_sendinput.dat
1 # Test for Weston IVI Plugin for HomeScreen(SystemController)
2 # send input event Test
3 #
4 # 1. trigger clients
5 #
6 launch ../tests/test-client < ../tests/testdata/cl_surface4.dat 2> ../tests/testlog/test-client.log 1>&2
7 waitcreate 2
8 move test-client 100 200
9 show test-client
10 sleep 1
11 #
12 launch ../tests/test-eflapp @1 -color=0xe02040ff 2> ../tests/testlog/test-eflapp.log 1>&2
13 waitcreate 2
14 move test-eflapp@1 650 80
15 show test-eflapp@1
16 #
17 # 11. send pointer event to general pointer motion(general event)
18 #
19 sleep 1
20 input_send @ pointer 0 ABS_Z 80 160
21 sleep 0.1
22 input_send @ pointer 0 ABS_X 270
23 input_send @ pointer 0 ABS_Y 440
24 sleep 0.1
25 input_send @ pointer 0 BTN_LEFT 1
26 sleep 0.2
27 input_send @ pointer 0 BTN_LEFT 0
28 sleep 0.5
29 input_send @ pointer 0 ABS_X 272
30 input_send @ pointer 0 ABS_Y 438
31 sleep 0.1
32 input_send @ pointer 0 BTN_LEFT 1
33 sleep 0.1
34 input_send @ pointer 0 ABS_X 271
35 input_send @ pointer 0 ABS_Y 439
36 sleep 0.1
37 input_send @ pointer 0 BTN_LEFT 0
38 sleep 1
39 #
40 # 12. send keyboard event(general event)
41 #
42 active test-client
43 input_send @ keyboard 0 1 1
44 input_send @ keyboard 0 1 0
45 sleep 0.2
46 active test-eflapp@1
47 input_send @ keyboard 0 2 1
48 sleep 0.1
49 input_send @ keyboard 0 2 0
50 sleep 1
51 #
52 # 13. send touch event(general event)
53 #
54 active test-client
55 input_send @ touch 0 ABS_Z 250 450
56 input_send @ touch 0 BTN_TOUCH 1
57 sleep 0.1
58 input_send @ touch 0 ABS_Z 255 455
59 sleep 0.2
60 input_send @ touch 0 BTN_TOUCH 0
61 sleep 1
62 #
63 # 14. switch event(general event)
64 #
65 active test-client
66 input_send @ switch 0 11 1
67 input_send @ switch 0 11 0
68 sleep 0.1
69 active test-eflapp@1
70 input_send @ switch 0 12 1
71 sleep 0.1
72 input_send @ switch 0 12 0
73 sleep 1
74 #
75 # 15. haptic event(general event)
76 #
77 active test-client
78 input_send @ haptic 0 ABS_Z 260 460
79 sleep 0.1
80 input_send @ haptic 0 ABS_Z 262 462
81 sleep 0.1
82 input_send @ haptic 0 BTN_LEFT 1
83 sleep 0.1
84 input_send @ haptic 0 BTN_LEFT 0
85 sleep 1
86 #
87 # 21. send pointer event to general pointer motion(appid)
88 #
89 sleep 1
90 active test-eflapp@1
91 input_send @test-client pointer 0 ABS_Z 80 160
92 sleep 0.1
93 input_send @test-client pointer 0 ABS_X 270
94 input_send @test-client pointer 0 ABS_Y 440
95 sleep 0.1
96 input_send @test-client pointer 0 BTN_LEFT 1
97 sleep 0.2
98 input_send @test-client pointer 0 BTN_LEFT 0
99 sleep 0.5
100 input_send @test-client pointer 0 ABS_X 272
101 input_send @test-client pointer 0 ABS_Y 438
102 sleep 0.1
103 input_send @test-client pointer 0 BTN_LEFT 1
104 sleep 0.1
105 input_send @test-client pointer 0 ABS_X 271
106 input_send @test-client pointer 0 ABS_Y 439
107 sleep 0.1
108 input_send @test-client pointer 0 BTN_LEFT 0
109 sleep 1
110 #
111 # 22. send keyboard event(appid)
112 #
113 active test-eflapp@1
114 input_send @test-client keyboard 0 1 1
115 input_send @test-client keyboard 0 1 0
116 sleep 0.2
117 active test-client
118 input_send @test-client keyboard 0 2 1
119 sleep 0.1
120 input_send @test-client@test-client keyboard 0 2 0
121 sleep 1
122 #
123 # 23. send touch event(appid)
124 #
125 input_send @test-client touch 0 ABS_Z 250 450
126 input_send @test-client touch 0 BTN_TOUCH 1
127 sleep 0.1
128 input_send @test-client touch 0 ABS_Z 255 455
129 sleep 0.2
130 input_send @test-client touch 0 BTN_TOUCH 0
131 sleep 1
132 #
133 # 24. switch event(appid)
134 #
135 input_send @test-client switch 0 11 1
136 input_send @test-client switch 0 11 0
137 sleep 0.1
138 input_send @test-client switch 0 12 1
139 sleep 0.1
140 input_send @test-client switch 0 12 0
141 sleep 1
142 #
143 # 25. haptic event(appid)
144 #
145 input_send @test-client haptic 0 ABS_Z 260 460
146 sleep 0.1
147 input_send @test-client haptic 0 ABS_Z 262 462
148 sleep 0.1
149 input_send @test-client haptic 0 BTN_LEFT 1
150 sleep 0.1
151 input_send @test-client haptic 0 BTN_LEFT 0
152 sleep 1
153 #
154 # 31. send pointer event to general pointer motion(surface id)
155 #
156 sleep 1
157 input_send test-client pointer 0 ABS_Z 80 160
158 sleep 0.1
159 input_send test-client pointer 0 ABS_X 270
160 input_send test-client pointer 0 ABS_Y 440
161 sleep 0.1
162 input_send test-client pointer 0 BTN_LEFT 1
163 sleep 0.2
164 input_send test-client pointer 0 BTN_LEFT 0
165 sleep 0.5
166 input_send test-client pointer 0 ABS_X 272
167 input_send test-client pointer 0 ABS_Y 438
168 sleep 0.1
169 input_send test-client pointer 0 BTN_LEFT 1
170 sleep 0.1
171 input_send test-client pointer 0 ABS_X 271
172 input_send test-client pointer 0 ABS_Y 439
173 sleep 0.1
174 input_send test-client pointer 0 BTN_LEFT 0
175 sleep 1
176 #
177 # 32. send keyboard event(surface id)
178 #
179 active test-client
180 input_send test-client keyboard 0 1 1
181 input_send test-client keyboard 0 1 0
182 sleep 0.2
183 active test-eflapp@1
184 input_send test-client keyboard 0 2 1
185 sleep 0.1
186 input_send test-client keyboard 0 2 0
187 sleep 1
188 #
189 # 33. send touch event(surface id)
190 #
191 input_send test-client touch 0 ABS_Z 250 450
192 input_send test-client touch 0 BTN_TOUCH 1
193 sleep 0.1
194 input_send test-client touch 0 ABS_Z 255 455
195 sleep 0.2
196 input_send test-client touch 0 BTN_TOUCH 0
197 sleep 1
198 #
199 # 34. switch event(surface id)
200 #
201 input_send test-client switch 0 11 1
202 input_send test-client switch 0 11 0
203 sleep 0.1
204 input_send test-client switch 0 12 1
205 sleep 0.1
206 input_send test-client switch 0 12 0
207 sleep 1
208 #
209 # 35. haptic event(surface id)
210 #
211 input_send test-client haptic 0 ABS_Z 260 460
212 sleep 0.1
213 input_send test-client haptic 0 ABS_Z 262 462
214 sleep 0.1
215 input_send test-client haptic 0 BTN_LEFT 1
216 sleep 0.1
217 input_send test-client haptic 0 BTN_LEFT 0
218 sleep 1
219 #
220 sleep 20
221 #
222 kill test-client
223 kill test-eflapp@1
224 sleep 1
225 #
226 # 99. End of Test
227 bye
228