mediawiki-extensions-Visual.../modules/ve/test
C. Scott Ananian 5830bce72c Correctly preserve metadata in Transaction.newFromUnwrap.
The `Transaction.pushReplace` method has a corner case if the removed
region has metadata and the inserted region is empty.  This works fine
unless there are two adjacent `pushReplace` operations, which can occur
in `Transaction.newFromUnwrap`.  Fix this by having `pushReplace` look
at a preceding replace and correctly merge the two operations if
possible (in particular in the tricky case where the previous case has
a zero-length insertion).  Pleasantly, this can be done without a lot of
special-casing code in `pushReplace` or `newFromUnwrap`.

Add test cases verifying the `newFromUnwrap` works correctly (both
in commit and in rollback) when there is metadata present.

Change-Id: I6cfec0d2b1823dad724422f018a3c73dc0c7f186
2013-09-06 01:06:59 +00:00
..
ce Fix getOffsetFrom(Element|Text)Node for annotated aliens 2013-09-05 00:35:53 -07:00
dm Correctly preserve metadata in Transaction.newFromUnwrap. 2013-09-06 01:06:59 +00: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 Merge "ve.EventSequencer: Post-event listening" 2013-09-04 20:08:42 +00: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