diff options
author | patthoyts <patthoyts@noemail.net> | 2006-10-17 10:21:48 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@noemail.net> | 2006-10-17 10:21:48 (GMT) |
commit | a62286df03f44beb3b2c2234f59863066c2fc990 (patch) | |
tree | f2e3c2358a8814697991e809019215ff5f2b3659 /tests/text.test | |
parent | 91de82ab5dc1488a06cf2b189636f4d98b968563 (diff) | |
download | tk-a62286df03f44beb3b2c2234f59863066c2fc990.zip tk-a62286df03f44beb3b2c2234f59863066c2fc990.tar.gz tk-a62286df03f44beb3b2c2234f59863066c2fc990.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.
FossilOrigin-Name: e3897e461508323d7a182a812442f57e0ab97c6b
Diffstat (limited to 'tests/text.test')
-rw-r--r-- | tests/text.test | 10 |
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 |