android / android/android-test

Wrong Coordinate Handling

Open
#1,840 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
11h 29m
Merged PRs (30d)
2

Description

Why is x using y value?

https://github.com/android/android-test/blob/0950bf08140356fd23fbc007ee446da3bb5ef051/espresso/core/java/androidx/test/espresso/action/MotionEvents.java#L286

Specifically the first coordinates[1] should be coordinates[0]

Contributor guide

Open the contributing guide

Research direction

Open androidx/test/espresso/action/MotionEvents.java at the linked line and inspect how the first coordinate values are assigned. Correct the x-coordinate to use coordinates[0] rather than coordinates[1], then verify the resulting motion-event coordinates with the relevant Espresso tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile, testing
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.