Catrope
7a726b0278
Add tree synchronization for replace
...
To handle replace operations that are not themselves consistent (these
are common, for instance when replacing an opening element in one place,
then replacing the closing element somewhere else), we process
subsequent replace operations inside the first one until things are
balanced again, then issue a single rebuild for the whole thing.
Change-Id: Ide4613f046fabfeeef383138c39e350b1b710033
2012-03-26 02:51:30 -07:00
Roan Kattouw
662633dfb3
Add a test for unwrapping and rewrapping
2012-03-14 21:02:33 +00:00
Roan Kattouw
2c43a34f74
Rewrite the rebuild action to take two ranges rather than a node and some data.
2012-03-14 21:02:31 +00:00
Roan Kattouw
37a59016e8
Break out pushAction() into separate functions for each action. This will allow me to change the rebuild action to take totally different parameters.
2012-03-14 21:02:29 +00:00
Roan Kattouw
16a2356e43
Add tests for list split tree sync
2012-03-13 00:14:38 +00:00
Trevor Parscal
c977591886
Added test for ve.dm.DocumentSynchronizer that exercises multi-action synchronizations
2012-03-09 19:38:54 +00:00
Roan Kattouw
d70aa70707
Add test for replacing a table with a list. This only works because
...
nesting validity isn't checked yet (lists inside lists are illegal
IIRC), but for now it tests the reversal of the order of the closing
tags nicely
2012-03-09 02:19:50 +00:00
Roan Kattouw
b13d0a849d
Add a check for the length of unwrapOuter, and add a test for each
...
exception
2012-03-09 01:44:31 +00:00
Roan Kattouw
bc600b34be
Make prepareWrap() use the data from the model rather than the unwrap
...
parameters. This fixes the case where rolling back a list unwrap would
restore the list items without their attributes
2012-03-09 01:14:41 +00:00
Roan Kattouw
3bc6b3d8c7
Add tests for unwrapping a list
...
This also excercises unwrapEach. One of the tests is still subtly broken
in that the attributes on the listItems aren't preserved, I'll fix that
next.
2012-03-09 00:38:35 +00:00
Roan Kattouw
5054ed320e
Implement prepareWrap and add tests for it
2012-03-08 23:21:26 +00:00
Roan Kattouw
10a6ee73f4
Add tests for content replacements
2012-03-08 23:21:23 +00:00
Trevor Parscal
3ec0c07843
Fixed name of test suite to match actual class name
2012-03-08 19:37:13 +00:00
Trevor Parscal
becb1daa39
Added more tests for ve.dm.DocumentSynchronizer and fixed some bugs along the way
2012-03-08 19:35:51 +00:00
Trevor Parscal
459c4fa271
Added some basic tests for resize and insert. Fixed some bugs in both of those code paths along the way.
2012-03-08 00:52:30 +00:00
Trevor Parscal
0e41da3340
Fixed tests that were broken by r112150.
2012-03-02 23:12:38 +00:00
Trevor Parscal
5d71c888f9
Updated unit tests in response to structural changes in r110805
2012-02-07 00:12:31 +00:00