summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2018-09-02 15:40:09 (GMT)
committerfvogel <fvogelnew1@free.fr>2018-09-02 15:40:09 (GMT)
commit5d2ce7fc6a86dd052459261a1c49569e578f7797 (patch)
tree61fb70ea30130140fe37982e1cfd2c3a7463cea1 /tests
parenta6547daef24a49fbd69a9a64445e3a82f0ad3601 (diff)
parent8097f92d56807f0648ebd6e940dc390eb4eb4b21 (diff)
downloadtk-5d2ce7fc6a86dd052459261a1c49569e578f7797.zip
tk-5d2ce7fc6a86dd052459261a1c49569e578f7797.tar.gz
tk-5d2ce7fc6a86dd052459261a1c49569e578f7797.tar.bz2
Fix [3441086fff]: ttk::style layout with empty -children silently disappears
Diffstat (limited to 'tests')
-rw-r--r--tests/ttk/layout.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ttk/layout.test b/tests/ttk/layout.test
index 814e1d9..52f44b4 100644
--- a/tests/ttk/layout.test
+++ b/tests/ttk/layout.test
@@ -21,5 +21,8 @@ test layout-1.1 "Size computations for mixed-orientation layouts" -body {
} -cleanup { destroy .b } -result [list 24 24]
+test layout-2 "Empty -children not allowed" -body {
+ ttk::style layout Test.Tentry {Entry.field -children {}}
+} -returnCodes error -result {Invalid -children value}
tcltest::cleanupTests