-
Notifications
You must be signed in to change notification settings - Fork 541
8239822: Intermittent unit test failures in RegionCSSTest #124
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
|
👋 Welcome back kcr! A progress list of the required criteria for merging this PR into |
|
@aghaisas Can you review this? @DeanWookey You are also welcome to review it if you like. |
Webrevs
|
|
test.javafx.css.Node_cssStateTransition_Test may also need the same treatment. |
|
Thanks for pointing that out. In addition to I'll update the PR to fix the above two. I looked further, and see that the following tests call This is a slightly different case, and none of these are causing problems today, so I will file a follow-up test bug to look at those and see if they need cleanup. |
|
I filed JDK-8239880 to track fixing the above 5 test classes. |
DeanWookey
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.
Looks good to me. Just the dates in the copyright headers need to be updated.
|
@kevinrushforth This change now passes all automated pre-integration checks. When the change also fulfills all project specific requirements, type
Since the source branch of this PR was last updated there have been 2 commits pushed to the ➡️ To integrate this PR with the above commit message, type |
They will get updated when I update copyrights of files modified this year to 2020 (with automated scripts) with JDK-8237504. |
|
/integrate |
|
@kevinrushforth The following commits have been pushed to master since your change was applied:
Your commit was automatically rebased without conflicts. Pushed as commit c3ee1a3. |
|
Mailing list message from Kevin Rushforth on openjfx-dev: Changeset: c3ee1a3 8239822: Intermittent unit test failures in RegionCSSTest Reviewed-by: aghaisas ! modules/javafx.graphics/src/test/java/test/com/sun/javafx/css/StyleManagerTest.java |
This is a fix for an intermittent test failure affecting
test.javafx.scene.layout.RegionCSSTest. This turns out to be a test bug intest.javafx.scene.CssStyleHelperTest, which was added as part of JDK-8237469. RegionCSSTest is a victim of this bug.Except for the systemTests project, all unit tests are run in the same JVM, so each test class must ensure that any modified global state is restored after the tests are run. The CssStyleHelperTest leaves a userAgentStyleSheet set, which is a global (per Application) attribute, so any subsequent tests will be run with that stylesheet set. If the last test that is run in CssStyleHelperTest sets a style sheet with
"-fx-background"then it will cause assertion failures in 78 of the tests in RegionCSSTest.The fix is to cleanup the global userAgentStyleSheet, along with any other state that is set, in an
@AfterClasscleanup method.Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jfx pull/124/head:pull/124$ git checkout pull/124