diff options
author | jenglish <jenglish@flightlab.com> | 2011-09-22 18:34:53 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2011-09-22 18:34:53 (GMT) |
commit | 6f0061cc623242e99306b0dc9e5642b84be8cef5 (patch) | |
tree | 9da9e1432ea629149cd1208dee9f5957888d3b25 /tests | |
parent | 6d71bc534ef26440835770cb3b305fb91074f724 (diff) | |
parent | 3d7771a4c563657f852eddc6b6e5a1e5223cd568 (diff) | |
download | tk-6f0061cc623242e99306b0dc9e5642b84be8cef5.zip tk-6f0061cc623242e99306b0dc9e5642b84be8cef5.tar.gz tk-6f0061cc623242e99306b0dc9e5642b84be8cef5.tar.bz2 |
Move -takefocus option out of ttkCoreOptionSpecs,
explicitly specify it on individual widgets.
[Bug 3404541], [Bug 1204186].
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ttk/ttk.test | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/tests/ttk/ttk.test b/tests/ttk/ttk.test index 5a982b6..def709e 100644 --- a/tests/ttk/ttk.test +++ b/tests/ttk/ttk.test @@ -6,6 +6,14 @@ loadTestedCommands proc skip args {} proc ok {} { return } +variable widgetClasses { + button checkbutton radiobutton menubutton label entry + frame labelframe scrollbar + notebook progressbar combobox separator + panedwindow treeview sizegrip + scale +} + proc bgerror {error} { variable bgerror $error variable bgerrorInfo $::errorInfo @@ -62,10 +70,7 @@ test ttk-6.6 "Bad color spec in styles" -body { } -result {unknown color name "badColor"} test ttk-6.7 "Basic destruction test" -body { - foreach widget { - button checkbutton radiobutton sizegrip separator notebook - progressbar panedwindow scrollbar - } { + foreach widget $widgetClasses { ttk::$widget .w pack .w destroy .w @@ -214,6 +219,21 @@ test ttk-2.8 "bug 3223850: button state disabled during click" -setup { unset -nocomplain ttk28 aid } -result 1 +foreach wc $widgetClasses { + test ttk-coreoptions-$wc "$wc has all core options" -body { + ttk::$wc .w + foreach option { + -class + -style + -cursor + -takefocus + } { + .w cget $option + } + destroy .w + } +} + # misc. error detection test ttk-3.0 "Bad option" -body { ttk::button .bad -badoption foo |