summaryrefslogtreecommitdiffstats
path: root/tests/button.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-14 10:33:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-14 10:33:56 (GMT)
commit8a2f66101bb61555e247c13cd0e6717121c07c49 (patch)
treeb8f356a9d8222392f1a8bb46df120b3c5235f89a /tests/button.test
parent886c564929235ae0172e8f74c1f13b2f4677edf9 (diff)
parent7cfd623dc5324f153717a00faa7c3e080811bcbb (diff)
downloadtk-8a2f66101bb61555e247c13cd0e6717121c07c49.zip
tk-8a2f66101bb61555e247c13cd0e6717121c07c49.tar.gz
tk-8a2f66101bb61555e247c13cd0e6717121c07c49.tar.bz2
Merge 8.7. Add testcases
Diffstat (limited to 'tests/button.test')
-rw-r--r--tests/button.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/button.test b/tests/button.test
index b30780d..c75b5e7 100644
--- a/tests/button.test
+++ b/tests/button.test
@@ -2668,6 +2668,17 @@ test button-1.270 {configuration options} -body {
destroy .c
} -result {}
+test button-1.271 {configuration options: fallback to default} -setup {
+ checkbutton .c -borderwidth -2 -highlightthickness -2 -font {Helvetica -12 bold}
+ pack .c
+ update
+} -body {
+ .c configure -padx -2 -pady -2 -wraplength -2
+ list [.c cget -padx] [.c cget -pady] [.c cget -borderwidth] [.c cget -highlightthickness] [.c cget -wraplength]
+} -cleanup {
+ destroy .c
+} -result {0 0 0 0 0}
+
# ex-tests 3.*
test button-2.1 {ButtonCreate - not enough arguments} -body {
button