summaryrefslogtreecommitdiffstats
path: root/tests/text.test
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2006-10-17 10:21:48 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2006-10-17 10:21:48 (GMT)
commite58a5fcd90ad9607b9357a1c82417e651ad8ae18 (patch)
treef2e3c2358a8814697991e809019215ff5f2b3659 /tests/text.test
parentdf7092fbb134cfbb28d68c0deca1a6241df8ca02 (diff)
downloadtk-e58a5fcd90ad9607b9357a1c82417e651ad8ae18.zip
tk-e58a5fcd90ad9607b9357a1c82417e651ad8ae18.tar.gz
tk-e58a5fcd90ad9607b9357a1c82417e651ad8ae18.tar.bz2
generic/tkText.c: Applied suggested patch from #1536735
tests/text.test: Update test for above patch. tests/textWind.test: Corrected test to catch all messages tests/safe.test: Silence spurious win32 failure awaiting TIP150 tests/winDialog.test: Updated test for file name length check. test/winWm.test: Corrected test expectation for menu wrapping.
Diffstat (limited to 'tests/text.test')
-rw-r--r--tests/text.test10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/text.test b/tests/text.test
index b4e3954..e115d43 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.45 2006/08/18 10:49:34 dkf Exp $
+# RCS: @(#) $Id: text.test,v 1.46 2006/10/17 10:21:50 patthoyts Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -3068,10 +3068,12 @@ test text-25.13 {-maxundo configuration option} {
test text-25.15 {bug fix 1536735 - undo with empty text} {
catch {destroy .t}
text .t -undo 1
+ set r [.t edit modified]
.t delete 1.0
- .t edit undo
- .t edit modified
-} {0}
+ lappend r [.t edit modified]
+ lappend r [catch {.t edit undo}]
+ lappend r [.t edit modified]
+} {0 0 1 0}
test text-26.1 {bug fix - 624372, ControlUtfProc long lines} {
destroy .t