mediawiki-extensions-Visual.../modules/ve/test/dm
Catrope c6cb537f1a Fix bugs in whitespace preservation for aliens
This was broken in three different ways:
* On the way in, we were applying whitespace to an array of elements
  rather than the actual element, so the whitespace wasn't stored.
* Whitespace processing on the way out was skipped for aliens because
  they had their own code path. Refactored this so alien openings and
  regular openings share much more code, including whitespace output.
* Somewhat unrelatedly, innerPost output was broken for paragraphs
  containing inline elements, because the inline elements' processing
  polluted lastOuterPost. Discovered this because my test with inline
  aliens also happened to be the first test of whitespace preservation
  in paragraphs with inline content elements. Fixed by explicitly
  skipping content nodes when outputting whitespace.

Fixed these issues and added a test case.

Change-Id: I8edb61a008e60ace886b1a841b3417682ec39c32
2012-09-07 15:17:28 -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 Manage annotations in ve.AnnotationSet object 2012-09-06 14:39:38 -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 Fix bugs in whitespace preservation for aliens 2012-09-07 15:17:28 -07: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 Added tests for removeContent and insertContent 2012-08-30 16:55:49 -07: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