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)
commit6660cfe92cffeb14a38bfe8c48d36ba614b79e53 (patch)
tree915e6b37f43f69d3c87bd228b48c33069a23893d /tests/text.test
parent52231ed242e9531dd2ec76973e5c1b98a24cf8f7 (diff)
downloadtk-6660cfe92cffeb14a38bfe8c48d36ba614b79e53.zip
tk-6660cfe92cffeb14a38bfe8c48d36ba614b79e53.tar.gz
tk-6660cfe92cffeb14a38bfe8c48d36ba614b79e53.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]