summaryrefslogtreecommitdiffstats
path: root/gfx/layers/apz/test/mochitest/test_group_overrides.html
blob: 434c32d24e69d7776bd1be1998489b992c986988 (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
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Various tests for event regions overrides</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <script type="application/javascript" src="apz_test_utils.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  <script type="application/javascript">

var prefs = [
  // turn off smooth scrolling so that we don't have to wait for
  // APZ animations to finish before sampling the scroll offset
  ["general.smoothScroll", false],
  // Increase the content response timeout because these tests do preventDefault
  // and we want to make sure APZ actually waits for them.
  ["apz.content_response_timeout", 10000],
];

var subtests = [
  {"file": "helper_override_root.html", "prefs": prefs},
  {"file": "helper_override_subdoc.html", "prefs": prefs},
];

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

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