зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1697416. Fix helper_bug1299195.html when double tap to zoom is enabled on mac. r=botond
The test send two taps, which triggers a double tap zoom if it's enabled, and then the test doesn't get the expected events. So change the test to disable zooming and then enable the meta viewport pref so that we respect it on desktop. Differential Revision: https://phabricator.services.mozilla.com/D107791
This commit is contained in:
Родитель
f8bbd23197
Коммит
e541ae5b11
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width; initial-scale=1.0">
|
||||
<meta name="viewport" content="width=device-width; initial-scale=1.0; user-scalable=no">
|
||||
<title>Test pointer events are dispatched once for touch tap</title>
|
||||
<script src="/tests/SimpleTest/paint_listener.js"></script>
|
||||
<script type="application/javascript" src="apz_test_utils.js"></script>
|
||||
|
|
|
@ -13,10 +13,11 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1285070
|
|||
<script type="application/javascript">
|
||||
|
||||
let isWindows = navigator.platform.indexOf("Win") == 0;
|
||||
let isMac = getPlatform() == "mac";
|
||||
var touch_action_prefs = getPrefs("TOUCH_ACTION");
|
||||
var subtests = [
|
||||
{"file": "helper_bug1285070.html"},
|
||||
{"file": "helper_bug1299195.html"},
|
||||
{"file": "helper_bug1299195.html", "prefs": [["dom.meta-viewport.enabled", isMac]]},
|
||||
{"file": "helper_bug1414336.html", "prefs": [["apz.test.fails_with_native_injection", isWindows]]},
|
||||
{"file": "helper_bug1502010_unconsumed_pan.html"},
|
||||
{"file": "helper_bug1544966_zoom_on_touch_action_none.html", "prefs": [...touch_action_prefs]},
|
||||
|
|
Загрузка…
Ссылка в новой задаче