mediawiki-extensions-Visual.../modules/ve/test
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
..
ce Code style fix: (X) -> ( X ) 2013-06-24 18:51:59 +01:00
dm Fix reserialization of mw-data.body.html 2013-06-25 19:24:18 -07:00
init mw.ViewPageTarget: Blacklist IE9/IE10 until blocking issues are resolved 2013-06-23 17:04:44 -07:00
ui Treat acronyms like words in camel case names 2013-05-28 12:51:41 +00:00
example.png Test: Fix 404 errors in example images. 2013-04-02 23:52:02 +02:00
index.php Update initialisation scripts for demo, test 2013-06-20 22:10:57 +00:00
ve.BranchNode.test.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.Document.test.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.Element.test.js ve.Element: Add unit tests 2013-05-21 19:18:46 +02:00
ve.Factory.test.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.LeafNode.test.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.Node.test.js Store DM nodes in InternalList 2013-06-03 22:10:07 +01:00
ve.qunit.js ve.ce.Document: Introduce getRelativeRange method 2013-06-05 13:10:38 +01:00
ve.Range.test.js Minor comment and licence fixes 2013-03-19 20:54:01 +00:00
ve.test.js Code style fix: (X) -> ( X ) 2013-06-24 18:51:59 +01:00