webdriver: Enable testdriver tests for Touch by always dispatching embedder MouseMove#41171
Merged
yezhizhen merged 3 commits intoservo:mainfrom Dec 10, 2025
Merged
webdriver: Enable testdriver tests for Touch by always dispatching embedder MouseMove#41171yezhizhen merged 3 commits intoservo:mainfrom
MouseMove#41171yezhizhen merged 3 commits intoservo:mainfrom
Conversation
Signed-off-by: Euclid Ye <[email protected]>
Signed-off-by: Euclid Ye <[email protected]>
|
🔨 Triggering try run (#20092006747) for Linux (WPT) |
|
Test results for linux-wpt from try job (#20092006747): Flaky unexpected result (29)
Stable unexpected results that are known to be intermittent (20)
Stable unexpected results (1)
|
|
|
Member
Author
|
Emm this single test seems to be extremely flaky. It is about XHR so kinda anticipated with our architecture. @TimvdLippe |
Signed-off-by: Euclid Ye <[email protected]>
jschwe
approved these changes
Dec 10, 2025
Member
jschwe
left a comment
There was a problem hiding this comment.
It's unfortunate that the tests are written like that. Seems like a reasonable workaround until the tests / spec has been updated.
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.
Back in #41067, we added webdriver touch support for all platforms. All touch-related testdriver tests which faked to work has been CRASH instead, as we assume that touch down event always happens before touch move and touch up.
But the assumption above is not wrong, as I observed embedder events dispatched from OHOS/Android when interacting as human. It is just that the tests are flawed: almost all of them have pointermove first even for touch, and spec didn't consider touch/pen support well enough: #41042.
Luckily, our embedder
MouseMoveevent would also update the webdriver pointer status, which effectively allow touch down/touch up to happen at right point. It doesn't matter whether the website has mouse listener or not.Testing: Tested manually on a touch-event-only complicated website. Also, tests no longer crash, also with expectations different from before #41067, e.g. this had been failing but now passes.