| <!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> |
| // TODO(bokan) - This test is a temporary stop-gap to prevent regressing |
| // partially fixed pinch-zoom on desktops. This test uses very large error |
| // bounds on offset to account for existing bugs. Once those are fixed and |
| // the non -desktop.html version of the test is passing this test can be |
| // removed. |
| |
| const TOUCH_INPUT = GestureSourceType.TOUCH_INPUT; |
| |
| const t = async_test( |
| "This tests that gpuBenchmarking.pinchBy is relatively accurate when zooming in slowly for touchscreen pinch."); |
| const testCases = [ |
| { startingScale: 1, scale: 3, speed: 100, gestureSource: TOUCH_INPUT, msg: "Zooming in slowly" }, |
| ]; |
| addEventListener('load', () => { |
| runAllTestCasesDesktop(t, testCases).then(t.done.bind(t)); |
| }); |
| </script> |
| <div></div> |