diff options
author | culler <culler> | 2019-04-05 19:55:57 (GMT) |
---|---|---|
committer | culler <culler> | 2019-04-05 19:55:57 (GMT) |
commit | 081ca218bb45dcb50deb08f5674ed98c317f18b6 (patch) | |
tree | dc5c18612f61da4b945117828e40508bf3de2ae4 /tests/grid.test | |
parent | db0089391e638dba6174fa80b2ab69a03cbce72b (diff) | |
download | tk-081ca218bb45dcb50deb08f5674ed98c317f18b6.zip tk-081ca218bb45dcb50deb08f5674ed98c317f18b6.tar.gz tk-081ca218bb45dcb50deb08f5674ed98c317f18b6.tar.bz2 |
Fix bug [897ffea89f]: Tk allows management loops
Diffstat (limited to 'tests/grid.test')
-rw-r--r-- | tests/grid.test | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/grid.test b/tests/grid.test index cba69db..cc445e3 100644 --- a/tests/grid.test +++ b/tests/grid.test @@ -80,6 +80,7 @@ test grid-1.9 {basic argument checking} -body { grid_reset 1.9 } -returnCodes ok -result {} + test grid-2.1 {bbox} -body { grid bbox . } -result {0 0 0 0} @@ -192,6 +193,31 @@ test grid-3.9 {configure: basic argument checking} -body { } -cleanup { grid_reset 3.9 } -returnCodes error -result {invalid window shortcut, "y" should be '-', 'x', or '^'} +test grid-3.10 {configure: basic argument checking} -body { + frame .f + grid .f -in .f +} -cleanup { + grid_reset 3.10 +} -returnCodes error -result {window can't be managed in itself} +test grid-3.11 {configure: basic argument checking} -body { + frame .f1 + frame .f2 + grid .f1 -in .f2 + grid .f2 -in .f1 + update +} -cleanup { + grid_reset 3.11 +} -returnCodes error -result {can't put .f2 inside .f1, would cause management loop} +test grid-3.12 {configure: basic argument checking} -body { + frame .f1 + frame .f2 + frame .f3 + grid .f1 -in .f2 + grid .f2 -in .f3 + grid .f3 -in .f1 +} -cleanup { + grid_reset 3.12 +} -returnCodes error -result {can't put .f3 inside .f1, would cause management loop} test grid-4.1 {forget: basic argument checking} -body { grid forget foo |