summaryrefslogtreecommitdiffstats
path: root/tests/text.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-06-11 15:12:04 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-06-11 15:12:04 (GMT)
commit5cf0f795fc1d9eb0dd751bd05faa534f0b83d1ca (patch)
tree3ace914c78147ef3795ca37f19900e38ddc2b7b4 /tests/text.test
parentd60b9e28ecea5421fcb384737837748d9cd677df (diff)
parent9f82192c9761bc6a1870592b3ff3bd48e1be361d (diff)
downloadtk-5cf0f795fc1d9eb0dd751bd05faa534f0b83d1ca.zip
tk-5cf0f795fc1d9eb0dd751bd05faa534f0b83d1ca.tar.gz
tk-5cf0f795fc1d9eb0dd751bd05faa534f0b83d1ca.tar.bz2
Merged core-8-6-branch
Diffstat (limited to 'tests/text.test')
-rw-r--r--tests/text.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/text.test b/tests/text.test
index abbcfe5..a3f9afe 100644
--- a/tests/text.test
+++ b/tests/text.test
@@ -6383,6 +6383,21 @@ test text-27.16 {-maxundo configuration option} -body {
} -cleanup {
destroy .t
} -result "line 1\n\n"
+test text-27.16a {undo configuration options with peers} -body {
+ text .t -undo 1 -autoseparators 0 -maxundo 100
+ .t peer create .tt
+ set res [.t cget -undo]
+ lappend res [.tt cget -undo]
+ lappend res [.t cget -autoseparators]
+ lappend res [.tt cget -autoseparators]
+ lappend res [.t cget -maxundo]
+ lappend res [.tt cget -maxundo]
+ .t insert end "The undo stack is common between peers"
+ lappend res [.t edit canundo]
+ lappend res [.tt edit canundo]
+} -cleanup {
+ destroy .t
+} -result {1 1 0 0 100 100 1 1}
test text-27.17 {bug fix 1536735 - undo with empty text} -body {
text .t -undo 1
set r [.t edit modified]