Skip to content

Commit 77e4cde

Browse files
webzwo0irhansen
authored andcommitted
Add another regression test that deletes all lines and inserts two
strings where the first ends in a newline.
1 parent 927a3e7 commit 77e4cde

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tests/frontend/specs/easysync.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ describe('easysync', function () {
188188
['insert', 'a'],
189189
['insert', 'c\n', 1],
190190
], ['ac\n']);
191+
runMutationTest(10, ['\n'], [
192+
['remove', 1, 1, '\n'],
193+
['insert', 'a\n', 1],
194+
['insert', 'c'],
195+
], ['a\n', 'c']); // TODO find out if c must have a newline because of unknown constraints
191196

192197
const poolOrArray = (attribs) => {
193198
if (attribs.getAttrib) {

0 commit comments

Comments
 (0)