mediawiki-extensions-Visual.../modules/ve/test/dm
Catrope 7702ec10dc No longer create zero-length text nodes
We were populating empty content nodes with zero-length text nodes to
make round-trip tests in the test suite work (otherwise blanking a
paragraph leaves behind a zero-length text node whereas creating an
empty paragraph does not), but the empty nodes are causing problems in
CE apparently.

* Do not create empty text nodes when constructing a node tree
* Be more careful with text-only replacements:
** Don't resize a text node to zero, remove it instead
** There may not be a text node to resize at all, build it in that case
** Switch nodeRange to nodeOuterRange, this was probably broken before

Tests:
* Change test case for zero-length text node to assert that there is
  *no* zero-length text node :)
* Remove a test case concerning an empty text node from the
  ve.ce.TextNode suite

Change-Id: Ie677457f2f0a7823a517ba3077b844ef52a20fcc
2012-10-10 14:48:47 -07:00
..
nodes Kranitor #1: On-boarding 2012-07-27 14:40:00 -07:00
ve.dm.BranchNode.test.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.dm.Converter.test.js Manage annotations in ve.AnnotationSet object 2012-09-06 14:39:38 -07:00
ve.dm.Document.test.js No longer create zero-length text nodes 2012-10-10 14:48:47 -07:00
ve.dm.DocumentSynchronizer.test.js There's no such thing as ghosts, just sneaky array references 2012-08-17 10:37:28 -07:00
ve.dm.example.js Merge "Add a node type for meta nodes" 2012-09-18 18:15:46 +00:00
ve.dm.LeafNode.test.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.dm.Node.test.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.dm.NodeFactory.test.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.dm.Surface.test.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.dm.SurfaceFragment.test.js ve.dm.SurfaceFragment: Implement wrapNodes and wrapAllNodes 2012-09-24 21:11:16 +02:00
ve.dm.Transaction.test.js Fix global scope leakage in the Transaction tests 2012-09-06 15:47:33 -07:00
ve.dm.TransactionProcessor.test.js Manage annotations in ve.AnnotationSet object 2012-09-06 14:39:38 -07:00