diff options
author | fvogel <fvogelnew1@free.fr> | 2019-05-26 18:38:14 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-05-26 18:38:14 (GMT) |
commit | aea299e392c37984bf1ded9e99b1299c559ff9cb (patch) | |
tree | e32decce372f373f5a7918d4453751c88f7b1d7c /tests | |
parent | b4cc27df599020f49f57d39aa9b384deedea3877 (diff) | |
parent | bd4341f10b3d578fa90169f24e61d8db933d680d (diff) | |
download | tk-aea299e392c37984bf1ded9e99b1299c559ff9cb.zip tk-aea299e392c37984bf1ded9e99b1299c559ff9cb.tar.gz tk-aea299e392c37984bf1ded9e99b1299c559ff9cb.tar.bz2 |
Merge implementation of TIP #541 following positive vote by the TCT.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ttk/combobox.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ttk/combobox.test b/tests/ttk/combobox.test index 7ea0c5c..45fe0fc 100644 --- a/tests/ttk/combobox.test +++ b/tests/ttk/combobox.test @@ -43,6 +43,17 @@ test combobox-2.4 "current -- value not in list" -body { .cb current } -result -1 +test combobox-2.5 "current -- set to end index" -body { + .cb configure -values [list a b c d e thelastone] + .cb current end + .cb get +} -result thelastone + +test combobox-2.6 "current -- set to unknown index" -body { + .cb configure -values [list a b c d e] + .cb current notanindex +} -returnCodes error -result {Incorrect index notanindex} + test combobox-2.end "Cleanup" -body { destroy .cb } test combobox-3 "Read postoffset value dynamically from current style" -body { |