-
Notifications
You must be signed in to change notification settings - Fork 6
Widget / image resize tests refactoring #115
Conversation
The editor was attempted to be removed twice.
…I'll rewrite these in a moment.
It had wrong assertions previously. Also corrected test suite name.
…zer that it maintains.
… the object is resized as if it would be center-aligned.
…perly recognized. Without this test added in b675585 is failing.
Also renamed a variable.
Dirty so far, will be cleaned up in a next commit.
Only partially so far, next part in next commit.
…moved. Probably thanks to adjusting the size of the editor / editable.
Looks like it is no longer needed.
I'm not sure about the above code coverage message, the CC has been maxed afterwards but I see no further messages. There are Unfold this summary to see failing tests
That's caused by ckeditor/ckeditor5#6198 and not related to this issue.
|
tests/widgetresize.js
Outdated
} ); | ||
} ); | ||
|
||
describe( '_getResizerByHandle', () => { |
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.
describe( '_getResizerByHandle', () => { | |
describe( '_getResizerByHandle()', () => { |
Same for all other describes.
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.
Pushed a fix for that and few other occurrences.
The existing tests look quite fine. What I miss... is this PR to be complete ;). It's hard to review this if I don't know what's missing. Please remember – the goal is to have 100% CC in this package by having reasonable tests of this feature alone. You do test every single bit of this functionality differently, so I can only tell that so far I don't see bigger issues. |
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.
As commented.
@Reinmar Can you turn this into an actionable item? What is missing for the PR to be complete? As for CC: the entire widgetresize and imageresize features have 100% CC. Image upload observer doesn't have 100% CC but this is outside of the scope of this PR. |
ckeditor5-image and ckeditor5-widget are separate packages and each of them separately should have 100% CC. Not together. Separately. So, the items would be:
|
Still no 100% CC:
|
I extracted the CC to ckeditor/ckeditor5#6326. |
Suggested merge commit message (convention)
Tests: Extracted relevant parts of widget resize plugin from the image back to widget plugin. Closes ckeditor/ckeditor5#4614.
Additional information
Not all the tests from imageresize are ported yet, I still want to move the size verification tests to new lower level unit tests in tests/widgetresize/resizer.js. The goal here was to push the PR sooner to get the feedback earlier.
There's a sub pr in ckeditor/ckeditor5-image#340