diff options
author | fvogel <fvogelnew1@free.fr> | 2018-10-30 22:55:31 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2018-10-30 22:55:31 (GMT) |
commit | 4487c0a2445e26b62e29558edc6ef05c799c4fba (patch) | |
tree | 992c6841a4e41f5a8158c2d1d84051cf47bb06a1 /tests/grid.test | |
parent | 152ed2f3e133afff91df91511ab181f3a7fe9153 (diff) | |
download | tk-4487c0a2445e26b62e29558edc6ef05c799c4fba.zip tk-4487c0a2445e26b62e29558edc6ef05c799c4fba.tar.gz tk-4487c0a2445e26b62e29558edc6ef05c799c4fba.tar.bz2 |
Add tests for the 'propagate off' case of pack and grid
Diffstat (limited to 'tests/grid.test')
-rw-r--r-- | tests/grid.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/grid.test b/tests/grid.test index 5f2a4f8..444f60f 100644 --- a/tests/grid.test +++ b/tests/grid.test @@ -2100,6 +2100,7 @@ test grid-24.6 {<<NoManagedChild>> does not fire on forelast grid forget} -body } -result {0} test grid-24.7 {<<NoManagedChild>> does not fire on grid anchor} -body { global A + catch {unset A} bind . <<NoManagedChild>> {set A 1} grid anchor . w update @@ -2109,6 +2110,20 @@ test grid-24.7 {<<NoManagedChild>> does not fire on grid anchor} -body { bind . <<NoManagedChild>> {} grid_reset 24.7 } -result {0} +test grid-24.8 {<<NoManagedChild>> does not fire on last grid forget if propagation is off} -body { + global A + catch {unset A} + grid [frame .1] + grid propagate . 0 + update + bind . <<NoManagedChild>> {set A 1} + grid forget .1 + update + info exists A +} -cleanup { + bind . <<NoManagedChild>> {} + grid_reset 24.8 +} -result {0} # cleanup |