-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
feat: Add RevealNicknamesFeature #2408
Conversation
kristofbolyai
commented
Apr 16, 2024
•
edited
edited
Didn't even notice that, I don't think I experienced it when trying out the feature either |
Yeah, but I get it, and I dumped all sibling-style pairs and I can see that the produced style is different. However, I couldn't get further because of time constraints. |
…t part's style even if it is not supposed to
// The reconstructed componenet differs in that StyledText always adds components as a sibling to an empty | ||
// component | ||
Assertions.assertEquals( | ||
component, styledText.getComponent(), "StyledText.getComponent() returned an unexpected value."); | ||
component.toFlatList(), | ||
styledText.getComponent().toFlatList(), | ||
"StyledText.getComponent() returned an unexpected value."); |
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.
This is not fully ideal, but at least we produce a more correct component (at least, it behaves like the original one, even if the structures differ).
@@ -836,7 +840,7 @@ public void styledText_inheritesHoverEvents() { | |||
|
|||
Assertions.assertEquals( | |||
component.getStyle().getHoverEvent(), | |||
styledText.getComponent().getStyle().getHoverEvent(), | |||
styledText.getComponent().toFlatList().get(0).getStyle().getHoverEvent(), |
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.
This test was wrong.
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.
I am not too worried about the structure change in the StyledText.