mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
fixup! easysync tests: add some more smartOpAssembler tests
This commit is contained in:
parent
f6235ce7a0
commit
6d224f55a6
1 changed files with 16 additions and 6 deletions
|
@ -102,9 +102,14 @@ describe('easysync-assembler', function () {
|
||||||
'attr5,5',
|
'attr5,5',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
padutils.warnDeprecated.disabledForTestingOnly = true;
|
||||||
|
try {
|
||||||
assem.appendOpWithText('-', 'test', '*3*4*5', pool);
|
assem.appendOpWithText('-', 'test', '*3*4*5', pool);
|
||||||
assem.appendOpWithText('-', 'test', '*3*4*5', pool);
|
assem.appendOpWithText('-', 'test', '*3*4*5', pool);
|
||||||
assem.appendOpWithText('-', 'test', '*1*4*5', pool);
|
assem.appendOpWithText('-', 'test', '*1*4*5', pool);
|
||||||
|
} finally {
|
||||||
|
delete padutils.warnDeprecated.disabledForTestingOnly;
|
||||||
|
}
|
||||||
assem.endDocument();
|
assem.endDocument();
|
||||||
expect(assem.toString()).to.equal('*3*4*5-8*1*4*5-4');
|
expect(assem.toString()).to.equal('*3*4*5-8*1*4*5-4');
|
||||||
});
|
});
|
||||||
|
@ -119,9 +124,14 @@ describe('easysync-assembler', function () {
|
||||||
'attr5,5',
|
'attr5,5',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
padutils.warnDeprecated.disabledForTestingOnly = true;
|
||||||
|
try {
|
||||||
assem.appendOpWithText('-', 'test\ntest', '*3*4*5', pool);
|
assem.appendOpWithText('-', 'test\ntest', '*3*4*5', pool);
|
||||||
assem.appendOpWithText('-', '\ntest\n', '*3*4*5', pool);
|
assem.appendOpWithText('-', '\ntest\n', '*3*4*5', pool);
|
||||||
assem.appendOpWithText('-', '\ntest', '*1*4*5', pool);
|
assem.appendOpWithText('-', '\ntest', '*1*4*5', pool);
|
||||||
|
} finally {
|
||||||
|
delete padutils.warnDeprecated.disabledForTestingOnly;
|
||||||
|
}
|
||||||
assem.endDocument();
|
assem.endDocument();
|
||||||
expect(assem.toString()).to.equal('*3*4*5|3-f*1*4*5|1-1*1*4*5-4');
|
expect(assem.toString()).to.equal('*3*4*5|3-f*1*4*5|1-1*1*4*5-4');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue