Repository navigation
Add headless JUnit tests for docking, layout persistence and themes - #34
Merged
Merged
Conversation
|
This pull request is merged. |
danilovesky
force-pushed
the
more-junit-tests
branch
from
November 20, 2026 21:27
ffddb24 to
2be4da1
Compare
sylvestre
reviewed
Nov 21, 2026
Configurator and PlafManager had no automated coverage, so a wrong extends or inherits rule only shows as a different titlebar. ThemeInheritanceTest reads a test flexdock-themes.xml (the user preferences), not the shipped themes. A custom theme with missing UIs cannot be created under a look and feel without a mapping, such as Aqua on macOS. Record this as an expected failure, using Nimbus to get the same result on every platform.
The SiblingTest and ViewRestorationTest demos check nothing. Cover the same layouts headless. Split divider proportions are applied later on the event queue, so only orientation and the XML round trip of the percentage are asserted.
Layout.apply, Layout and Perspective state and the restoration handlers were not covered. A frame cannot be created headless, so PerspectiveManager store, restore and display stay untested: apply a layout to a new viewport and call the handlers one by one instead.
Only the DockingPath and DockingPortNode serializers were tested. Add the other serializers and the key to file mapping of FilePersistenceHandler. A key without a separator is only resolved, never stored, to keep the home directory untouched. A group whose bounds were never set cannot be serialized yet. Record this as an expected failure that starts failing once the bug is fixed.
danilovesky
force-pushed
the
more-junit-tests
branch
from
November 21, 2026 13:46
2be4da1 to
2bc95eb
Compare
Contributor
Author
|
@sylvestre All your comments are addressed now. |
Workcraft enables constant percent, so pin that a stored proportion survives an import in that mode. Without constant percent the proportion is lost and the split comes back at 0.5. Record this as an expected failure that starts failing once the bug is fixed, as a reminder to turn it into a plain test.
danilovesky
force-pushed
the
more-junit-tests
branch
from
November 21, 2026 13:53
2bc95eb to
fe7d8ce
Compare
Contributor
|
Thanks for your PR |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change adds headless JUnit tests as part of #18, one commit per area:
Three newly discovered bugs are recorded as expected failures, so the tests start failing once a bug is fixed: