diff options
author | patthoyts <patthoyts@users.sourceforge.net> | 2016-09-22 13:50:11 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@users.sourceforge.net> | 2016-09-22 13:50:11 (GMT) |
commit | 9bfe23ec8dfc74285682572d55318e5b1fe5befb (patch) | |
tree | 12145e68c2260449647af9f04f5c8ccb6212710d /tests | |
parent | f54609000a192f8eac04dd2f9fc45b9dd88283a6 (diff) | |
parent | a7e24bcc8fe8783f5f4f41f7ed125528c16d185b (diff) | |
download | tk-9bfe23ec8dfc74285682572d55318e5b1fe5befb.zip tk-9bfe23ec8dfc74285682572d55318e5b1fe5befb.tar.gz tk-9bfe23ec8dfc74285682572d55318e5b1fe5befb.tar.bz2 |
Merge core-8-6-branch to trunk.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ttk/spinbox.test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ttk/spinbox.test b/tests/ttk/spinbox.test index 6c328bb..38bae14 100644 --- a/tests/ttk/spinbox.test +++ b/tests/ttk/spinbox.test @@ -199,6 +199,27 @@ test spinbox-2.4 "current command -- value not in list" -constraints nyi -setup destroy .sb } -result -1 +test spinbox-3.0 "textarea should expand to fill widget" -setup { + set SBV 5 + set ::spinbox_test {} + ttk::spinbox .sb -from 0 -to 10 -textvariable SBV +} -body { + grid .sb -sticky ew + grid columnconfigure . 0 -weight 1 + bind . <Map> { + after idle { + wm geometry . "210x80" + after 100 {set ::spinbox_test [.sb identify element 5 5]} + } + bind . <Map> {} + } + after 500 {set ::spinbox_wait 1} ; vwait ::spinbox_wait + set ::spinbox_test +} -cleanup { + destroy .sb + unset -nocomplain ::spinbox_test SBV +} -result {textarea} + # nostomp: NB intentional difference between ttk::spinbox and tk::spinbox; # see also #1439266 # |