|
1 [ |
|
2 { |
|
3 "events": [ |
|
4 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
5 {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]} |
|
6 ], |
|
7 "expectedGestures": "tap" |
|
8 }, |
|
9 { |
|
10 "events": [ |
|
11 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
12 {"type": "pointermove", |
|
13 "points": [{"x": 1.03, "y": 1.03, "identifier": 1}]}, |
|
14 {"type": "pointerup", "points": [{"x": 1.03, "y": 1.03, "identifier": 1}]} |
|
15 ], |
|
16 "expectedGestures": "tap" |
|
17 }, |
|
18 { |
|
19 "events": [ |
|
20 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}], |
|
21 "removeDwellThreshold": true}, |
|
22 {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]} |
|
23 ], |
|
24 "expectedGestures": ["dwell", "dwellend"] |
|
25 }, |
|
26 { |
|
27 "events": [ |
|
28 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
29 {"type": "pointermove", |
|
30 "points": [{"x": 1.03, "y": 1.02, "identifier": 1}]}, |
|
31 {"type": "pointerup", |
|
32 "points": [{"x": 1.03, "y": 1.02, "identifier": 1}]}, |
|
33 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
34 {"type": "pointermove", |
|
35 "points": [{"x": 0.97, "y": 1.01, "identifier": 1}]}, |
|
36 {"type": "pointerup", |
|
37 "points": [{"x": 0.97, "y": 1.01, "identifier": 1}]} |
|
38 ], |
|
39 "expectedGestures": ["tap", "doubletap"] |
|
40 }, |
|
41 { |
|
42 "events": [ |
|
43 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
44 {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
45 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
46 {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
47 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
48 {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]} |
|
49 ], |
|
50 "expectedGestures": ["tap", "doubletap", "tripletap"] |
|
51 }, |
|
52 { |
|
53 "events": [ |
|
54 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
55 {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
56 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
57 {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
58 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}], |
|
59 "removeDwellThreshold": true}, |
|
60 {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]} |
|
61 ], |
|
62 "expectedGestures": ["tap", "doubletap", "doubletaphold", |
|
63 "doubletapholdend"] |
|
64 }, |
|
65 { |
|
66 "events": [ |
|
67 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
68 {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
69 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}], |
|
70 "removeDwellThreshold": true}, |
|
71 {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]} |
|
72 ], |
|
73 "expectedGestures": ["tap", "taphold", "tapholdend"] |
|
74 }, |
|
75 { |
|
76 "events": [ |
|
77 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
78 {"type": "pointermove", "points": [{"x": 1.5, "y": 1, "identifier": 1}]}, |
|
79 {"type": "pointerup", "points": [{"x": 1.5, "y": 1, "identifier": 1}]} |
|
80 ], |
|
81 "expectedGestures": "swiperight" |
|
82 }, |
|
83 { |
|
84 "events": [ |
|
85 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
86 {"type": "pointermove", "points": [{"x": 1.15, "y": 1, "identifier": 1}]}, |
|
87 {"type": "pointermove", "points": [{"x": 1.3, "y": 1, "identifier": 1}]}, |
|
88 {"type": "pointerup", "points": [{"x": 1.3, "y": 1, "identifier": 1}]} |
|
89 ], |
|
90 "expectedGestures": "swiperight" |
|
91 }, |
|
92 { |
|
93 "events": [ |
|
94 {"type": "pointerdown", "points": [{"x": 1.5, "y": 1, "identifier": 1}]}, |
|
95 {"type": "pointermove", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
96 {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]} |
|
97 ], |
|
98 "expectedGestures": "swipeleft" |
|
99 }, |
|
100 { |
|
101 "events": [ |
|
102 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
103 {"type": "pointermove", "points": [{"x": 1, "y": 1.5, "identifier": 1}]}, |
|
104 {"type": "pointerup", "points": [{"x": 1, "y": 1.5, "identifier": 1}]} |
|
105 ], |
|
106 "expectedGestures": "swipedown" |
|
107 }, |
|
108 { |
|
109 "events": [ |
|
110 {"type": "pointerdown", "points": [{"x": 1, "y": 1.5, "identifier": 1}]}, |
|
111 {"type": "pointermove", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
112 {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]} |
|
113 ], |
|
114 "expectedGestures": "swipeup" |
|
115 }, |
|
116 { |
|
117 "events": [ |
|
118 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
119 {"type": "pointermove", |
|
120 "points": [{"x": 1.5, "y": 1.1, "identifier": 1}]}, |
|
121 {"type": "pointerup", "points": [{"x": 1.5, "y": 1.1, "identifier": 1}]} |
|
122 ], |
|
123 "expectedGestures": "swiperight" |
|
124 }, |
|
125 { |
|
126 "events": [ |
|
127 {"type": "pointerdown", |
|
128 "points": [{"x": 1.5, "y": 1.1, "identifier": 1}]}, |
|
129 {"type": "pointermove", "points": [{"x": 1, "y": 0.95, "identifier": 1}]}, |
|
130 {"type": "pointerup", "points": [{"x": 1, "y": 0.95, "identifier": 1}]} |
|
131 ], |
|
132 "expectedGestures": "swipeleft" |
|
133 }, |
|
134 { |
|
135 "events": [ |
|
136 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
137 {"type": "pointermove", |
|
138 "points": [{"x": 0.9, "y": 1.5, "identifier": 1}]}, |
|
139 {"type": "pointerup", "points": [{"x": 0.9, "y": 1.5, "identifier": 1}]} |
|
140 ], |
|
141 "expectedGestures": "swipedown" |
|
142 }, |
|
143 { |
|
144 "events": [ |
|
145 {"type": "pointerdown", |
|
146 "points": [{"x": 1.1, "y": 1.5, "identifier": 1}]}, |
|
147 {"type": "pointermove", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
148 {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]} |
|
149 ], |
|
150 "expectedGestures": "swipeup" |
|
151 }, |
|
152 { |
|
153 "events": [ |
|
154 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}, |
|
155 {"x": 1, "y": 1.5, "identifier": 2}]}, |
|
156 {"type": "pointermove", "points": [{"x": 1.5, "y": 1, "identifier": 1}, |
|
157 {"x": 1.5, "y": 1.5, "identifier": 2}]}, |
|
158 {"type": "pointerup", "points": [{"x": 1.5, "y": 1, "identifier": 1}, |
|
159 {"x": 1.5, "y": 1.5, "identifier": 2}]} |
|
160 ], |
|
161 "expectedGestures": "swiperight" |
|
162 }, |
|
163 { |
|
164 "events": [ |
|
165 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}, |
|
166 {"x": 1, "y": 1.5, "identifier": 2}]}, |
|
167 {"type": "pointermove", "points": [{"x": 1.5, "y": 1, "identifier": 1}, |
|
168 {"x": 1.5, "y": 1.5, "identifier": 2}]}, |
|
169 {"type": "pointerup", "points": [{"x": 1.5, "y": 1, "identifier": 1}]}, |
|
170 {"type": "pointerup", "points": [{"x": 1.5, "y": 1.5, "identifier": 2}]} |
|
171 ], |
|
172 "expectedGestures": "swiperight" |
|
173 }, |
|
174 { |
|
175 "events": [ |
|
176 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}, |
|
177 {"x": 1, "y": 1.5, "identifier": 2}, |
|
178 {"x": 1, "y": 2, "identifier": 3}]}, |
|
179 {"type": "pointermove", "points": [{"x": 1.5, "y": 1, "identifier": 1}, |
|
180 {"x": 1.5, "y": 1.5, "identifier": 2}, |
|
181 {"x": 1.5, "y": 2, "identifier": 3}]}, |
|
182 {"type": "pointerup", "points": [{"x": 1.5, "y": 1, "identifier": 1}, |
|
183 {"x": 1.5, "y": 1.5, "identifier": 2}, |
|
184 {"x": 1.5, "y": 2, "identifier": 3}]} |
|
185 ], |
|
186 "expectedGestures": "swiperight" |
|
187 }, |
|
188 { |
|
189 "events": [ |
|
190 {"type": "pointerdown", |
|
191 "points": [{"x": 1.6, "y": 1.5, "identifier": 1}], |
|
192 "removeDwellThreshold": true}, |
|
193 {"type": "pointermove", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
194 {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]} |
|
195 ], |
|
196 "expectedGestures": ["dwell", "explore", "exploreend"] |
|
197 }, |
|
198 { |
|
199 "events": [ |
|
200 {"type": "pointerdown", |
|
201 "points": [{"x": 1.6, "y": 1.5, "identifier": 1}], |
|
202 "removeDwellThreshold": true}, |
|
203 {"type": "pointermove", "points": [{"x": 1, "y": 1, "identifier": 1}]}, |
|
204 {"type": "pointermove", "points": [{"x": 2, "y": 2, "identifier": 1}]}, |
|
205 {"type": "pointerup", "points": [{"x": 2, "y": 2, "identifier": 1}]} |
|
206 ], |
|
207 "expectedGestures": ["dwell", "explore", "explore", "exploreend"] |
|
208 }, |
|
209 { |
|
210 "events": [ |
|
211 {"type": "pointerdown", |
|
212 "points": [{"x": 1.6, "y": 1.5, "identifier": 1}]}, |
|
213 {"type": "pointermove", "points": [{"x": 1, "y": 1, "identifier": 1}], |
|
214 "removeSwipeMaxDuration": true}, |
|
215 {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]} |
|
216 ], |
|
217 "expectedGestures": ["explore", "exploreend"] |
|
218 }, |
|
219 { |
|
220 "events": [ |
|
221 {"type": "pointerdown", "points": [{"x": 1, "y": 1.5, "identifier": 1}]}, |
|
222 {"type": "pointermove", "points": [{"x": 1, "y": 1, "identifier": 1}], |
|
223 "removeSwipeMaxDuration": true}, |
|
224 {"type": "pointermove", "points": [{"x": 1.5, "y": 1, "identifier": 1}]}, |
|
225 {"type": "pointerup", "points": [{"x": 1.5, "y": 1, "identifier": 1}]} |
|
226 ], |
|
227 "expectedGestures": ["explore", "explore", "exploreend"] |
|
228 }, |
|
229 { |
|
230 "events": [ |
|
231 {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}], |
|
232 "removeDwellThreshold": true}, |
|
233 {"type": "pointermove", |
|
234 "points": [{"x": 1.5, "y": 1.5, "identifier": 1}]}, |
|
235 {"type": "pointermove", |
|
236 "points": [{"x": 1.55, "y": 1.5, "identifier": 1}]}, |
|
237 {"type": "pointermove", |
|
238 "points": [{"x": 1.6, "y": 1.5, "identifier": 1}]}, |
|
239 {"type": "pointermove", |
|
240 "points": [{"x": 1.65, "y": 1.5, "identifier": 1}]}, |
|
241 {"type": "pointermove", |
|
242 "points": [{"x": 1.7, "y": 1.5, "identifier": 1}]}, |
|
243 {"type": "pointermove", |
|
244 "points": [{"x": 1.75, "y": 1.5, "identifier": 1}]}, |
|
245 {"type": "pointerup", "points": [{"x": 1.75, "y": 1.5, "identifier": 1}]} |
|
246 ], |
|
247 "expectedGestures": ["dwell", "explore", "explore", "exploreend"] |
|
248 } |
|
249 ] |