-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
6574: Use TableEditing in tests. #7410
Conversation
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 would add tests to make sure that some conversions are not used in data pipeline.
} ); | ||
|
||
describe( 'downcastInsertRow()', () => { | ||
// The insert row downcast conversion is not executed in data pipeline. |
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.
Maybe we should add test to make sure that row conversion is not used in data pipeline?
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'm not able to think of such test :) It would be very synthetic. The data pipeline conversion runs on whole, static content it do not convert "dynamic" actions (adding/removing stuff, changing attributes, etc).
root = doc.getRoot( 'main' ); | ||
view = editor.editing.view; | ||
|
||
markerConversion( editor.conversion, 'marker' ); |
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.
No expclicit test for classes
as an array. /cc @niegowski
@niegowski the tests from #7391 were also fixed. |
Suggested merge commit message (convention)
Other (table): Use real schema and conversion definitions in table tests. Closes #6574.
Other (table): Removed
options.asWidget
from most of the table converters which are never run in data pipeline.Additional information
This PR make a total cleanup for table tests:
downcastInsertTable()
is tested for data pipeline (the data pipeline is static conversion - no need to tests changing heading rows or inserting table cells there)asWidget
option make no sense in most of the converters.