accessible/tests/mochitest/jsat/gestures.json

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

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

mercurial