summaryrefslogtreecommitdiffstats
path: root/tests/ttk/labelframe.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ttk/labelframe.test')
-rw-r--r--tests/ttk/labelframe.test16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/ttk/labelframe.test b/tests/ttk/labelframe.test
index acb13b4..f7cb8ef 100644
--- a/tests/ttk/labelframe.test
+++ b/tests/ttk/labelframe.test
@@ -1,4 +1,4 @@
-package require Tk
+package require tk
package require tcltest 2.2
namespace import -force tcltest::*
loadTestedCommands
@@ -128,4 +128,18 @@ test labelframe-6.1 "Stacking order" -body {
destroy .t
} -result [list .t.x1 .t.lf .t.lb .t.x2]
+test labelframe-7.1 "style command" -body {
+ ttk::labelframe .w
+ list [.w cget -style] [.w style] [winfo class .w]
+} -cleanup {
+ destroy .w
+} -result {{} TLabelframe TLabelframe}
+test labelframe-7.2 "style command" -body {
+ ttk::style configure customStyle.TLabelframe
+ ttk::labelframe .w -style customStyle.TLabelframe
+ list [.w cget -style] [.w style] [winfo class .w]
+} -cleanup {
+ destroy .w
+} -result {customStyle.TLabelframe customStyle.TLabelframe TLabelframe}
+
tcltest::cleanupTests