blob: a9534d718697fd7b0e4f46517f3ec4de487d13e7 [file] [log] [blame]
<!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>
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', () => {
runAllTestCases(t, testCases).then(t.done.bind(t));
});
</script>
<div></div>