-
Notifications
You must be signed in to change notification settings - Fork 164
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
Fix setClassName to work as specified in javadoc #8842
Conversation
@@ -70,6 +70,10 @@ public void removeClassName() { | |||
component.removeClassName("baz"); | |||
assertClasses(component); | |||
|
|||
component.setClassName("removeMe"); | |||
// setting null to classname should remove class name attribute | |||
component.setClassName(null); |
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.
Missing assert or assertClasses
?
Technically I would have expected test to go to the setClassName()
method below
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.
Moved and fixed.
I totally forgot the assert as the unfixed fails already on set before the assert.
Added missing assert.
Fixes #8840