Skip to content

Commit adf8c00

Browse files
committed
Add begin / end range tests.
1 parent 1864912 commit adf8c00

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/ckeditor5-remove-format/tests/removeformatcommand.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,16 @@ describe( 'RemoveFormatCommand', () => {
273273
'</tableRow>' +
274274
'</table>'
275275
)
276+
},
277+
278+
'does not remove formatting from block when selection ends exactly at its beginning': {
279+
input: '<p>te[xt</p><p someBlockFormatting="bar">]content</p>',
280+
assert: () => expectModelToBeEqual( '<p>te[xt</p><p someBlockFormatting="bar">]content</p>' )
281+
},
282+
283+
'does remove formatting from block when selection ends exactly at its ending': {
284+
input: '<p>te[xt</p><p someBlockFormatting="bar">content]</p>',
285+
assert: () => expectModelToBeEqual( '<p>te[xt</p><p>content]</p>' )
276286
}
277287
};
278288

0 commit comments

Comments
 (0)