summaryrefslogtreecommitdiffstats
path: root/gfx/layers/apz/test/mochitest/test_group_pointerevents.html
blob: 21fa4585de8d19484c58bed3e8e342454fede228 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1285070
-->
<head>
  <meta charset="utf-8">
  <title>Test for Bug 1285070</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <script type="application/javascript" src="apz_test_utils.js"></script>
  <script type="application/javascript" src="apz_test_native_event_utils.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  <script type="application/javascript">

  let isWindows = navigator.platform.indexOf("Win") == 0;
  let isMac = getPlatform() == "mac";
  var touch_action_prefs = getPrefs("TOUCH_ACTION");
  var subtests = [
    {"file": "helper_bug1285070.html"},
    {"file": "helper_bug1299195.html", "prefs": [["dom.meta-viewport.enabled", isMac]]},
    {"file": "helper_bug1414336.html", "prefs": [["apz.test.fails_with_native_injection", isWindows]]},
    {"file": "helper_bug1502010_unconsumed_pan.html"},
    {"file": "helper_bug1544966_zoom_on_touch_action_none.html", "prefs": touch_action_prefs},
    {"file": "helper_bug1648491_no_pointercancel_with_dtc.html", "prefs": touch_action_prefs},
    {"file": "helper_bug1663731_no_pointercancel_on_second_touchstart.html",
     "prefs": touch_action_prefs},
    {"file": "helper_bug1682170_pointercancel_on_touchaction_pinchzoom.html",
     "prefs": touch_action_prefs},
  ];

  if (isApzEnabled()) {
    SimpleTest.waitForExplicitFinish();
    window.onload = function() {
      runSubtestsSeriallyInFreshWindows(subtests)
      .then(SimpleTest.finish, SimpleTest.finishWithFailure);
    };
  }

  </script>
</head>
<body>
</body>
</html>