mediawiki-extensions-Visual.../modules/ve/test/dm
Roan Kattouw d3af8b877b dm.Surface: Initialize selection at (1,1) instead of (0,0)
Code with a similar purpose was added in 568e0e5701 but got lost
when some things were moved from ve.Surface to ve.ce.Surface in
5012ed10.

Initializing the selection at (0,0) was known to cause problems before,
and since 789d0caf09 breaks editing of empty documents: typing in an
empty document begins in an inline slug, but SurfaceObserver doesn't
notice typing in an inline slug unless the ce.Surface pawns it, which
is OK because insertions in slugs are always pawned, but the pawning
logic believes the cursor to be at offset 0 where there is no slug
(it's at offset 1) and so it doesn't pawn.

Bonus: update tests and add descriptions for dm.Surface.change tests

Change-Id: Id72314d0fe650dacc7cdb842f5cea2f3bfba5145
2013-09-18 01:06:34 +00:00
..
lineardata getAnnotationsFromRange should only ignore non-content data 2013-08-21 22:32:34 +01:00
nodes The great directory split of 2013 2013-07-02 20:51:38 -07:00
ve.dm.AnnotationSet.test.js Rename index to offset in AnnotationSet 2013-07-26 23:04:01 +00:00
ve.dm.BranchNode.test.js Kill getOffsetFromNode() with fire 2013-05-09 17:26:22 -07:00
ve.dm.Converter.test.js ve.copy: Remove obsolete copyArray and copyObject 2013-07-30 01:44:22 +02:00
ve.dm.Document.test.js Remove no-insertion metadata corner case from ve.dm.Transaction.pushReplace(). 2013-09-06 01:07:37 +00:00
ve.dm.DocumentSynchronizer.test.js Code style fixes 2013-05-06 12:36:52 +01:00
ve.dm.example.js Fix off-by-one error with metadata-mutating transactions. 2013-09-11 10:07:20 -07:00
ve.dm.IndexValueStore.test.js Preserve location of reference body within key 2013-06-10 02:54:26 +00:00
ve.dm.InternalList.test.js Always give references names. Ignore if used once. 2013-08-28 12:47:33 -07:00
ve.dm.LeafNode.test.js Store data in LinearData class with an index-value store for objects 2013-03-30 10:06:34 +00:00
ve.dm.LinearData.test.js ve.copy: Remove obsolete copyArray and copyObject 2013-07-30 01:44:22 +02:00
ve.dm.MetaList.test.js Rewrite MetaList.onTransact 2013-09-11 15:29:28 -07:00
ve.dm.Model.test.js jshint: Fix trailing comma 2013-06-05 13:00:49 +02:00
ve.dm.ModelRegistry.test.js Fix ModelRegistry bugs 2013-04-08 18:05:34 -07:00
ve.dm.Node.test.js jshint: Fix trailing comma 2013-06-05 13:00:49 +02:00
ve.dm.NodeFactory.test.js Correct name of can(Node)HaveGrandchildren functions 2013-03-13 23:25:33 +00:00
ve.dm.Surface.test.js dm.Surface: Initialize selection at (1,1) instead of (0,0) 2013-09-18 01:06:34 +00:00
ve.dm.SurfaceFragment.test.js dm.Surface: Initialize selection at (1,1) instead of (0,0) 2013-09-18 01:06:34 +00:00
ve.dm.Transaction.test.js Transactions: Add trailing retainMetadata when there is trailing metadata. 2013-09-11 16:02:12 -07:00
ve.dm.TransactionProcessor.test.js Merge changes I899d2b3c,I0272fe38,I7ad24e7f 2013-09-17 21:01:41 +00:00