1 # Test for Weston IVI Plugin for HomeScreen(SystemController)
2 # send input event Test
6 launch ../tests/test-client < ../tests/testdata/cl_surface4.dat 2> ../tests/testlog/test-client.log 1>&2
8 move test-client 100 200
12 launch ../tests/test-eflapp @1 -color=0xe02040ff 2> ../tests/testlog/test-eflapp.log 1>&2
14 move test-eflapp@1 650 80
17 # 11. send pointer event to general pointer motion(general event)
20 input_send @ pointer 0 ABS_Z 80 160
22 input_send @ pointer 0 ABS_X 270
23 input_send @ pointer 0 ABS_Y 440
25 input_send @ pointer 0 BTN_LEFT 1
27 input_send @ pointer 0 BTN_LEFT 0
29 input_send @ pointer 0 ABS_X 272
30 input_send @ pointer 0 ABS_Y 438
32 input_send @ pointer 0 BTN_LEFT 1
34 input_send @ pointer 0 ABS_X 271
35 input_send @ pointer 0 ABS_Y 439
37 input_send @ pointer 0 BTN_LEFT 0
40 # 12. send keyboard event(general event)
43 input_send @ keyboard 0 1 1
44 input_send @ keyboard 0 1 0
47 input_send @ keyboard 0 2 1
49 input_send @ keyboard 0 2 0
52 # 13. send touch event(general event)
55 input_send @ touch 0 ABS_Z 250 450
56 input_send @ touch 0 BTN_TOUCH 1
58 input_send @ touch 0 ABS_Z 255 455
60 input_send @ touch 0 BTN_TOUCH 0
63 # 14. switch event(general event)
66 input_send @ switch 0 11 1
67 input_send @ switch 0 11 0
70 input_send @ switch 0 12 1
72 input_send @ switch 0 12 0
75 # 15. haptic event(general event)
78 input_send @ haptic 0 ABS_Z 260 460
80 input_send @ haptic 0 ABS_Z 262 462
82 input_send @ haptic 0 BTN_LEFT 1
84 input_send @ haptic 0 BTN_LEFT 0
87 # 21. send pointer event to general pointer motion(appid)
91 input_send @test-client pointer 0 ABS_Z 80 160
93 input_send @test-client pointer 0 ABS_X 270
94 input_send @test-client pointer 0 ABS_Y 440
96 input_send @test-client pointer 0 BTN_LEFT 1
98 input_send @test-client pointer 0 BTN_LEFT 0
100 input_send @test-client pointer 0 ABS_X 272
101 input_send @test-client pointer 0 ABS_Y 438
103 input_send @test-client pointer 0 BTN_LEFT 1
105 input_send @test-client pointer 0 ABS_X 271
106 input_send @test-client pointer 0 ABS_Y 439
108 input_send @test-client pointer 0 BTN_LEFT 0
111 # 22. send keyboard event(appid)
114 input_send @test-client keyboard 0 1 1
115 input_send @test-client keyboard 0 1 0
118 input_send @test-client keyboard 0 2 1
120 input_send @test-client@test-client keyboard 0 2 0
123 # 23. send touch event(appid)
125 input_send @test-client touch 0 ABS_Z 250 450
126 input_send @test-client touch 0 BTN_TOUCH 1
128 input_send @test-client touch 0 ABS_Z 255 455
130 input_send @test-client touch 0 BTN_TOUCH 0
133 # 24. switch event(appid)
135 input_send @test-client switch 0 11 1
136 input_send @test-client switch 0 11 0
138 input_send @test-client switch 0 12 1
140 input_send @test-client switch 0 12 0
143 # 25. haptic event(appid)
145 input_send @test-client haptic 0 ABS_Z 260 460
147 input_send @test-client haptic 0 ABS_Z 262 462
149 input_send @test-client haptic 0 BTN_LEFT 1
151 input_send @test-client haptic 0 BTN_LEFT 0
154 # 31. send pointer event to general pointer motion(surface id)
157 input_send test-client pointer 0 ABS_Z 80 160
159 input_send test-client pointer 0 ABS_X 270
160 input_send test-client pointer 0 ABS_Y 440
162 input_send test-client pointer 0 BTN_LEFT 1
164 input_send test-client pointer 0 BTN_LEFT 0
166 input_send test-client pointer 0 ABS_X 272
167 input_send test-client pointer 0 ABS_Y 438
169 input_send test-client pointer 0 BTN_LEFT 1
171 input_send test-client pointer 0 ABS_X 271
172 input_send test-client pointer 0 ABS_Y 439
174 input_send test-client pointer 0 BTN_LEFT 0
177 # 32. send keyboard event(surface id)
180 input_send test-client keyboard 0 1 1
181 input_send test-client keyboard 0 1 0
184 input_send test-client keyboard 0 2 1
186 input_send test-client keyboard 0 2 0
189 # 33. send touch event(surface id)
191 input_send test-client touch 0 ABS_Z 250 450
192 input_send test-client touch 0 BTN_TOUCH 1
194 input_send test-client touch 0 ABS_Z 255 455
196 input_send test-client touch 0 BTN_TOUCH 0
199 # 34. switch event(surface id)
201 input_send test-client switch 0 11 1
202 input_send test-client switch 0 11 0
204 input_send test-client switch 0 12 1
206 input_send test-client switch 0 12 0
209 # 35. haptic event(surface id)
211 input_send test-client haptic 0 ABS_Z 260 460
213 input_send test-client haptic 0 ABS_Z 262 462
215 input_send test-client haptic 0 BTN_LEFT 1
217 input_send test-client haptic 0 BTN_LEFT 0