summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-07-06 17:00:05 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-07-06 17:00:05 (GMT)
commitbf98687ae68fe39f9b67d9cd3c1553bfdd43bf7b (patch)
tree6394f32e83be9b0c5fe08341ff25e6e1f1b7abb8 /tests
parentc6333aba37203822399af655bd8eb008c6c154ec (diff)
downloadtk-bf98687ae68fe39f9b67d9cd3c1553bfdd43bf7b.zip
tk-bf98687ae68fe39f9b67d9cd3c1553bfdd43bf7b.tar.gz
tk-bf98687ae68fe39f9b67d9cd3c1553bfdd43bf7b.tar.bz2
The undo marks identifier is now a member of textPtr->sharedTextPtr. This makes results of test text-8.22 independant of previous undo/redo actions on other text widgets.
Diffstat (limited to 'tests')
-rw-r--r--tests/text.test14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/text.test b/tests/text.test
index 2e4177d..1a68239 100644
--- a/tests/text.test
+++ b/tests/text.test
@@ -1458,7 +1458,19 @@ Line 7"
rename .t {}
rename test.t .t
destroy .t
-} -result {{edit undo} {delete 2.1 2.4} {mark set insert 2.1} {see insert} {insert 2.1 ef} {mark set insert 2.3} {see insert}}
+} -result [list {edit undo} {delete 2.1 2.4} {mark set insert 2.1} {see insert} \
+ {mark set tk::undoMarkL3 2.1} {mark set tk::undoMarkR3 2.4} \
+ {mark gravity tk::undoMarkL3 left} {mark gravity tk::undoMarkR3 right} \
+ {insert 2.1 ef} {mark set insert 2.3} {see insert} \
+ {mark set tk::undoMarkL2 2.1} {mark set tk::undoMarkR2 2.3} \
+ {mark gravity tk::undoMarkL2 left} {mark gravity tk::undoMarkR2 right} \
+ {mark names} \
+ {index tk::undoMarkL2} {index tk::undoMarkR2} \
+ {mark unset tk::undoMarkL2 tk::undoMarkR2} \
+ {index tk::undoMarkL3} {index tk::undoMarkR3} \
+ {mark unset tk::undoMarkL3 tk::undoMarkR3} \
+ {compare 2.1 > 2.3} {compare 2.6 > 2.3} ]
+
test text-8.23 {TextWidgetCmd procedure, "replace" option with undo} -setup {
text .t
} -body {