diff options
author | ericm <ericm> | 2000-06-30 20:19:06 (GMT) |
---|---|---|
committer | ericm <ericm> | 2000-06-30 20:19:06 (GMT) |
commit | 4ea21e7c7a8efc810e06538dc01f09547fce9e87 (patch) | |
tree | ac4757d8dfa96eec851c416a384f4d2852ab97fb /tests | |
parent | 360ba5a659a8fac08458227696f08e8786486821 (diff) | |
download | tk-4ea21e7c7a8efc810e06538dc01f09547fce9e87.zip tk-4ea21e7c7a8efc810e06538dc01f09547fce9e87.tar.gz tk-4ea21e7c7a8efc810e06538dc01f09547fce9e87.tar.bz2 |
* tests/filebox.test: Adjusted tests to accomodate -multiple.
* library/xmfbox.tcl: Adjusted arguments list construction such
that -multiple is not presented as an option for tk_getSaveFile.
* library/tk.tcl: Added test for safe interpreter status before
attempting to load message catalogs (which is impossible in a
standard safe interpreter). This means that SafeTk will not have
localized dialogs, unless a means is found for loading the message
catalog files.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/filebox.test | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/filebox.test b/tests/filebox.test index 4f8242e..bff0465 100644 --- a/tests/filebox.test +++ b/tests/filebox.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: filebox.test,v 1.9 2000/03/24 19:38:57 ericm Exp $ +# RCS: @(#) $Id: filebox.test,v 1.10 2000/06/30 20:19:07 ericm Exp $ # if {[lsearch [namespace children] ::tcltest] == -1} { @@ -105,7 +105,8 @@ if {$tcl_platform(platform) == "unix"} { set modes 1 } -set unknownOptionsMsg {1 {bad option "-foo": must be -defaultextension, -filetypes, -initialdir, -initialfile, -parent, or -title}} +set unknownOptionsMsg(tk_getOpenFile) {1 {bad option "-foo": must be -defaultextension, -filetypes, -initialdir, -initialfile, -multiple, -parent, or -title}} +set unknownOptionsMsg(tk_getSaveFile) {1 {bad option "-foo": must be -defaultextension, -filetypes, -initialdir, -initialfile, -parent, or -title}} set tmpFile "filebox.tmp" makeFile { @@ -130,7 +131,7 @@ foreach mode $modes { foreach command "tk_getOpenFile tk_getSaveFile" { test filebox-1.1 "$command command" { list [catch {$command -foo} msg] $msg - } $unknownOptionsMsg + } $unknownOptionsMsg($command) catch {$command -foo 1} msg regsub -all , $msg "" options @@ -146,7 +147,7 @@ foreach mode $modes { test filebox-1.3 "$command command" { list [catch {$command -foo bar} msg] $msg - } $unknownOptionsMsg + } $unknownOptionsMsg($command) test filebox-1.4 "$command command" { list [catch {$command -initialdir} msg] $msg |