summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrjohnson <rjohnson>1999-04-06 05:20:12 (GMT)
committerrjohnson <rjohnson>1999-04-06 05:20:12 (GMT)
commitb75ebc79077d3ec11c1e84eff6a08a1188e5c5c7 (patch)
tree6f27dfa558458cffbb8a3e535340ad5119686482
parent8470d7c404b58cc5d3ba12d7ca4c6c3e116aa96e (diff)
downloadtk-b75ebc79077d3ec11c1e84eff6a08a1188e5c5c7.zip
tk-b75ebc79077d3ec11c1e84eff6a08a1188e5c5c7.tar.gz
tk-b75ebc79077d3ec11c1e84eff6a08a1188e5c5c7.tar.bz2
Apparently red is not the same as #FF0000 on all platforms!
Fixed test to not rely on that fact.
-rw-r--r--tests/color.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/color.test b/tests/color.test
index e097210..15664d7 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.1.4.6 1999/03/26 00:07:53 hershey Exp $
+# RCS: @(#) $Id: color.test,v 1.1.4.7 1999/04/06 05:20:12 rjohnson Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
source [file join [pwd] [file dirname [info script]] defs.tcl]
@@ -178,7 +178,7 @@ test color-1.4 {Tk_AllocColorFromObj - try other colors in list} {
} {{{1 1}} {{1 1} {1 0}} {{1 0} {2 1}}}
test color-2.1 {Tk_GetColor procedure} {
- c255 [winfo rgb .t red]
+ c255 [winfo rgb .t #FF0000]
} {255 0 0}
test color-2.2 {Tk_GetColor procedure} {
list [catch {winfo rgb .t noname} msg] $msg