mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=796156; fix test_bug574663 to drive scrolling directly; r=ehsan
This commit is contained in:
parent
89abde398d
commit
1fe483b0ba
@ -51,6 +51,11 @@ function runTest() {
|
||||
[true, false],
|
||||
[true, true],
|
||||
];
|
||||
|
||||
// grab the refresh driver, since we want to make sure
|
||||
// async scrolls happen in deterministic time
|
||||
winUtils.advanceTimeAndRefresh(1000);
|
||||
|
||||
function nextTest() {
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
if (!outstandingTests.length) {
|
||||
@ -63,7 +68,9 @@ function runTest() {
|
||||
let [ctrlKey, isMomentum] = outstandingTests.shift();
|
||||
let scrollTopBefore = scrollbox.scrollTop;
|
||||
let zoomFactorBefore = winUtils.fullZoom;
|
||||
|
||||
sendTouchpadScrollMotion(scrollbox, 1, ctrlKey, isMomentum);
|
||||
winUtils.advanceTimeAndRefresh(1000); // force scrolling to happen
|
||||
|
||||
setTimeout(function () {
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
@ -83,6 +90,8 @@ function runTest() {
|
||||
}
|
||||
// Revert the effect.
|
||||
sendTouchpadScrollMotion(scrollbox, -1, ctrlKey, isMomentum);
|
||||
winUtils.advanceTimeAndRefresh(1000); // force scrolling to happen
|
||||
|
||||
setTimeout(nextTest, 20);
|
||||
}, 20);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user