diff options
author | jenglish <jenglish@noemail.net> | 2011-09-22 18:10:30 (GMT) |
---|---|---|
committer | jenglish <jenglish@noemail.net> | 2011-09-22 18:10:30 (GMT) |
commit | b4df08ca7da1073742095d12fee569c36a4707e4 (patch) | |
tree | 1f3d74c51d27e678018aae35bf2e4f667359e082 /tests/ttk | |
parent | 1fe021cd94c104b8f5c9bddef3547c5b0fec5385 (diff) | |
download | tk-b4df08ca7da1073742095d12fee569c36a4707e4.zip tk-b4df08ca7da1073742095d12fee569c36a4707e4.tar.gz tk-b4df08ca7da1073742095d12fee569c36a4707e4.tar.bz2 |
Move -takefocus option out of ttkCoreOptionSpecs,
explicitly specify it on individual widgets.
[Bug 3404541], [Bug 1204186].
FossilOrigin-Name: 4e45dfd32a0e6e801788fdc61a8e9067b7de65d5
Diffstat (limited to 'tests/ttk')
-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 |