mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1771822 - Do not explicitly set apz.allow_zooming in mochitests. r=tnikkel
We can't do likewise for reftests and web platform tests because those test suites disable apz.allow_zooming by default on android. Differential Revision: https://phabricator.services.mozilla.com/D151576
This commit is contained in:
parent
245d56e9c5
commit
fea611dcac
@ -2,7 +2,6 @@ function scaleRatio(scale) {
|
||||
return {
|
||||
set: [
|
||||
["layout.css.devPixelsPerPx", "" + scale],
|
||||
["apz.allow_zooming", true],
|
||||
["dom.meta-viewport.enabled", true],
|
||||
],
|
||||
};
|
||||
|
@ -10,7 +10,6 @@
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
SpecialPowers.pushPrefEnv({
|
||||
"set": [
|
||||
["apz.allow_zooming", true],
|
||||
["dom.meta-viewport.enabled", true],
|
||||
]
|
||||
}, () => {
|
||||
|
@ -1,6 +1,4 @@
|
||||
[DEFAULT]
|
||||
prefs =
|
||||
apz.allow_zooming=true
|
||||
support-files =
|
||||
apz_test_native_event_utils.js
|
||||
apz_test_utils.js
|
||||
|
@ -27,7 +27,6 @@
|
||||
var zoom_and_pan_prefs = [
|
||||
...prefs,
|
||||
...getPrefs("TOUCH_EVENTS:PAN"),
|
||||
["apz.allow_zooming", true],
|
||||
];
|
||||
|
||||
var no_multiplier_prefs = [
|
||||
|
@ -21,9 +21,6 @@ const prefs = [
|
||||
// test takes too long the displayport can expire before we read the value
|
||||
// out of the test. So we disable displayport expiry for these tests.
|
||||
["apz.displayport_expiry_ms", 0],
|
||||
// Explicitly enable pinch-zooming, so this test can run on desktop
|
||||
// even though zooming isn't enabled by default on desktop yet.
|
||||
["apz.allow_zooming", true],
|
||||
// Similarly, explicitly enable support for meta viewport tags (which the
|
||||
// test cases use) so they're processed even on desktop.
|
||||
["dom.meta-viewport.enabled", true],
|
||||
|
@ -15,20 +15,13 @@ var subtests = [
|
||||
// clicking on element with :active::after CSS property
|
||||
{"file": "helper_bug1473108.html"},
|
||||
// Resetting isFirstPaint shouldn't clobber the visual viewport
|
||||
{"file": "helper_bug1509575.html", "prefs": [
|
||||
["apz.allow_zooming", true],
|
||||
...getPrefs("TOUCH_EVENTS:PAN")
|
||||
]},
|
||||
{"file": "helper_bug1509575.html", "prefs": getPrefs("TOUCH_EVENTS:PAN")},
|
||||
// Exercise one of the main-thread touch-action determination codepaths.
|
||||
{"file": "helper_bug1506497_touch_action_fixed_on_fixed.html", "prefs": touch_action_prefs},
|
||||
{"file": "helper_bug1637113_main_thread_hit_test.html",
|
||||
"prefs": [["apz.allow_zooming", true]]},
|
||||
{"file": "helper_bug1638458_contextmenu.html",
|
||||
"prefs": [["apz.allow_zooming", true]]},
|
||||
{"file": "helper_bug1638441_fixed_pos_hit_test.html",
|
||||
"prefs": [["apz.allow_zooming", true]]},
|
||||
{"file": "helper_bug1637135_narrow_viewport.html", "prefs": [["apz.allow_zooming", true],
|
||||
["dom.meta-viewport.enabled", true]]},
|
||||
{"file": "helper_bug1637113_main_thread_hit_test.html"},
|
||||
{"file": "helper_bug1638458_contextmenu.html"},
|
||||
{"file": "helper_bug1638441_fixed_pos_hit_test.html"},
|
||||
{"file": "helper_bug1637135_narrow_viewport.html", "prefs": [["dom.meta-viewport.enabled", true]]},
|
||||
{"file": "helper_bug1714934_mouseevent_buttons.html"},
|
||||
|
||||
// Add new subtests here. If this starts timing out because it's taking too
|
||||
|
@ -24,9 +24,6 @@ var prefs = [
|
||||
// test takes too long the displayport can expire before we read the value
|
||||
// out of the test. So we disable displayport expiry for these tests.
|
||||
["apz.displayport_expiry_ms", 0],
|
||||
// Explicitly enable pinch-zooming, so this test can run on desktop
|
||||
// even though zooming isn't enabled by default on desktop yet.
|
||||
["apz.allow_zooming", true],
|
||||
// Increase the content response timeout because some tests do preventDefault
|
||||
// and we want to make sure APZ actually waits for them.
|
||||
["apz.content_response_timeout", 60000],
|
||||
|
@ -23,9 +23,6 @@ var prefs = [
|
||||
// test takes too long the displayport can expire before we read the value
|
||||
// out of the test. So we disable displayport expiry for these tests.
|
||||
["apz.displayport_expiry_ms", 0],
|
||||
// Explicitly enable pinch-zooming, so this test can run on desktop
|
||||
// even though zooming isn't enabled by default on desktop yet.
|
||||
["apz.allow_zooming", true],
|
||||
// Increase the content response timeout because some tests do preventDefault
|
||||
// and we want to make sure APZ actually waits for them.
|
||||
["apz.content_response_timeout", 60000],
|
||||
|
@ -10,10 +10,7 @@ add_task(async () => {
|
||||
}
|
||||
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["apz.allow_zooming", true],
|
||||
["dom.meta-viewport.enabled", true],
|
||||
],
|
||||
set: [["dom.meta-viewport.enabled", true]],
|
||||
});
|
||||
|
||||
const fissionWindow = await BrowserTestUtils.openNewBrowserWindow({
|
||||
|
@ -10,7 +10,6 @@ SpecialPowers.pushPrefEnv(
|
||||
{
|
||||
set: [
|
||||
["dom.meta-viewport.enabled", true],
|
||||
["apz.allow_zooming", true],
|
||||
],
|
||||
},
|
||||
function() {
|
||||
|
Loading…
Reference in New Issue
Block a user