diff options
Diffstat (limited to 'gfx/layers/apz/test/mochitest/test_group_double_tap_zoom.html')
-rw-r--r-- | gfx/layers/apz/test/mochitest/test_group_double_tap_zoom.html | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/gfx/layers/apz/test/mochitest/test_group_double_tap_zoom.html b/gfx/layers/apz/test/mochitest/test_group_double_tap_zoom.html new file mode 100644 index 0000000000..fe4a0784a9 --- /dev/null +++ b/gfx/layers/apz/test/mochitest/test_group_double_tap_zoom.html @@ -0,0 +1,66 @@ +<!DOCTYPE HTML> +<html> +<head> + <meta charset="utf-8"> + <title>Various zoom-related tests that spawn in new windows</title> + <script src="/tests/SimpleTest/SimpleTest.js"></script> + <script type="application/javascript" src="apz_test_utils.js"></script> + <script type="application/javascript" src="apz_test_native_event_utils.js"></script> + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> + <script type="application/javascript"> + +// Increase the tap timeouts so the double-tap is still detected in case of +// random delays during testing. +var doubletap_prefs = [ + ["ui.click_hold_context_menus.delay", 10000], + ["apz.max_tap_time", 10000], +]; + +var logging_and_doubletap_prefs = [ + ...doubletap_prefs, + ["apz.test.logging_enabled", true], +]; + +var subtests = [ + {"file": "helper_doubletap_zoom.html", "prefs": doubletap_prefs}, + {"file": "helper_doubletap_zoom_img.html", "prefs": doubletap_prefs}, + {"file": "helper_doubletap_zoom_textarea.html", "prefs": doubletap_prefs}, + {"file": "helper_doubletap_zoom_horizontal_center.html", "prefs": doubletap_prefs}, + {"file": "helper_doubletap_zoom_bug1702464.html", "prefs": doubletap_prefs}, + {"file": "helper_doubletap_zoom_large_overflow.html", "prefs": doubletap_prefs}, + {"file": "helper_doubletap_zoom_fixedpos.html", "prefs": logging_and_doubletap_prefs}, + {"file": "helper_doubletap_zoom_tallwide.html", "prefs": doubletap_prefs}, +]; + +if (getPlatform() == "mac") { + subtests.push( + {"file": "helper_doubletap_zoom.html?touchpad", "prefs": doubletap_prefs}, + {"file": "helper_doubletap_zoom_img.html?touchpad", "prefs": doubletap_prefs}, + {"file": "helper_doubletap_zoom_textarea.html?touchpad", "prefs": doubletap_prefs}, + {"file": "helper_doubletap_zoom_horizontal_center.html?touchpad", "prefs": doubletap_prefs}, + {"file": "helper_doubletap_zoom_small.html", "prefs": doubletap_prefs}, + {"file": "helper_doubletap_zoom_small.html?touchpad", "prefs": doubletap_prefs}, + {"file": "helper_doubletap_zoom_bug1702464.html?touchpad", "prefs": doubletap_prefs}, + {"file": "helper_doubletap_zoom_htmlelement.html", "prefs": doubletap_prefs}, // scrollbars don't receive events or take space on android + {"file": "helper_doubletap_zoom_htmlelement.html?touchpad", "prefs": doubletap_prefs}, + {"file": "helper_doubletap_zoom_large_overflow.html?touchpad", "prefs": doubletap_prefs}, + {"file": "helper_doubletap_zoom_fixedpos.html?touchpad", "prefs": logging_and_doubletap_prefs}, + {"file": "helper_doubletap_zoom_tallwide.html?touchpad", "prefs": doubletap_prefs}, + ); +} + +if (isApzEnabled()) { + // This has a lot of subtests, and Android emulators are slow. + SimpleTest.requestLongerTimeout(2); + SimpleTest.waitForExplicitFinish(); + window.onload = function() { + runSubtestsSeriallyInFreshWindows(subtests) + .then(SimpleTest.finish, SimpleTest.finishWithFailure); + }; +} + + </script> +</head> +<body> +</body> +</html> |