Bug 1700365 - Add workaround that disables zoom to focused input. r=masayuki

This test is often failure on debug build due to zoom to focused input.

Depends on D110198

Differential Revision: https://phabricator.services.mozilla.com/D111366
This commit is contained in:
Makoto Kato 2021-04-09 09:25:36 +00:00
parent 3ed8588b5a
commit ef3c3e56b4

View File

@ -48,6 +48,11 @@ function starttest() {
check = true; check = true;
} }
if (navigator.appVersion.includes("Android")) {
// This is the workaround for test failure on debug build.
await SpecialPowers.pushPrefEnv({set: [["apz.zoom-to-focused-input.enabled", false]]});
}
/* test send* functions */ /* test send* functions */
$("testMouseEvent").addEventListener("click", doCheck, {once: true}); $("testMouseEvent").addEventListener("click", doCheck, {once: true});
sendMouseEvent({type:'click'}, "testMouseEvent"); sendMouseEvent({type:'click'}, "testMouseEvent");