summaryrefslogtreecommitdiffstats
path: root/tests/canvText.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-10-11 06:55:03 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-10-11 06:55:03 (GMT)
commit2d63bd4b434d5972d70d84ac61cc71c42932d227 (patch)
treed401a72b3c9af3a033d4db7b739c5ca4cdb4aa00 /tests/canvText.test
parent47fc422920f9750bd3ee3cfc70439220577f769a (diff)
downloadtk-2d63bd4b434d5972d70d84ac61cc71c42932d227.zip
tk-2d63bd4b434d5972d70d84ac61cc71c42932d227.tar.gz
tk-2d63bd4b434d5972d70d84ac61cc71c42932d227.tar.bz2
Correct error result generation of [$canvas select clear $bogus].
Diffstat (limited to 'tests/canvText.test')
-rw-r--r--tests/canvText.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/canvText.test b/tests/canvText.test
index 615bf15..5db53c8 100644
--- a/tests/canvText.test
+++ b/tests/canvText.test
@@ -6,7 +6,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: canvText.test,v 1.16.4.1 2008/10/09 15:17:44 dgp Exp $
+# RCS: @(#) $Id: canvText.test,v 1.16.4.2 2008/10/11 06:55:03 dkf Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -458,6 +458,9 @@ test canvText-14.4 {GetTextIndex procedure: select error} {
test canvText-14.5 {GetTextIndex procedure: bad int or unknown index} {
list [catch {.c index test xyz} msg] $msg
} {1 {bad index "xyz"}}
+test canvText-14.6 {select clear errors} -body {
+ .c select clear test
+} -returnCodes error -result "wrong \# args: should be \".c select clear\""
test canvText-15.1 {SetTextCursor procedure} {
.c itemconfig -text "abcdefg"