mediawiki-extensions-Visual.../modules/ve/test/dm
C. Scott Ananian 47545a5d6f Remove no-insertion metadata corner case from ve.dm.Transaction.pushReplace().
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
2013-09-06 01:07:37 +00:00
..
lineardata getAnnotationsFromRange should only ignore non-content data 2013-08-21 22:32:34 +01:00
nodes The great directory split of 2013 2013-07-02 20:51:38 -07:00
ve.dm.AnnotationSet.test.js Rename index to offset in AnnotationSet 2013-07-26 23:04:01 +00:00
ve.dm.BranchNode.test.js Kill getOffsetFromNode() with fire 2013-05-09 17:26:22 -07:00
ve.dm.Converter.test.js ve.copy: Remove obsolete copyArray and copyObject 2013-07-30 01:44:22 +02:00
ve.dm.Document.test.js Remove no-insertion metadata corner case from ve.dm.Transaction.pushReplace(). 2013-09-06 01:07:37 +00:00
ve.dm.DocumentSynchronizer.test.js Code style fixes 2013-05-06 12:36:52 +01:00
ve.dm.example.js Correctly preserve metadata in Transaction.newFromUnwrap. 2013-09-06 01:06:59 +00:00
ve.dm.IndexValueStore.test.js Preserve location of reference body within key 2013-06-10 02:54:26 +00:00
ve.dm.InternalList.test.js Always give references names. Ignore if used once. 2013-08-28 12:47:33 -07:00
ve.dm.LeafNode.test.js Store data in LinearData class with an index-value store for objects 2013-03-30 10:06:34 +00:00
ve.dm.LinearData.test.js ve.copy: Remove obsolete copyArray and copyObject 2013-07-30 01:44:22 +02:00
ve.dm.MetaList.test.js Fix ridiculous MetaList test case 2013-09-05 11:25:49 -07:00
ve.dm.Model.test.js jshint: Fix trailing comma 2013-06-05 13:00:49 +02:00
ve.dm.ModelRegistry.test.js Fix ModelRegistry bugs 2013-04-08 18:05:34 -07:00
ve.dm.Node.test.js jshint: Fix trailing comma 2013-06-05 13:00:49 +02:00
ve.dm.NodeFactory.test.js Correct name of can(Node)HaveGrandchildren functions 2013-03-13 23:25:33 +00:00
ve.dm.Surface.test.js Only undo on MWMetaDialog close if small stack is non-empty 2013-06-18 16:55:03 +01:00
ve.dm.SurfaceFragment.test.js ve.copy: Remove obsolete copyArray and copyObject 2013-07-30 01:44:22 +02:00
ve.dm.Transaction.test.js Remove no-insertion metadata corner case from ve.dm.Transaction.pushReplace(). 2013-09-06 01:07:37 +00:00
ve.dm.TransactionProcessor.test.js Correctly preserve metadata in Transaction.newFromUnwrap. 2013-09-06 01:06:59 +00:00