fixed remaining tests

This commit is contained in:
Kevin Jahns
2019-04-09 00:48:24 +02:00
parent 12bcc4d080
commit 1b06f59d1c
4 changed files with 23 additions and 3 deletions

View File

@@ -195,6 +195,8 @@ const insertText = (transaction, parent, left, right, currentAttributes, text, a
}
const minPos = minimizeAttributeChanges(left, right, currentAttributes, attributes)
const insertPos = insertAttributes(transaction, parent, minPos.left, minPos.right, currentAttributes, attributes)
left = insertPos.left
right = insertPos.right
// insert content
if (text.constructor === String) {
left = new ItemString(nextID(transaction), left, left === null ? null : left.lastId, right, right === null ? null : right.id, parent, null, text)

View File

@@ -18,7 +18,7 @@ export class StructStore {
/**
* Store uncompleted struct readers here
* @see tryResumePendingReaders
* @type {Set<{stack:Array<AbstractRef>,structReaders:Map<number,IterableIterator<AbstractRef>>,missing:ID}>}
* @type {Set<{stack:Array<AbstractRef>,structReaders:Map<number,IterableIterator<AbstractRef>>,missing:ID,structReaderIterator:IterableIterator<IterableIterator<AbstractRef>>,structReaderIteratorResult:IteratorResult<IterableIterator<AbstractRef>>}>}
*/
this.pendingStructReaders = new Set()
/**