mediawiki-extensions-Visual.../modules/ve/test/dm
Roan Kattouw 92ffa0739d Fix reserialization of mw-data.body.html
This bug caused all references containing complex content (e.g. links
or templates) to be dirty-DOMed and reformatted by Parsoid.

ve.dm.MWReferenceNode.js:
* Parse the original body.html and check if it's semantically equal to
  the new value. If so, don't set it.

ve.dm.Converter.js:
* .normalize() the converter output to remove empty text nodes and
  merge adjacent text nodes

ve.dm.example.js:
* Update reused reference test to have body.html absent, not empty
* Add a link to one of the reference tests so this bug is triggered
** The link's attributes are ordered specifically so that toDomElements
   will reorder them, at least in Chrome (may behave differently in
   other browsers)
** This test fails without this fix in place

Change-Id: Idc091a14422fbb117a3d06fc6bb9497768086fc3
2013-06-25 19:24:18 -07:00
..
lineardata Code style fix: (X) -> ( X ) 2013-06-24 18:51:59 +01:00
nodes Transclusion editing 2013-06-12 16:39:13 -07:00
ve.dm.AnnotationSet.test.js Code style fix: (X) -> ( X ) 2013-06-24 18:51:59 +01:00
ve.dm.BranchNode.test.js Kill getOffsetFromNode() with fire 2013-05-09 17:26:22 -07:00
ve.dm.Converter.test.js Update reference lists and inline numberings automatically. 2013-06-05 15:11:16 -07:00
ve.dm.Document.test.js Refactor selectNodes tests 2013-06-17 20:08:08 +01:00
ve.dm.DocumentSynchronizer.test.js Code style fixes 2013-05-06 12:36:52 +01:00
ve.dm.example.js Fix reserialization of mw-data.body.html 2013-06-25 19:24:18 -07: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 Reference name and group editing 2013-06-14 15:29:56 -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 Code style fix: (X) -> ( X ) 2013-06-24 18:51:59 +01:00
ve.dm.MetaList.test.js jshint: Fix trailing comma 2013-06-05 13:00:49 +02: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 Code style fix: (X) -> ( X ) 2013-06-24 18:51:59 +01:00
ve.dm.Transaction.test.js Merge "Revert "ve.dm.Transaction: Implement newFromDocumentInsertion"" 2013-06-25 22:14:15 +00:00
ve.dm.TransactionProcessor.test.js Store alien meta items' dom nodes only 2013-06-12 16:37:37 +01:00