diff options
author | patthoyts <patthoyts@users.sourceforge.net> | 2006-10-17 10:21:48 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@users.sourceforge.net> | 2006-10-17 10:21:48 (GMT) |
commit | e58a5fcd90ad9607b9357a1c82417e651ad8ae18 (patch) | |
tree | f2e3c2358a8814697991e809019215ff5f2b3659 /tests/winDialog.test | |
parent | df7092fbb134cfbb28d68c0deca1a6241df8ca02 (diff) | |
download | tk-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/winDialog.test')
-rw-r--r-- | tests/winDialog.test | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/winDialog.test b/tests/winDialog.test index c89ff27..38f125b 100644 --- a/tests/winDialog.test +++ b/tests/winDialog.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # Copyright (c) 1998-1999 ActiveState Corporation. # -# RCS: @(#) $Id: winDialog.test,v 1.12 2004/12/20 10:34:20 vincentdarley Exp $ +# RCS: @(#) $Id: winDialog.test,v 1.13 2006/10/17 10:21:50 patthoyts Exp $ package require tcltest 2.1 eval tcltest::configure $argv @@ -171,18 +171,17 @@ test winDialog-5.15 {GetFileName: initial file: Tcl_TranslateFileName()} {nt} { # if (Tcl_TranslateFileName(interp, string, &ds) == NULL) list [catch {tk_getOpenFile -initialfile ~12x/455} msg] $msg } {1 {user "12x" doesn't exist}} -set a aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -append a $a -append a $a -append a $a -append a $a test winDialog-5.16 {GetFileName: initial file: long name} {nt testwinevent} { - start {set x [tk_getSaveFile -initialfile $a -title Long]} + start { + set dialogresult [catch { + tk_getSaveFile -initialfile [string repeat a 1024] -title Long + } x] + } then { Click 1 } - string totitle $x -} [string totitle [string range [file join [pwd] $a] 0 257]] + list $dialogresult [string match "invalid filename *" $x] +} {1 1} test winDialog-5.17 {GetFileName: parent} {nt} { # case FILE_PARENT: |