-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added yet another three cleanup tests
2008-07-06 Armin Burgmeier <[email protected]> * libinfinity/adopted/inf-adopted-algorithm.c (inf_adopted_algorithm_can_undo_redo): Changed semantics of this function for non-local users so that it returns whether the user in question can issue an Undo or Redo command in its own current state (as known to the locals site). * test/inf-test-text-cleanup.c: Allow can-undo and can-redo verifications when the user's vector does not match the current one from the algorithm. * test/cleanup/cleanup-05.xml: * test/cleanup/cleanup-06.xml: * test/cleanup/cleanup-07.xml: Yet another three tests.
- Loading branch information
Showing
6 changed files
with
145 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
2008-07-06 Armin Burgmeier <[email protected]> | ||
|
||
* libinfinity/adopted/inf-adopted-algorithm.c | ||
(inf_adopted_algorithm_can_undo_redo): Changed semantics of this | ||
function for non-local users so that it returns whether the user in | ||
question can issue an Undo or Redo command in its own current state | ||
(as known to the locals site). | ||
|
||
* test/inf-test-text-cleanup.c: Allow can-undo and can-redo | ||
verifications when the user's vector does not match the current one | ||
from the algorithm. | ||
|
||
* test/cleanup/cleanup-05.xml: | ||
* test/cleanup/cleanup-06.xml: | ||
* test/cleanup/cleanup-07.xml: Yet another three tests. | ||
|
||
2008-07-06 Armin Burgmeier <[email protected]> | ||
|
||
* libinfinity/adopted/inf-adopted-algorithm.c | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<infinote-cleanup-test> | ||
<log size="3" /> | ||
<user id="1" /> | ||
<user id="2" /> | ||
|
||
<initial-buffer /> | ||
|
||
<request time="" user="1"><insert pos="0">c</insert></request> | ||
|
||
<verify user="1" log-size="1" can-undo="1" can-redo="0" /> | ||
|
||
<request time="" user="1"><undo /></request> | ||
|
||
<verify user="1" log-size="2" can-undo="0" can-redo="1" /> | ||
|
||
<request time="" user="1"><redo /></request> | ||
|
||
<verify user="1" log-size="3" can-undo="0" can-redo="0" /> | ||
|
||
<request time="" user="1"><insert pos="1">d</insert></request> | ||
|
||
<verify user="1" log-size="4" can-undo="1" can-redo="0" /> | ||
|
||
<request time="1:2" user="2"><no-op /></request> | ||
|
||
<verify user="1" log-size="4" can-undo="1" can-redo="0" /> | ||
|
||
<request time="1:1" user="2"><no-op /></request> | ||
|
||
<verify user="1" log-size="1" can-undo="1" can-redo="0" /> | ||
|
||
</infinote-cleanup-test> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<infinote-cleanup-test> | ||
<log size="2" /> | ||
<user id="1" /> | ||
<user id="2" /> | ||
|
||
<initial-buffer /> | ||
|
||
<request time="" user="1"><insert pos="0">c</insert></request> | ||
<request time="" user="2"><insert pos="0">a</insert></request> | ||
|
||
<verify user="1" log-size="1" can-undo="1" can-redo="0" /> | ||
<verify user="2" log-size="1" can-undo="1" can-redo="0" /> | ||
|
||
<request time="2:1" user="1"><no-op /></request> | ||
|
||
<!-- We need to keep the request from user 1 in the log since user 2 could | ||
still issue a request that depends on it. --> | ||
<verify user="1" log-size="1" can-undo="0" can-redo="0" /> | ||
|
||
<!-- We also need to keep the request from user 2 in the log since user 2 | ||
has not yet processed the request from user 1 (or, we don't know | ||
about it), so user 2 might not yet have exceeded the max-total-log-site | ||
locally and therefore still issue an Undo request. --> | ||
<verify user="2" log-size="1" can-undo="1" can-redo="0" /> | ||
|
||
<request time="1:1" user="2"><no-op /></request> | ||
|
||
<verify user="1" log-size="0" can-undo="0" can-redo="0" /> | ||
<verify user="2" log-size="0" can-undo="0" can-redo="0" /> | ||
|
||
</infinote-cleanup-test> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<infinote-cleanup-test> | ||
<log size="2" /> | ||
<user id="1" /> | ||
<user id="2" /> | ||
<user id="3" /> | ||
|
||
<initial-buffer /> | ||
|
||
<request time="" user="1"><insert pos="0">c</insert></request> | ||
<request time="" user="2"><insert pos="0">a</insert></request> | ||
|
||
<verify user="1" log-size="1" can-undo="1" can-redo="0" /> | ||
<verify user="2" log-size="1" can-undo="1" can-redo="0" /> | ||
|
||
<request time="2:1" user="1"><no-op /></request> | ||
|
||
<verify user="1" log-size="1" can-undo="0" can-redo="0" /> | ||
<verify user="2" log-size="1" can-undo="1" can-redo="0" /> | ||
|
||
<request time="1:1" user="2"><no-op /></request> | ||
|
||
<verify user="1" log-size="1" can-undo="0" can-redo="0" /> | ||
<verify user="2" log-size="1" can-undo="0" can-redo="0" /> | ||
|
||
<request time="" user="1"><insert pos="0">b</insert></request> | ||
|
||
<verify user="1" log-size="2" can-undo="1" can-redo="0" /> | ||
|
||
<request time="1:2;2:1" user="3"><no-op /></request> | ||
|
||
<verify user="1" log-size="1" can-undo="1" can-redo="0" /> | ||
<verify user="2" log-size="0" can-undo="0" can-redo="0" /> | ||
|
||
</infinote-cleanup-test> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters