chromium/third_party/blink/web_tests/virtual/threaded/synthetic_gestures/synthetic-pinch-zoom-gesture-touchpad-desktop.html

<!DOCTYPE html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../../resources/gesture-util.js"></script>
<link href="synthetic-pinch-zoom-gesture.css" rel="stylesheet">
<script src="synthetic-pinch-zoom-gesture.js"></script>

<script>
  // This is a less strict version of synthetic-pinch-zoom-gesture-touchpad.html
  // See synthetic-pinch-zoom-gesture.js.

  const MOUSE_INPUT = GestureSourceType.MOUSE_INPUT;

  const t = async_test(
      "This tests that gpuBenchmarking.pinchBy is relatively accurate for quick touchpad pinch gestures.");
  const testCases = [
    { startingScale: 1, scale: 3, speed: 1000, gestureSource: MOUSE_INPUT, msg: "Zooming in quickly" },
    { startingScale: 3, scale: 0.5, speed: 1000, gestureSource: MOUSE_INPUT, msg: "Zooming out quickly" },
    { startingScale: 1, scale: 3, speed: 50000, gestureSource: MOUSE_INPUT, msg: "Zooming in instantly" },
    { startingScale: 4, scale: 0.5, speed: 50000, gestureSource: MOUSE_INPUT, msg: "Zooming out instantly" },
  ];
  addEventListener('load', () => {
    runAllTestCasesDesktop(t, testCases).then(t.done.bind(t));
  });
</script>
<div></div>