diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2008-10-11 06:55:03 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2008-10-11 06:55:03 (GMT) |
commit | fb99778e5381920dc0c3815636fcd7f0fd5175ee (patch) | |
tree | d401a72b3c9af3a033d4db7b739c5ca4cdb4aa00 /tests/canvText.test | |
parent | 2ae917919fb7117a142c487462b4ef845f74a2df (diff) | |
download | tk-fb99778e5381920dc0c3815636fcd7f0fd5175ee.zip tk-fb99778e5381920dc0c3815636fcd7f0fd5175ee.tar.gz tk-fb99778e5381920dc0c3815636fcd7f0fd5175ee.tar.bz2 |
Correct error result generation of [$canvas select clear $bogus].
Diffstat (limited to 'tests/canvText.test')
-rw-r--r-- | tests/canvText.test | 5 |
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" |