author Cosmin Sabou <>
Sun, 05 Feb 2023 19:37:33 +0000
changeset 651812 d8601249f1eb8c52c742b0c19c9ca0fa8f2e31fe
parent 596076 3e844ac540bd6a0d8595bfdaefbaa5e291b75eb0
permissions -rw-r--r--
Bug 1806090 - temporarily disable browser_quickactions.js on linux for frequent failures. r=intermittent-reviewers,MasterWayZ Differential Revision:

  <meta charset="utf-8">
  <meta name="viewport" content="width=2100"/>
  <title>Check that double tapping when zoomed out and there is nothing to zoom to does not zoom in if this is a non-passive wheel listener</title>
  <script src="apz_test_native_event_utils.js"></script>
  <script src="apz_test_utils.js"></script>
  <script src="/tests/SimpleTest/paint_listener.js"></script>

function aListener() {
  info("aListener called");

async function test() {
  let useTouchpad = ( == "?touchpad");

  let resolution = await getResolution();
  ok(resolution > 0,
     "The initial_resolution is " + resolution + ", which is some sane value");

  document.getElementById("thebody").addEventListener('wheel', aListener, {passive: false});
  await promiseApzFlushedRepaints();

  // Check that double-tapping does not zoom in
  info("sending first double tap");
  await doubleTapOn(document.getElementById("thebody"), 20, 20, useTouchpad);
  let prev_resolution = resolution;
  resolution = await getResolution();
  ok(resolution == prev_resolution, "The first double-tap did not change the resolution: " + resolution);

.then(subtestDone, subtestFailed);

  body, html {margin: 0; width: 100%; height: 100%;}
<body id="thebody">