Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Errors
- This test gets skipped with pattern: os == 'linux' && os_version == '22.04' && display == 'wayland' OR os == 'linux' && os_version == '24.04' && processor == 'x86_64' && display == 'x11'
- This test failed 9 times in the preceding 30 days. quicksearch this test
- Manifest: gfx/layers/apz/test/mochitest/mochitest.toml
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Various touch tests that spawn in new windows (5)</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <script type="application/javascript" src="apz_test_native_event_utils.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">
// Increase the tap timeouts so the double-tap is still detected in case of
// random delays during testing.
var doubletap_prefs = [
  ["ui.click_hold_context_menus.delay", 10000],
  ["apz.max_tap_time", 10000],
];
var subtests = [
  // tests that scrolling doesn't cause extra SchedulePaint calls
  {"file": "helper_bug1669625.html", "dp_suppression": false},
  {"file": "helper_overscroll_in_apz_test_data.html", "prefs": [
    ["apz.overscroll.enabled", true],
    ["apz.overscroll.test_async_scroll_offset.enabled", true],
    ["apz.test.logging_enabled", true],
  ]},
  {"file": "helper_bug1719855.html?prevent=contextmenu"},
  {"file": "helper_bug1719855.html"},
  {"file": "helper_bug1724759.html"},
  {"file": "helper_bug1806400.html", "prefs": [
    // This test uses `SimpleTest.promiseWaitForCondition` which waits for the
    // given condition up to 3s, to avoid opening context menu during the time
    // span use a longer `ui.click_hold_context_menus.delay` here.
    ["ui.click_hold_context_menus.delay", 10000],
    ["ui.touch_activation.duration_ms", 1000]
  ]},
  {"file": "helper_bug1806400-2.html", "prefs": doubletap_prefs},
  {"file": "helper_bug1806400-3.html", "prefs": [
    ["ui.touch_activation.duration_ms", 90000]
  ]},
  {"file": "helper_bug1806400-4.html", "prefs": doubletap_prefs},
  // Add new subtests to test_group_touch_events-N.html (for largest N),
  // not this file.
];
// The following tests intermittently fail on Linux.
if (getPlatform() != "linux") {
  subtests.push(
    {"file": "helper_touch_drag_root_scrollbar.html", "prefs": [["apz.allow_zooming", true]]});
  // apz.allow_zooming=false is quite broken on Android
  if (getPlatform() != "android") {
    subtests.push(
      {"file": "helper_touch_drag_root_scrollbar.html", "prefs": [["apz.allow_zooming", false]]});
  }
}
if (isApzEnabled()) {
  ok(window.TouchEvent, "Check if TouchEvent is supported (it should be, the test harness forces it on everywhere)");
  if (getPlatform() == "android") {
    // This has a lot of subtests, and Android emulators are slow.
    SimpleTest.requestLongerTimeout(2);
  }
  SimpleTest.waitForExplicitFinish();
  window.onload = function() {
    runSubtestsSeriallyInFreshWindows(subtests)
    .then(SimpleTest.finish, SimpleTest.finishWithFailure);
  };
}
  </script>
</head>
<body>
</body>
</html>