mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-27 12:16:51 +00:00
47545a5d6f
This version pushes a `replaceMetadata` operation after a `replace` to fixup trailing metadata if there is no inserted region and the removed region includes metadata. This avoids a corner case where the size of the metadata arrays inserted/removed in `Transaction.pushReplace()` do not match the size of the data arrays inserted/removed. We remove the now-unused `Document.getMetadataReplace()` method. We also adjust `MetaList.onTransact()` so that it continues to work properly when the number of metadata entries in `replace.insert` is not the same as the number of metadata entries in `replace.remove`. Change-Id: I1d600405b855ca1cb569853bb885b0752df47173 |
||
---|---|---|
.. | ||
lineardata | ||
nodes | ||
ve.dm.AnnotationSet.test.js | ||
ve.dm.BranchNode.test.js | ||
ve.dm.Converter.test.js | ||
ve.dm.Document.test.js | ||
ve.dm.DocumentSynchronizer.test.js | ||
ve.dm.example.js | ||
ve.dm.IndexValueStore.test.js | ||
ve.dm.InternalList.test.js | ||
ve.dm.LeafNode.test.js | ||
ve.dm.LinearData.test.js | ||
ve.dm.MetaList.test.js | ||
ve.dm.Model.test.js | ||
ve.dm.ModelRegistry.test.js | ||
ve.dm.Node.test.js | ||
ve.dm.NodeFactory.test.js | ||
ve.dm.Surface.test.js | ||
ve.dm.SurfaceFragment.test.js | ||
ve.dm.Transaction.test.js | ||
ve.dm.TransactionProcessor.test.js |