-
Notifications
You must be signed in to change notification settings - Fork 228
Improve and add assertions for random failing HoverTest #926 #1808 #2086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
With these changes, the test randomly fails as follows: |
51fa1a8 to
d00be4b
Compare
851cb5a to
9610da7
Compare
2241ec7 to
c4fff66
Compare
Wittmaxi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, I have seen SWT tests fail because some control wasn't in focus (happens in the FInd/Replace tests if you click into the window while something is being tested, for example). I think these assertions can at least notify us if something like that is happenign and help us further diagnose what is happening.
tests/org.eclipse.ui.genericeditor.tests/src/org/eclipse/ui/genericeditor/tests/HoverTest.java
Outdated
Show resolved
Hide resolved
…orm#926 eclipse-platform#1808 This contributes to fixing the randomly failing HoverTests: - Removes unnecessary focus enforcing: The code checks for the text editor having focus and afterwards uses different methods to force focus to the widget's shell again. This is unnecessary and is only prone to introduce further problems. - Introduces further assertions: in order to better locate the cause of the failing tests, assertions are added for the conditions, on which the execution waits, to be actually fulfilled. - Adds a retry functionality for simulating the hover event. Contributes to eclipse-platform#926 Contributes to eclipse-platform#1808
c4fff66 to
25b23d6
Compare
25b23d6 to
ba6a578
Compare
This contributes to fixing the randomly failing HoverTests:
Contributes to #926
Contributes to #1808