diff options
author | fvogelnew1@free.fr <fvogel> | 2016-06-11 15:04:55 (GMT) |
---|---|---|
committer | fvogelnew1@free.fr <fvogel> | 2016-06-11 15:04:55 (GMT) |
commit | a287ed38f4ac40b60b230938d76761b7767693e6 (patch) | |
tree | f239d8cafe7e8826ae0fa4848c84dd383c5e40ec /tests | |
parent | 0164a182dab5ff180c7ccb884a87295bd8bdec64 (diff) | |
parent | 49faf05556b68fe40173995731579ae3f8ebc76b (diff) | |
download | tk-a287ed38f4ac40b60b230938d76761b7767693e6.zip tk-a287ed38f4ac40b60b230938d76761b7767693e6.tar.gz tk-a287ed38f4ac40b60b230938d76761b7767693e6.tar.bz2 |
Fixed [6976e4b3b2] - -undo options not correct for peers
Diffstat (limited to 'tests')
-rw-r--r-- | tests/text.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/text.test b/tests/text.test index 95a7f3a..8723d3d 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] |