Skip to content

In WindowStateTest, compare window location/size with tolerance on Linux - #559

Merged
Alexander Maryanovsky (m-sasha) merged 2 commits into
jb-mainfrom
m-sasha/approximate-window-state-tests
May 13, 2023
Merged

Alexander Maryanovsky (m-sasha) merged 2 commits into
jb-mainfrom
m-sasha/approximate-window-state-tests

Conversation

@m-sasha

Copy link
Copy Markdown

Positioning and sizing of not-yet visible, and fullscreen/maximized windows on Linux appears to be inaccurate.

Proposed Changes

When running WindowStateTests on Linux, compare the location and size of windows with a 10px tolerance.

Testing

Test: The unit tests themselves.

@m-sasha
Alexander Maryanovsky (m-sasha) force-pushed the m-sasha/approximate-window-state-tests branch 2 times, most recently from 3a474d9 to c6c0aa4 Compare May 10, 2023 13:15

@igordmn Igor Demin (igordmn) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked this test on Windows, pass successfully.

@m-sasha

Copy link
Copy Markdown
Author

Checked this test on Windows, pass successfully.

All of WindowStateTest or some test specifically?

@igordmn

Copy link
Copy Markdown

All of WindowStateTest

All of WindowStateTest

@m-sasha
Alexander Maryanovsky (m-sasha) force-pushed the m-sasha/approximate-window-state-tests branch from c6c0aa4 to c0c3e45 Compare May 12, 2023 07:11
@m-sasha
Alexander Maryanovsky (m-sasha) force-pushed the m-sasha/approximate-window-state-tests branch from f3f1777 to d6b63f4 Compare May 13, 2023 13:23
@m-sasha
Alexander Maryanovsky (m-sasha) deleted the m-sasha/approximate-window-state-tests branch May 13, 2023 13:59
Zahari Zahariev (harryzz) pushed a commit to harryzz/compose-multiplatform-core that referenced this pull request Jul 28, 2026
Zahari Zahariev (harryzz) pushed a commit to harryzz/compose-multiplatform-core that referenced this pull request Jul 28, 2026
Omitting `RunWith(JUnit4::class)` will cause JUnit to use its default runner, which is just what `JUnit4` type aliases. See https://github.com/junit-team/junit4/wiki/Test-runners#runwith-annotation.

Test: ./gradlew test connectedCheck
Bug: 270612487

This is an imported pull request from androidx#559.

Resolves JetBrains#559
Github-Pr-Head-Sha: d9c2977
GitOrigin-RevId: 6825927
Change-Id: Ibb9feb15cf665ba630cfb2f410967835376e20bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants