Repository navigation
Test wheel scrolling in WebView(content:) and mark phase 1 done - #8
Merged
Merged
Conversation
A notch through Cacao's view graph moves the page by a notch's points, and one the other way brings it back.
ExampleWeb runs in linux-app-host over this package, and the wheel scrolls.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes out phase 1 of the plan: the last thing it asked for, scrolling with the wheel, now has a test. The plan marks the phase done.
The wheel test
WebViewTests.scrollsThePageWithTheWheelhostsWebView(content:)over a 5,000-point page in a CacaoViewGraph, then sends wheel input throughgraph.externalScroll:WebInput.notch, 40 points).It reads
window.scrollYfrom the page itself, so it checks the whole path: Cacao's scroll routing to the surface,WebInput's mapping, and WPE's scrolling.The plan
ExampleWebruns inlinux-app-hostover this package, loading swift.org through the guest'sWebPageand showing it in the player'sWebView, and the wheel test above.Testing
On aarch64 Debian 13, Swift 6.4.2, WPE 2.48.3 (LinuxAppRuntime's development image):
WebViewTestspassed three runs in a row, and all 62 tests pass.ExampleWeb, bundled with AppRuntime'sguest.pyfor linux-arm64, ran in LinuxAppRuntime'slinux-app-hostfrommaster. A screenshot 10 seconds in shows swift.org drawn in theWebView, the address field athttps://www.swift.org/after the redirect, and the page's title in the app's UI.