Skip to content
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

Merged
merged 2 commits into from
Aug 12, 2020

Conversation

caalador
Copy link
Contributor

Fixes #8840

@@ -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);
Copy link
Contributor

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

Copy link
Contributor Author

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.

@caalador caalador merged commit 0e94214 into master Aug 12, 2020
OLD Vaadin Flow ongoing work (Vaadin 10+) automation moved this from Iteration Reviews to Done - pending release Aug 12, 2020
@caalador caalador deleted the issues/8840_classname branch August 12, 2020 11:47
caalador added a commit that referenced this pull request Aug 12, 2020
caalador added a commit that referenced this pull request Aug 12, 2020
mshabarov pushed a commit that referenced this pull request Aug 13, 2020
caalador added a commit that referenced this pull request Aug 20, 2020
@mshabarov mshabarov mentioned this pull request Aug 24, 2020
mshabarov pushed a commit that referenced this pull request Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
OLD Vaadin Flow ongoing work (Vaadin ...
  
Done - pending release
Development

Successfully merging this pull request may close these issues.

HasStyle.setClassName fails when null is passed
3 participants