summaryrefslogtreecommitdiffstats
path: root/tests/text.test
diff options
context:
space:
mode:
authorhobbs <hobbs>2006-04-05 19:48:43 (GMT)
committerhobbs <hobbs>2006-04-05 19:48:43 (GMT)
commit3c65fdaea0244afe136426e6a5f5d37e5edfacd8 (patch)
tree915e6b37f43f69d3c87bd228b48c33069a23893d /tests/text.test
parent15ca07257804122ebaeb81a0eec1d3aa9f8b537e (diff)
downloadtk-3c65fdaea0244afe136426e6a5f5d37e5edfacd8.zip
tk-3c65fdaea0244afe136426e6a5f5d37e5edfacd8.tar.gz
tk-3c65fdaea0244afe136426e6a5f5d37e5edfacd8.tar.bz2
* generic/tkText.c (DumpLine): stop dumping if we detect that the
text widget state has changed while dumping. [Bug 1414171] (InsertChars, DeleteChars): fix undo with space-based path. * tests/text.test (text-25.14): [Bug 1452419]
Diffstat (limited to 'tests/text.test')
-rw-r--r--tests/text.test14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/text.test b/tests/text.test
index 1c21d21..a5cdfbe 100644
--- a/tests/text.test
+++ b/tests/text.test
@@ -6,7 +6,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: text.test,v 1.19 2002/10/17 23:38:01 hobbs Exp $
+# RCS: @(#) $Id: text.test,v 1.19.2.1 2006/04/05 19:48:44 hobbs Exp $
package require tcltest 2.1
namespace import -force tcltest::configure
@@ -1573,6 +1573,18 @@ test text-25.13 {-maxundo configuration option} {
.t get 1.0 end
} "line 1\n\n"
+test text-25.14 {undo with space-based path} {
+ set t {.t e x t}
+ destroy $t
+ text $t -undo 1
+ $t insert end "line 1\n"
+ $t delete 1.4 1.6
+ $t insert end "line 2\n"
+ $t edit undo
+ $t edit undo
+ $t get 1.0 end
+} "line 1\n\n"
+
test text-26.1 {bug fix - 624372, ControlUtfProc long lines} {
destroy .t
pack [text .t -wrap none]