diff options
author | pspjuth <peter.spjuth@gmail.com> | 2001-09-23 11:30:44 (GMT) |
---|---|---|
committer | pspjuth <peter.spjuth@gmail.com> | 2001-09-23 11:30:44 (GMT) |
commit | cda9d85e8ed19fceded9d78a243955ef972b57f8 (patch) | |
tree | 53138b4aca7d19804a110115815f1df78525293c /tests/grid.test | |
parent | 38f3f6ea63f51c5d80a215f5bf71fd23ac5117f2 (diff) | |
download | tk-cda9d85e8ed19fceded9d78a243955ef972b57f8.zip tk-cda9d85e8ed19fceded9d78a243955ef972b57f8.tar.gz tk-cda9d85e8ed19fceded9d78a243955ef972b57f8.tar.bz2 |
Pack accepted asymmetric values for -ipadx/y.
Only -padx/y supports asymmetry. [Bug #462348]
Diffstat (limited to 'tests/grid.test')
-rw-r--r-- | tests/grid.test | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/grid.test b/tests/grid.test index 55df6c1..b7711a0 100644 --- a/tests/grid.test +++ b/tests/grid.test @@ -5,7 +5,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: grid.test,v 1.12 2001/08/22 19:59:49 pspjuth Exp $ +# RCS: @(#) $Id: grid.test,v 1.13 2001/09/23 11:30:44 pspjuth Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { source [file join [pwd] [file dirname [info script]] defs.tcl] @@ -957,6 +957,12 @@ test grid-13.4 {-ipadx} { } {1 {bad ipadx value "x": must be positive screen distance}} grid_reset 13.4 +test grid-13.4.1 {-ipadx} { + frame .f -width 20 -height 20 -highlightthickness 0 -bg red + list [catch "grid .f -ipadx {5 5}" msg] $msg +} {1 {bad ipadx value "5 5": must be positive screen distance}} +grid_reset 13.4.1 + test grid-13.5 {-ipadx} { frame .f -width 200 -height 100 -highlightthickness 0 -bg red grid .f @@ -974,6 +980,12 @@ test grid-13.6 {-ipady} { } {1 {bad ipady value "x": must be positive screen distance}} grid_reset 13.6 +test grid-13.6.1 {-ipady} { + frame .f -width 20 -height 20 -highlightthickness 0 -bg red + list [catch "grid .f -ipady {5 5}" msg] $msg +} {1 {bad ipady value "5 5": must be positive screen distance}} +grid_reset 13.6.1 + test grid-13.7 {-ipady} { frame .f -width 200 -height 100 -highlightthickness 0 -bg red grid .f |