зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1390247 - Get browser_bug295977_autoscroll_overflow.js working with APZ autoscrolling. r=kats
MozReview-Commit-ID: MQwJxtePRb --HG-- extra : rebase_source : 442d17e6ff491fcd9639e1f7524ec8acf28b8a36
This commit is contained in:
Родитель
61a286d358
Коммит
7862ebd4de
|
@ -1,10 +1,11 @@
|
|||
requestLongerTimeout(2);
|
||||
add_task(async function() {
|
||||
function pushPref(name, value) {
|
||||
return SpecialPowers.pushPrefEnv({"set": [[name, value]]});
|
||||
function pushPrefs(prefs) {
|
||||
return SpecialPowers.pushPrefEnv({"set": prefs});
|
||||
}
|
||||
|
||||
await pushPref("general.autoScroll", true);
|
||||
await pushPrefs([["general.autoScroll", true],
|
||||
["test.events.async.enabled", true]]);
|
||||
|
||||
const expectScrollNone = 0;
|
||||
const expectScrollVert = 1;
|
||||
|
@ -98,7 +99,7 @@ body > div > div {width: 1000px;height: 1000px;}\
|
|||
|
||||
let prefsChanged = (test.middlemousepastepref == false || test.middlemousepastepref == true);
|
||||
if (prefsChanged) {
|
||||
await pushPref("middlemouse.paste", test.middlemousepastepref);
|
||||
await pushPrefs([["middlemouse.paste", test.middlemousepastepref]]);
|
||||
}
|
||||
|
||||
await BrowserTestUtils.synthesizeMouse("#" + test.elem, 50, 80, { button: 1 },
|
||||
|
|
Загрузка…
Ссылка в новой задаче