Closed Bug 1787560 Opened 2 years ago Closed 2 years ago

Add test that exercises a scrollbar drag

Categories

(Core :: Panning and Zooming, task, P3)

task

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: dlrobertson, Assigned: dlrobertson)

References

Details

Attachments

(1 file)

It would be nice to have a test that exercises a hit-test that should result in a scrollbar drag hit (bug 1787361).

Assignee: nobody → drobertson
Severity: -- → S3
Priority: -- → P3
Severity: S3 → --

We must have tests that do this for mouse moves already. Maybe you can modify an existing test to use touches.

(In reply to Timothy Nikkel (:tnikkel) from comment #1)

We must have tests that do this for mouse moves already. Maybe you can modify an existing test to use touches.

Yeah, good point, here's one: https://searchfox.org/mozilla-central/source/gfx/layers/apz/test/mochitest/helper_drag_root_scrollbar.html

The logic inside promiseVerticalScrollbarDrag() takes care of a bunch of details related to targeting scrollbars (e.g. checking for overlay, working around scrollbar buttons) that could be reused for targeting touch events at them.

Pushed by drobertson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4274430f48d6 Add test for touch drag scrollbar scroll. r=botond

Ah, I messed up the parameter rename for promiseVerticalScrollbarDrag.

Flags: needinfo?(drobertson)
Pushed by drobertson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3b127ef129fa Add test for touch drag scrollbar scroll. r=botond
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: