This repository has been archived by the owner on Mar 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HelpWindowTest: fix failing test in non-headless mode (#880)
HelpWindowTest#focus_helpWindowNotFocused_focused() test checks that the HelpWindow#focus() method will cause the HelpWindow to be in focus when called. The test first asserts that the HelpWindow is not in focus first after it is shown, being calling this method and asserting that the HelpWindow is now in focus. When tests are run in non-headless mode, the HelpWindow will be in focus immediately after it is shown, thus our first assertion is incorrect, causing the test to consistently fail in non-headless mode. Let's add a method GuiRobot#removeFocus(), and update the test to call this method to remove focus from the HelpWindow after it is shown to ensure the first assertion is correct in non-headless mode. [1/3] HelpWindowTest: fix failing test in non-headless mode [2/3] HelpWindowTest: skip test with buggy behavior in headless mode [3/3] build.gradle: enable logging of skipped tests
- Loading branch information
Showing
3 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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