mediawiki-extensions-Visual.../modules/ve/test
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
..
ce Render inline annotations in CE 2012-11-28 11:21:59 -08:00
dm (bug 42401) Cursor movement fixes 2012-11-30 09:50:47 -08:00
image.png Losslessly compress png images 2012-08-18 23:12:44 +01:00
index.html Render inline annotations in CE 2012-11-28 11:21:59 -08:00
ve.BranchNode.test.js Optimize UI tool state updates. 2012-09-19 11:16:10 -07:00
ve.Command.test.js Replaced command factory with new command class 2012-11-07 15:47:03 -08:00
ve.Document.test.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.example.js Add parentOuterRange to selectNodes() output 2012-10-19 15:28:26 -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 Store the data model element in the DM tree 2012-11-27 14:36:29 -08:00
ve.Range.test.js Test: Enforce # of expected assertions. 2012-10-25 22:06:07 +02:00
ve.test.js Only apply HTML attributes to DOM nodes that are "safe" 2012-11-27 14:34:29 -08:00