summaryrefslogtreecommitdiffstats
path: root/tests/canvText.test
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2008-10-11 06:47:25 (GMT)
committerdkf <dkf@noemail.net>2008-10-11 06:47:25 (GMT)
commit0837d12d03ae5bb0784c67f5d296d65a7318a9e6 (patch)
tree204c669715887f7038fa12ee7b808a62db166590 /tests/canvText.test
parent95c8403cc47b0a6fc9e032948211f300cc978c97 (diff)
downloadtk-0837d12d03ae5bb0784c67f5d296d65a7318a9e6.zip
tk-0837d12d03ae5bb0784c67f5d296d65a7318a9e6.tar.gz
tk-0837d12d03ae5bb0784c67f5d296d65a7318a9e6.tar.bz2
Correct error result generation of [$canvas select clear $bogus].
FossilOrigin-Name: 9e66671f83d5fafc5a207a3f64313c81a0bed8e1
Diffstat (limited to 'tests/canvText.test')
-rw-r--r--tests/canvText.test10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/canvText.test b/tests/canvText.test
index 533a316..96a362a 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.20 2008/10/08 16:13:42 dgp Exp $
+# RCS: @(#) $Id: canvText.test,v 1.21 2008/10/11 06:47:25 dkf Exp $
package require tcltest 2.2
namespace import ::tcltest::*
@@ -819,7 +819,13 @@ test canvText-14.5 {GetTextIndex procedure: bad int or unknown index} -setup {
} -cleanup {
.c delete test
} -returnCodes {error} -result {bad index "xyz"}
-
+test canvText-14.6 {select clear errors} -setup {
+ .c create text 0 0 -tag test
+} -body {
+ .c select clear test
+} -cleanup {
+ .c delete test
+} -returnCodes error -result "wrong \# args: should be \".c select clear\""
test canvText-15.1 {SetTextCursor procedure} -setup {
.c create text 0 0 -tag test