Skip to content

Commit e8814a9

Browse files
committed
Add another regression test that deletes all lines and inserts two
strings where the first ends in a newline.
1 parent 0b382a7 commit e8814a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/node/easysync_tests.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,11 @@ function runTests() {
232232
['insert', "a"],
233233
['insert',"c\n", 1]
234234
], ["ac\n"]);
235+
runMutationTest(10, ["\n"], [
236+
['remove', 1, 1, "\n"],
237+
['insert', "a\n", 1],
238+
['insert',"c"]
239+
], ["a\n","c"]); //TODO find out if c must have a newline because of unknown constraints
235240

236241
function poolOrArray(attribs) {
237242
if (attribs.getAttrib) {

0 commit comments

Comments
 (0)