diff options
author | hobbs <hobbs> | 2000-03-02 23:52:55 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2000-03-02 23:52:55 (GMT) |
commit | b93159911b0f165035cde37eb6cc152e758f12f9 (patch) | |
tree | 29e823688f48198490f26d021a0de72b58d2e65d /tests/color.test | |
parent | 9e115e8e9969916fbac1c83d9db2b2b773927f30 (diff) | |
download | tk-b93159911b0f165035cde37eb6cc152e758f12f9.zip tk-b93159911b0f165035cde37eb6cc152e758f12f9.tar.gz tk-b93159911b0f165035cde37eb6cc152e758f12f9.tar.bz2 |
* tests/color.test:
* xlib/xcolors.c (XParseColor FindColor):
* win/tkWinColor.c (XAllocColor): Fixed bit fiddling for colors to
return "correct" values for color mapping. [Bug: 4282]
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 - - - - - - - - - - - - - |