Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

MarkerDelta transformation should consider ranges equal to null. #944

Merged
merged 2 commits into from
May 11, 2017

Conversation

scofalik
Copy link
Contributor

@scofalik scofalik commented May 10, 2017

Suggested merge commit message (convention)

Fix: MarkerDelta transformation should no longer cause editor to crash, if a MarkerOperation had null as it's oldRange or newRange. Closes ckeditor/ckeditor5#4062.

const wrapDelta = getWrapDelta( wrapRange, wrapElement, baseVersion );

expect( () => {
transform( markerDelta, wrapDelta );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But what's the expected behaviour of such transformation?

@Reinmar
Copy link
Member

Reinmar commented May 11, 2017

I left one comment. Wouldn't we like to test what's the expected output?

@scofalik
Copy link
Contributor Author

You are absolutely right.

@scofalik
Copy link
Contributor Author

Fixed

@Reinmar Reinmar merged commit d328811 into master May 11, 2017
@Reinmar Reinmar deleted the t/943 branch May 11, 2017 11:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Editor crashes when transforming MarkerDelta that has null as one of its ranges.
2 participants