mediawiki-extensions-Visual.../modules/ve/test/dm
Trevor Parscal 5e477cbe98 (bug 42401) Cursor movement fixes
ve.ce.Surface
* Added ve.ce.Surface.adjustCursor, which replaces repetitive and buggy code that was handling left and right arrow key presses
* New method only affects the selection target, so it won't collapse the selection on you - this was what caused bug 42401
* Made hasSlugAtOffset() actually return a boolean

ve.dm.Document
* Fixed turn-around issue in ve.dm.Document.getRelativeOffset - if the offset is already valid and we can't move in the direction we want, we should just leave it be, not turn around
* Since this method was being used by ve.ce.Surface to correct the cursor position on arrow key presses, it was causing the strange cursor jumping when you pressed an arrow key while at the edge of a document

ve.dm.SurfaceFragment
* Fixed typo where getAnnotationRangeFromSelection was preserving selection direction, but checking the wrong properties

ve.dm.Document.test
* Added tests that verify turn-around issue is fixed

Change-Id: Iba55cfc3d531e7d1333b78c94912ff22179aace8
2012-11-30 09:50:47 -08:00
..
nodes
ve.dm.AnnotationFactory.test.js New annotation API: Annotation and AnnotationFactory classes 2012-10-12 15:07:02 -07:00
ve.dm.BranchNode.test.js Store the data model element in the DM tree 2012-11-27 14:36:29 -08:00
ve.dm.Converter.test.js Handle annotated inline nodes in the converter 2012-11-27 14:41:40 -08:00
ve.dm.Document.test.js (bug 42401) Cursor movement fixes 2012-11-30 09:50:47 -08:00
ve.dm.DocumentSynchronizer.test.js Introduce meta-linmod 2012-11-02 19:06:49 -07:00
ve.dm.example.js Handle annotated inline nodes in the converter 2012-11-27 14:41:40 -08:00
ve.dm.LeafNode.test.js Store the data model element in the DM tree 2012-11-27 14:36:29 -08:00
ve.dm.Node.test.js Store the data model element in the DM tree 2012-11-27 14:36:29 -08: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 Fixing Pre-Annotations 2012-11-19 17:09:08 -08:00
ve.dm.SurfaceFragment.test.js Add change marking for Parsoid's benefit 2012-11-06 10:11:11 -08:00
ve.dm.Transaction.test.js Test: Enforce # of expected assertions. 2012-10-25 22:06:07 +02:00
ve.dm.TransactionProcessor.test.js Make annotating inline elements actually work 2012-11-27 14:41:40 -08:00