summaryrefslogtreecommitdiffstats
path: root/tests/dialog.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dialog.test')
-rw-r--r--tests/dialog.test11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/dialog.test b/tests/dialog.test
index 53c10c0..f47296e 100644
--- a/tests/dialog.test
+++ b/tests/dialog.test
@@ -2,15 +2,12 @@
# It is organized in the standard fashion for Tcl tests.
package require tcltest 2.1
-namespace import -force tcltest::configure
-namespace import -force tcltest::testsDirectory
-configure -testdir [file join [pwd] [file dirname [info script]]]
-configure -loadfile [file join [testsDirectory] constraints.tcl]
+eval tcltest::configure $argv
tcltest::loadTestedCommands
-test dialog-1.1 {tk_dialog command} {
+test dialog-1.1 {tk_dialog command} -body {
list [catch {tk_dialog} msg] $msg
-} {1 {wrong # args: should be "tk_dialog w title text bitmap default args"}}
+} -match glob -result {1 {wrong # args: should be "tk_dialog w title text bitmap default *"}}
test dialog-1.2 {tk_dialog command} {
list [catch {tk_dialog foo foo foo foo foo} msg] $msg
} {1 {bad window path name "foo"}}
@@ -57,5 +54,5 @@ test dialog-2.2 {tk_dialog operation} {
set res
} {-1}
-tcltest::cleanupTests
+cleanupTests
return