accessible/tests/mochitest/jsat/gestures.json

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/tests/mochitest/jsat/gestures.json	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,249 @@
     1.4 +[
     1.5 +  {
     1.6 +    "events": [
     1.7 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]},
     1.8 +      {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]}
     1.9 +    ],
    1.10 +    "expectedGestures": "tap"
    1.11 +  },
    1.12 +  {
    1.13 +    "events": [
    1.14 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.15 +      {"type": "pointermove",
    1.16 +        "points": [{"x": 1.03, "y": 1.03, "identifier": 1}]},
    1.17 +      {"type": "pointerup", "points": [{"x": 1.03, "y": 1.03, "identifier": 1}]}
    1.18 +    ],
    1.19 +    "expectedGestures": "tap"
    1.20 +  },
    1.21 +  {
    1.22 +    "events": [
    1.23 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}],
    1.24 +        "removeDwellThreshold": true},
    1.25 +      {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]}
    1.26 +    ],
    1.27 +    "expectedGestures": ["dwell", "dwellend"]
    1.28 +  },
    1.29 +  {
    1.30 +    "events": [
    1.31 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.32 +      {"type": "pointermove",
    1.33 +        "points": [{"x": 1.03, "y": 1.02, "identifier": 1}]},
    1.34 +      {"type": "pointerup",
    1.35 +        "points": [{"x": 1.03, "y": 1.02, "identifier": 1}]},
    1.36 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.37 +      {"type": "pointermove",
    1.38 +        "points": [{"x": 0.97, "y": 1.01, "identifier": 1}]},
    1.39 +      {"type": "pointerup",
    1.40 +        "points": [{"x": 0.97, "y": 1.01, "identifier": 1}]}
    1.41 +    ],
    1.42 +    "expectedGestures": ["tap", "doubletap"]
    1.43 +  },
    1.44 +  {
    1.45 +    "events": [
    1.46 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.47 +      {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.48 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.49 +      {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.50 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.51 +      {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]}
    1.52 +    ],
    1.53 +    "expectedGestures": ["tap", "doubletap", "tripletap"]
    1.54 +  },
    1.55 +  {
    1.56 +    "events": [
    1.57 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.58 +      {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.59 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.60 +      {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.61 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}],
    1.62 +        "removeDwellThreshold": true},
    1.63 +      {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]}
    1.64 +    ],
    1.65 +    "expectedGestures": ["tap", "doubletap", "doubletaphold",
    1.66 +      "doubletapholdend"]
    1.67 +  },
    1.68 +  {
    1.69 +    "events": [
    1.70 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.71 +      {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.72 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}],
    1.73 +        "removeDwellThreshold": true},
    1.74 +      {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]}
    1.75 +    ],
    1.76 +    "expectedGestures": ["tap", "taphold", "tapholdend"]
    1.77 +  },
    1.78 +  {
    1.79 +    "events": [
    1.80 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.81 +      {"type": "pointermove", "points": [{"x": 1.5, "y": 1, "identifier": 1}]},
    1.82 +      {"type": "pointerup", "points": [{"x": 1.5, "y": 1, "identifier": 1}]}
    1.83 +    ],
    1.84 +    "expectedGestures": "swiperight"
    1.85 +  },
    1.86 +  {
    1.87 +    "events": [
    1.88 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.89 +      {"type": "pointermove", "points": [{"x": 1.15, "y": 1, "identifier": 1}]},
    1.90 +      {"type": "pointermove", "points": [{"x": 1.3, "y": 1, "identifier": 1}]},
    1.91 +      {"type": "pointerup", "points": [{"x": 1.3, "y": 1, "identifier": 1}]}
    1.92 +    ],
    1.93 +    "expectedGestures": "swiperight"
    1.94 +  },
    1.95 +  {
    1.96 +    "events": [
    1.97 +      {"type": "pointerdown", "points": [{"x": 1.5, "y": 1, "identifier": 1}]},
    1.98 +      {"type": "pointermove", "points": [{"x": 1, "y": 1, "identifier": 1}]},
    1.99 +      {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]}
   1.100 +    ],
   1.101 +    "expectedGestures": "swipeleft"
   1.102 +  },
   1.103 +  {
   1.104 +    "events": [
   1.105 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]},
   1.106 +      {"type": "pointermove", "points": [{"x": 1, "y": 1.5, "identifier": 1}]},
   1.107 +      {"type": "pointerup", "points": [{"x": 1, "y": 1.5, "identifier": 1}]}
   1.108 +    ],
   1.109 +    "expectedGestures": "swipedown"
   1.110 +  },
   1.111 +  {
   1.112 +    "events": [
   1.113 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1.5, "identifier": 1}]},
   1.114 +      {"type": "pointermove", "points": [{"x": 1, "y": 1, "identifier": 1}]},
   1.115 +      {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]}
   1.116 +    ],
   1.117 +    "expectedGestures": "swipeup"
   1.118 +  },
   1.119 +  {
   1.120 +    "events": [
   1.121 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]},
   1.122 +      {"type": "pointermove",
   1.123 +        "points": [{"x": 1.5, "y": 1.1, "identifier": 1}]},
   1.124 +      {"type": "pointerup", "points": [{"x": 1.5, "y": 1.1, "identifier": 1}]}
   1.125 +    ],
   1.126 +    "expectedGestures": "swiperight"
   1.127 +  },
   1.128 +  {
   1.129 +    "events": [
   1.130 +      {"type": "pointerdown",
   1.131 +        "points": [{"x": 1.5, "y": 1.1, "identifier": 1}]},
   1.132 +      {"type": "pointermove", "points": [{"x": 1, "y": 0.95, "identifier": 1}]},
   1.133 +      {"type": "pointerup", "points": [{"x": 1, "y": 0.95, "identifier": 1}]}
   1.134 +    ],
   1.135 +    "expectedGestures": "swipeleft"
   1.136 +  },
   1.137 +  {
   1.138 +    "events": [
   1.139 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}]},
   1.140 +      {"type": "pointermove",
   1.141 +        "points": [{"x": 0.9, "y": 1.5, "identifier": 1}]},
   1.142 +      {"type": "pointerup", "points": [{"x": 0.9, "y": 1.5, "identifier": 1}]}
   1.143 +    ],
   1.144 +    "expectedGestures": "swipedown"
   1.145 +  },
   1.146 +  {
   1.147 +    "events": [
   1.148 +      {"type": "pointerdown",
   1.149 +        "points": [{"x": 1.1, "y": 1.5, "identifier": 1}]},
   1.150 +      {"type": "pointermove", "points": [{"x": 1, "y": 1, "identifier": 1}]},
   1.151 +      {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]}
   1.152 +    ],
   1.153 +    "expectedGestures": "swipeup"
   1.154 +  },
   1.155 +  {
   1.156 +    "events": [
   1.157 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1},
   1.158 +        {"x": 1, "y": 1.5, "identifier": 2}]},
   1.159 +      {"type": "pointermove", "points": [{"x": 1.5, "y": 1, "identifier": 1},
   1.160 +        {"x": 1.5, "y": 1.5, "identifier": 2}]},
   1.161 +      {"type": "pointerup", "points": [{"x": 1.5, "y": 1, "identifier": 1},
   1.162 +        {"x": 1.5, "y": 1.5, "identifier": 2}]}
   1.163 +    ],
   1.164 +    "expectedGestures": "swiperight"
   1.165 +  },
   1.166 +  {
   1.167 +    "events": [
   1.168 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1},
   1.169 +        {"x": 1, "y": 1.5, "identifier": 2}]},
   1.170 +      {"type": "pointermove", "points": [{"x": 1.5, "y": 1, "identifier": 1},
   1.171 +        {"x": 1.5, "y": 1.5, "identifier": 2}]},
   1.172 +      {"type": "pointerup", "points": [{"x": 1.5, "y": 1, "identifier": 1}]},
   1.173 +      {"type": "pointerup", "points": [{"x": 1.5, "y": 1.5, "identifier": 2}]}
   1.174 +    ],
   1.175 +    "expectedGestures": "swiperight"
   1.176 +  },
   1.177 +  {
   1.178 +    "events": [
   1.179 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1},
   1.180 +        {"x": 1, "y": 1.5, "identifier": 2},
   1.181 +        {"x": 1, "y": 2, "identifier": 3}]},
   1.182 +      {"type": "pointermove", "points": [{"x": 1.5, "y": 1, "identifier": 1},
   1.183 +        {"x": 1.5, "y": 1.5, "identifier": 2},
   1.184 +        {"x": 1.5, "y": 2, "identifier": 3}]},
   1.185 +      {"type": "pointerup", "points": [{"x": 1.5, "y": 1, "identifier": 1},
   1.186 +        {"x": 1.5, "y": 1.5, "identifier": 2},
   1.187 +        {"x": 1.5, "y": 2, "identifier": 3}]}
   1.188 +    ],
   1.189 +    "expectedGestures": "swiperight"
   1.190 +  },
   1.191 +  {
   1.192 +    "events": [
   1.193 +      {"type": "pointerdown",
   1.194 +        "points": [{"x": 1.6, "y": 1.5, "identifier": 1}],
   1.195 +        "removeDwellThreshold": true},
   1.196 +      {"type": "pointermove", "points": [{"x": 1, "y": 1, "identifier": 1}]},
   1.197 +      {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]}
   1.198 +    ],
   1.199 +    "expectedGestures": ["dwell", "explore", "exploreend"]
   1.200 +  },
   1.201 +  {
   1.202 +    "events": [
   1.203 +      {"type": "pointerdown",
   1.204 +        "points": [{"x": 1.6, "y": 1.5, "identifier": 1}],
   1.205 +        "removeDwellThreshold": true},
   1.206 +      {"type": "pointermove", "points": [{"x": 1, "y": 1, "identifier": 1}]},
   1.207 +      {"type": "pointermove", "points": [{"x": 2, "y": 2, "identifier": 1}]},
   1.208 +      {"type": "pointerup", "points": [{"x": 2, "y": 2, "identifier": 1}]}
   1.209 +    ],
   1.210 +    "expectedGestures": ["dwell", "explore", "explore", "exploreend"]
   1.211 +  },
   1.212 +  {
   1.213 +    "events": [
   1.214 +      {"type": "pointerdown",
   1.215 +        "points": [{"x": 1.6, "y": 1.5, "identifier": 1}]},
   1.216 +      {"type": "pointermove", "points": [{"x": 1, "y": 1, "identifier": 1}],
   1.217 +        "removeSwipeMaxDuration": true},
   1.218 +      {"type": "pointerup", "points": [{"x": 1, "y": 1, "identifier": 1}]}
   1.219 +    ],
   1.220 +    "expectedGestures": ["explore", "exploreend"]
   1.221 +  },
   1.222 +  {
   1.223 +    "events": [
   1.224 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1.5, "identifier": 1}]},
   1.225 +      {"type": "pointermove", "points": [{"x": 1, "y": 1, "identifier": 1}],
   1.226 +        "removeSwipeMaxDuration": true},
   1.227 +      {"type": "pointermove", "points": [{"x": 1.5, "y": 1, "identifier": 1}]},
   1.228 +      {"type": "pointerup", "points": [{"x": 1.5, "y": 1, "identifier": 1}]}
   1.229 +    ],
   1.230 +    "expectedGestures": ["explore", "explore", "exploreend"]
   1.231 +  },
   1.232 +  {
   1.233 +    "events": [
   1.234 +      {"type": "pointerdown", "points": [{"x": 1, "y": 1, "identifier": 1}],
   1.235 +        "removeDwellThreshold": true},
   1.236 +      {"type": "pointermove",
   1.237 +        "points": [{"x": 1.5, "y": 1.5, "identifier": 1}]},
   1.238 +      {"type": "pointermove",
   1.239 +        "points": [{"x": 1.55, "y": 1.5, "identifier": 1}]},
   1.240 +      {"type": "pointermove",
   1.241 +        "points": [{"x": 1.6, "y": 1.5, "identifier": 1}]},
   1.242 +      {"type": "pointermove",
   1.243 +        "points": [{"x": 1.65, "y": 1.5, "identifier": 1}]},
   1.244 +      {"type": "pointermove",
   1.245 +        "points": [{"x": 1.7, "y": 1.5, "identifier": 1}]},
   1.246 +      {"type": "pointermove",
   1.247 +        "points": [{"x": 1.75, "y": 1.5, "identifier": 1}]},
   1.248 +      {"type": "pointerup", "points": [{"x": 1.75, "y": 1.5, "identifier": 1}]}
   1.249 +    ],
   1.250 +    "expectedGestures": ["dwell", "explore", "explore", "exploreend"]
   1.251 +  }
   1.252 +]

mercurial