diff options
Diffstat (limited to 'gfx/layers/apz/test/mochitest/helper_test_reset_scaling_zoom.html')
-rw-r--r-- | gfx/layers/apz/test/mochitest/helper_test_reset_scaling_zoom.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gfx/layers/apz/test/mochitest/helper_test_reset_scaling_zoom.html b/gfx/layers/apz/test/mochitest/helper_test_reset_scaling_zoom.html new file mode 100644 index 0000000000..31779410da --- /dev/null +++ b/gfx/layers/apz/test/mochitest/helper_test_reset_scaling_zoom.html @@ -0,0 +1,23 @@ +<html><head> +<script src="/tests/SimpleTest/SimpleTest.js"></script> +<script src='/tests/SimpleTest/paint_listener.js'></script> +<script src='apz_test_utils.js'></script> +<script src='apz_test_native_event_utils.js'></script> +<script> +async function doZoomIn() { + await waitUntilApzStable(); + await pinchZoomInWithTouch(100, 100); + await promiseOnlyApzControllerFlushed(); +} + +// Silence SimpleTest warning about missing assertions by having it wait +// indefinitely. We don't need to give it an explicit finish because the +// entire window this test runs in will be closed after subtestDone is called. +SimpleTest.waitForExplicitFinish(); +</script> +</head> +<body> +Here is some text to stare at as the test runs. It serves no functional +purpose, but gives you an idea of the zoom level. It's harder to tell what +the zoom level is when the page is just solid white. +</body></html> |