mediawiki-extensions-Visual.../modules/ve/test
Catrope 937607893c Fix selectNodes() bug reported by Inez
For <p>1<br/>2</p>, selectNodes([2,2]) correctly returned the end of the
first text node, but selectNodes([4,4]) returned index 2 in the
paragraph (i.e. between the break node and the second text node). The
correct behavior is to return the start of the second text node, i.e.
the mirror image of the behavior for [2,2].

Fixed this by applying the startBetween/endBetween logic only if the
relevant adjacent node is wrapped (or if it's missing). In the code,
this is expressed as !(adjacent node present && adjacent node wrapped).

Change-Id: Ie3b7fdf1de38ee253a798a7a73bc89734f4ca4fa
2012-10-17 16:09:49 -07:00
..
ce Revert "No longer create zero-length text nodes" 2012-10-12 18:04:15 +00:00
dm Wrap inline elements properly 2012-10-17 13:50:29 -07:00
image.png Losslessly compress png images 2012-08-18 23:12:44 +01:00
index.html Fixing location of ve.ce.CenterNode.js and adding comma between variable declarations 2012-10-17 13:18:57 -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 Fix selectNodes() bug reported by Inez 2012-10-17 16:09:49 -07:00
ve.Factory.test.js Added multiple name registration to ve.Factory 2012-10-12 17:43:04 -07: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 Merge "Add ve.getProp()" 2012-10-11 18:26:31 +00:00