diff options
Diffstat (limited to 'tests/color.test')
-rw-r--r-- | tests/color.test | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/tests/color.test b/tests/color.test index 3b86efc..9dbc85a 100644 --- a/tests/color.test +++ b/tests/color.test @@ -5,7 +5,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: color.test,v 1.3 1999/04/16 01:51:36 stanton Exp $ +# RCS: @(#) $Id: color.test,v 1.4 2000/03/02 23:52:55 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { source [file join [pwd] [file dirname [info script]] defs.tcl] @@ -189,6 +189,12 @@ test color-2.3 {Tk_GetColor procedure} { test color-2.4 {Tk_GetColor procedure} { list [catch {winfo rgb .t #xyz} msg] $msg } {1 {invalid color name "#xyz"}} +test color-2.5 {Tk_GetColor procedure} { + winfo rgb .t #00FF00 +} {0 65535 0} +test color-2.6 {Tk_GetColor procedure} { + winfo rgb .t red +} {65535 0 0} test color-3.1 {Tk_FreeColor procedure, reference counting} { eval destroy [winfo child .t] @@ -284,16 +290,3 @@ destroy .t # cleanup ::tcltest::cleanupTests return - - - - - - - - - - - - - |