summaryrefslogtreecommitdiffstats
path: root/tests/button.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/button.test')
-rw-r--r--tests/button.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/button.test b/tests/button.test
index 24fc2dc..58932bb 100644
--- a/tests/button.test
+++ b/tests/button.test
@@ -7,7 +7,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: button.test,v 1.4 2000/03/02 21:52:24 hobbs Exp $
+# RCS: @(#) $Id: button.test,v 1.5 2000/03/08 03:19:31 ericm Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
source [file join [pwd] [file dirname [info script]] defs.tcl]
@@ -69,7 +69,7 @@ foreach test {
{bad default "huh?": must be active, disabled, or normal}
{0 1 0 0}}
{-disabledforeground #00ff00 #00ff00 xyzzy {unknown color name "xyzzy"}
- {0 1 1 1}}
+ {1 1 1 1}}
{-fg #110022 #110022 bogus {unknown color name "bogus"} {1 1 1 1}}
{-font {Helvetica 12} {Helvetica 12} {} {font "" doesn't exist} {1 1 1 1}}
{-foreground #110022 #110022 bogus {unknown color name "bogus"} {1 1 1 1}}
@@ -91,7 +91,7 @@ foreach test {
{-relief groove groove 1.5 {bad relief "1.5": must be flat, groove, raised, ridge, solid, or sunken} {1 1 1 1}}
{-selectcolor #110022 #110022 bogus {unknown color name "bogus"} {0 0 1 1}}
{-selectimage image1 image1 bogus {image "bogus" doesn't exist} {0 0 1 1}}
- {-state normal normal bogus {bad state "bogus": must be active, disabled, or normal} {0 1 1 1}}
+ {-state normal normal bogus {bad state "bogus": must be active, disabled, or normal} {1 1 1 1}}
{-takefocus "any string" "any string" {} {} {1 1 1 1}}
{-text "Sample text" {Sample text} {} {} {1 1 1 1}}
{-textvariable i i {} {} {1 1 1 1}}
@@ -201,8 +201,8 @@ test button-4.6 {ButtonWidgetCmd procedure, "cget" option} {
.b cget -highlightthickness
} {3}
test button-4.7 {ButtonWidgetCmd procedure, "cget" option} {
- list [catch {.l cget -disabledforeground} msg] $msg
-} {1 {unknown option "-disabledforeground"}}
+ catch {.l cget -disabledforeground}
+} {0}
test button-4.8 {ButtonWidgetCmd procedure, "cget" option} {
catch {.b cget -disabledforeground}
} {0}