mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
Changeset: Move changeset logic to a new Changeset
class
This commit is contained in:
parent
a470253779
commit
b718d88157
11 changed files with 193 additions and 127 deletions
|
@ -202,7 +202,7 @@ const randomTestChangeset = (origText, withAttribs) => {
|
|||
const outText = `${outTextAssem}\n`;
|
||||
const serializedOps = Changeset.serializeOps(Changeset.canonicalizeOps(ops, true));
|
||||
const cs = Changeset.pack(oldLen, outText.length, serializedOps, charBank);
|
||||
Changeset.checkRep(cs);
|
||||
Changeset.unpack(cs).validate();
|
||||
return [cs, outText];
|
||||
};
|
||||
exports.randomTestChangeset = randomTestChangeset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue