diff options
author | nijtmans <nijtmans> | 2008-07-23 23:24:21 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2008-07-23 23:24:21 (GMT) |
commit | 535ee80de6d5c048f9a3ae7a5956b114e9a5e3f6 (patch) | |
tree | 44da117febb11bc69d260540340f018933aa8b45 /tests/text.test | |
parent | 8daba6660a12dce054485bf87cef227741ac76a0 (diff) | |
download | tk-535ee80de6d5c048f9a3ae7a5956b114e9a5e3f6.zip tk-535ee80de6d5c048f9a3ae7a5956b114e9a5e3f6.tar.gz tk-535ee80de6d5c048f9a3ae7a5956b114e9a5e3f6.tar.bz2 |
fix [2021443] inconsistant "wrong # args" messages (for Tk)
Diffstat (limited to 'tests/text.test')
-rw-r--r-- | tests/text.test | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/text.test b/tests/text.test index c195426..8957454 100644 --- a/tests/text.test +++ b/tests/text.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: text.test,v 1.49 2007/12/13 15:27:54 dgp Exp $ +# RCS: @(#) $Id: text.test,v 1.50 2008/07/23 23:24:25 nijtmans Exp $ package require tcltest 2.1 eval tcltest::configure $argv @@ -120,7 +120,7 @@ test text-1.[incr i] {text options} { test text-2.1 {Tk_TextCmd procedure} { list [catch {text} msg] $msg -} {1 {wrong # args: should be "text pathName ?options?"}} +} {1 {wrong # args: should be "text pathName ?-option value ...?"}} test text-2.2 {Tk_TextCmd procedure} { list [catch {text foobar} msg] $msg } {1 {bad window path name "foobar"}} @@ -152,7 +152,7 @@ test text-2.6 {Tk_TextCmd procedure} { test text-3.1 {TextWidgetCmd procedure, basics} { list [catch {.t} msg] $msg -} {1 {wrong # args: should be ".t option ?arg arg ...?"}} +} {1 {wrong # args: should be ".t option ?arg ...?"}} test text-3.2 {TextWidgetCmd procedure} { list [catch {.t gorp 1.0 z 1.2} msg] $msg } {1 {bad option "gorp": must be bbox, cget, compare, configure, count, debug, delete, dlineinfo, dump, edit, get, image, index, insert, mark, peer, replace, scan, search, see, tag, window, xview, or yview}} @@ -548,7 +548,7 @@ test text-9.27 {TextWidgetCmd procedure, "get" option} { .t mark unset c test text-9.2.1 {TextWidgetCmd procedure, "count" option} { list [catch {.t count} msg] $msg -} {1 {wrong # args: should be ".t count ?options? index1 index2"}} +} {1 {wrong # args: should be ".t count ?-option value ...? index1 index2"}} test text-9.2.2.1 {TextWidgetCmd procedure, "count" option} { list [catch {.t count blah 1.0 2.0} msg] $msg } {1 {bad option "blah" must be -chars, -displaychars, -displayindices, -displaylines, -indices, -lines, -update, -xpixels, or -ypixels}} @@ -2963,7 +2963,7 @@ test text-24.1 {bug fix - 1642} { test text-25.1 {TextEditCmd procedure, argument parsing} { list [catch {.t edit} msg] $msg -} {1 {wrong # args: should be ".t edit option ?arg arg ...?"}} +} {1 {wrong # args: should be ".t edit option ?arg ...?"}} test text-25.2 {TextEditCmd procedure, argument parsing} { list [catch {.t edit gorp} msg] $msg } {1 {bad edit option "gorp": must be modified, redo, reset, separator, or undo}} |