mediawiki-extensions-Visual.../modules/ve/test
C. Scott Ananian 5095e27925 Collapse metadata on any removal.
In ve.dm.Document.getMetadataReplace(), we used to only merge metadata
if the amount removed is larger than the amount inserted.  But this
could end up putting metadata in odd positions, for example if you
have Foo[[Category:Bar]]Baz and you delete 'ooBa' and replace it with
{image}xxx{/image}, then the category ends up inside the image.

We should always merge metadata when a segment is deleted, so that it
appears outside any new structure added.

There's a weird corner case here when a segment is removed but no
insertion is made: the removed metadata then needs to get glommed onto
the next element.  We extend the insert/replace metadata array
when this happens.

Bug: 53444
Bug: 53445
Change-Id: I51d55fb370b473273f9cf152fdd0f356377d4109
2013-09-01 11:00:51 -04:00
..
ce Subscript is one word (and so is superscript for that matter) 2013-08-20 13:34:50 -07:00
dm Collapse metadata on any removal. 2013-09-01 11:00:51 -04:00
init ve.copy: Remove obsolete copyArray and copyObject 2013-07-30 01:44:22 +02:00
ui ve.copy: Remove obsolete copyArray and copyObject 2013-07-30 01:44:22 +02:00
example.png Optimise png images with optipng 2013-07-05 09:47:12 +00:00
index.php Add ULS to the standalone 2013-08-28 17:35:37 -07:00
ve.BranchNode.test.js
ve.Document.test.js
ve.Element.test.js Make local overlays local to surface and remove insane z-indexes 2013-07-02 19:35:43 +00:00
ve.Factory.test.js
ve.LeafNode.test.js
ve.Node.test.js Store DM nodes in InternalList 2013-06-03 22:10:07 +01:00
ve.qunit.js Include element HTML in QUnit summary for diff 2013-08-02 16:10:05 +01:00
ve.Range.test.js Fix copy and paste of backwards selction 2013-08-22 18:10:34 +00:00
ve.test.js Don't emit Surface changes back to the Surface 2013-08-21 17:26:32 +00:00
ve.test.utils.js Remove inserted leading whitespace 2013-08-02 19:01:22 +00:00