Skip to content

[AppKit Gestures] Add API tests for magnification versus mouse tracking suppression - #75628

Open
swpatters wants to merge 1 commit into
WebKit:mainfrom
swpatters:eng/sean_patterson/magnification-tests-v3
Open

swpatters wants to merge 1 commit into
WebKit:mainfrom
swpatters:eng/sean_patterson/magnification-tests-v3

Conversation

@swpatters

@swpatters swpatters commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

b75899b

[AppKit Gestures] Add API tests for magnification versus mouse tracking suppression
https://bugs.webkit.org/show_bug.cgi?id=326043
rdar://188215626

Reviewed by NOBODY (OOPS!).

Add coverage for the change in https://bugs.webkit.org/show_bug.cgi?id=324914. Each test starts
mouse tracking over a surface that does not scroll, so the mouse button is pressed, then magnifies,
and counts the mouse, wheel and gesture events the page receives while the button is down.

* Tools/TestWebKitAPI/Tests/WebKit/WebPage/AppKit Gesture Tests/QuirksAppKitGesturesTests.swift:
(AppKitGesturesTests.Quirks.magnificationGestureAfterMouseTrackingReleasesTheMouseButtonForContentThatDoesNotHandleIt):
Content that handles neither gesture events nor the zoom wheels receives most of those wheels with
the button up.
(AppKitGesturesTests.Quirks.magnificationGestureAfterMouseTrackingKeepsTheMouseButtonDownForContentThatHandlesIt):
Content that prevents the gesture events keeps one mouse down for the whole gesture.
(AppKitGesturesTests.Quirks.translationAfterAMagnificationGestureResumesMouseTrackingForContentThatDoesNotHandleIt):
Translating after the magnification presses the button again.

b75899b

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows Apple Internal
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 win ✅ 🛠 ios-apple
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2 ⏳ 🧪 win-tests ✅ 🛠 mac-apple
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac   🧪 api-wpe ✅ 🛠 vision-apple
✅ 🧪 ios-wk2-wpt ⏳ 🧪 api-mac-debug
loading 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🛠 gtk3-gcc
loading 🧪 mac-AS-debug-wk2 ✅ 🛠 gtk
✅ 🛠 vision ✅ 🧪 gtk-wk2
✅ 🛠 vision-sim ⏳ 🧪 mac-intel-wk2 ✅ 🧪 api-gtk
✅ 🧪 vision-wk2 ⏳ 🛠 mac-safer-cpp   🛠 playstation
✅ 🛠 tv ✅ 🧪 mac-site-isolation
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

…ng suppression

https://bugs.webkit.org/show_bug.cgi?id=326043
rdar://188215626

Reviewed by NOBODY (OOPS!).

Add coverage for the change in https://bugs.webkit.org/show_bug.cgi?id=324914. Each test starts
mouse tracking over a surface that does not scroll, so the mouse button is pressed, then magnifies,
and counts the mouse, wheel and gesture events the page receives while the button is down.

* Tools/TestWebKitAPI/Tests/WebKit/WebPage/AppKit Gesture Tests/QuirksAppKitGesturesTests.swift:
(AppKitGesturesTests.Quirks.magnificationGestureAfterMouseTrackingReleasesTheMouseButtonForContentThatDoesNotHandleIt):
Content that handles neither gesture events nor the zoom wheels receives most of those wheels with
the button up.
(AppKitGesturesTests.Quirks.magnificationGestureAfterMouseTrackingKeepsTheMouseButtonDownForContentThatHandlesIt):
Content that prevents the gesture events keeps one mouse down for the whole gesture.
(AppKitGesturesTests.Quirks.translationAfterAMagnificationGestureResumesMouseTrackingForContentThatDoesNotHandleIt):
Translating after the magnification presses the button again.
@swpatters swpatters self-assigned this Oct 2, 2026
@swpatters
swpatters requested a review from rr-codes as a code owner October 2, 2026 03:12
@swpatters swpatters added the WebKit Misc. For miscellaneous bugs in the WebKit framework (and not JavaScriptCore or WebCore). label Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WebKit Misc. For miscellaneous bugs in the WebKit framework (and not JavaScriptCore or WebCore).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants