mediawiki-extensions-Visual.../modules/ve/test
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
..
ce No longer create zero-length text nodes 2012-10-10 14:48:47 -07:00
dm No longer create zero-length text nodes 2012-10-10 14:48:47 -07:00
image.png Losslessly compress png images 2012-08-18 23:12:44 +01:00
index.html Create method ve.Range.isCollapsed() and added some tests for ve.Range class. 2012-09-28 13:32:26 -07:00
ve.BranchNode.test.js Optimize UI tool state updates. 2012-09-19 11:16:10 -07:00
ve.Document.test.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.example.js Created QUnit tests for ve.Document.selectNodes method (mode "branches") 2012-10-04 15:24:02 -07:00
ve.Factory.test.js ve.Factory: No need for a-b-c workaround, createObject and apply. 2012-10-09 19:36:48 +02:00
ve.LeafNode.test.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.Node.test.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.qunit.js Rename fringeWhitespace to internal 2012-08-16 15:14:01 -07:00
ve.Range.test.js Create method ve.Range.isCollapsed() and added some tests for ve.Range class. 2012-09-28 13:32:26 -07:00
ve.test.js inheritClass: Implement inherited 'static' property for classes. 2012-10-09 18:29:41 +00:00