diff --git a/packages/ckeditor5-engine/tests/model/utils/selection-post-fixer.js b/packages/ckeditor5-engine/tests/model/utils/selection-post-fixer.js index b1a3c7f8467..6b3e2ad2d62 100644 --- a/packages/ckeditor5-engine/tests/model/utils/selection-post-fixer.js +++ b/packages/ckeditor5-engine/tests/model/utils/selection-post-fixer.js @@ -1418,6 +1418,16 @@ describe( 'Selection post-fixer', () => { ); } ); + it( 'should fix #5 (selection inside limit element that doesn\'t allow text - closest ancestor)', () => { + setModelData( model, + '[]
' + ); + + assertEqualMarkup( getModelData( model ), + '[]
' + ); + } ); + it( 'should fix multiple ranges outside block element (but not merge them)', () => { setModelData( model, '[]foo[]' +