summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-05-23 13:12:38 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-05-23 13:12:38 (GMT)
commit410808031e49d239bceedf4f48d8a52d2350bdcf (patch)
tree1344d403d5ecac72e91633f8b075148a2a3cff79 /tests
parente50bfa3ef78703fbb073cc1fc61327a7f9f5f822 (diff)
downloadtk-410808031e49d239bceedf4f48d8a52d2350bdcf.zip
tk-410808031e49d239bceedf4f48d8a52d2350bdcf.tar.gz
tk-410808031e49d239bceedf4f48d8a52d2350bdcf.tar.bz2
Make "send" (and "testsend") use the Tcl_Obj API.
Diffstat (limited to 'tests')
-rw-r--r--tests/constraints.tcl1
-rw-r--r--tests/send.test3
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/constraints.tcl b/tests/constraints.tcl
index e28b159..535d839 100644
--- a/tests/constraints.tcl
+++ b/tests/constraints.tcl
@@ -207,7 +207,6 @@ testConstraint testembed [llength [info commands testembed]]
testConstraint testfont [llength [info commands testfont]]
testConstraint testmakeexist [llength [info commands testmakeexist]]
testConstraint testmenubar [llength [info commands testmenubar]]
-testConstraint testmenubar [llength [info commands testmenubar]]
testConstraint testmetrics [llength [info commands testmetrics]]
testConstraint testobjconfig [llength [info commands testobjconfig]]
testConstraint testsend [llength [info commands testsend]]
diff --git a/tests/send.test b/tests/send.test
index e3156a1..2a564bd 100644
--- a/tests/send.test
+++ b/tests/send.test
@@ -14,6 +14,7 @@ package require tcltest 2.1
eval tcltest::configure $argv
tcltest::loadTestedCommands
+testConstraint secureserver 1
testConstraint xhost [llength [auto_execok xhost]]
# Compute a script that will load Tk into a child interpreter.
@@ -227,7 +228,7 @@ test send-8.3 {Tk_SendCmd procedure, options} {secureserver} {
} {1 {no application named "-async"}}
test send-8.4 {Tk_SendCmd procedure, options} {secureserver} {
list [catch {send -gorp foo bar baz} msg] $msg
-} {1 {bad option "-gorp": must be -async, -displayof, or --}}
+} {1 {no application named "-gorp"}}
test send-8.5 {Tk_SendCmd procedure, options} {secureserver} {
list [catch {send -async foo} msg] $msg
} {1 {wrong # args: should be "send ?-option value ...? interpName arg ?arg ...?"}}