mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 08:45:46 +00:00
Bug 1562351 - Do the scrollbar drag in one shot to avoid intermittent failures. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D37981 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
07f7390618
commit
21482b7733
@ -18,7 +18,9 @@
|
||||
function* test(testDriver) {
|
||||
window.addEventListener("scroll", () => setTimeout(testDriver, 0), {once: true});
|
||||
|
||||
var dragFinisher = yield* dragVerticalScrollbar(window, testDriver);
|
||||
// Do the scroll in one increment so that when the scroll event fires
|
||||
// we're done all the scrolling we're going to do.
|
||||
var dragFinisher = yield* dragVerticalScrollbar(window, testDriver, 20, 20);
|
||||
if (!dragFinisher) {
|
||||
ok(true, "No scrollbar, can't do this test");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user