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