summaryrefslogtreecommitdiffstats
path: root/tests/ttk
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-05-26 18:38:28 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-05-26 18:38:28 (GMT)
commit089077e09c48fcdea6f2d483ecd338ee2bde0552 (patch)
tree63cc920e0947d9f87d480522bb6d2eeacea0d382 /tests/ttk
parentdc4794aab9cacb5d807ef348f3c11807358ae5e2 (diff)
parentaea299e392c37984bf1ded9e99b1299c559ff9cb (diff)
downloadtk-089077e09c48fcdea6f2d483ecd338ee2bde0552.zip
tk-089077e09c48fcdea6f2d483ecd338ee2bde0552.tar.gz
tk-089077e09c48fcdea6f2d483ecd338ee2bde0552.tar.bz2
Merge implementation of TIP #541 following positive vote by the TCT.
Diffstat (limited to 'tests/ttk')
-rw-r--r--tests/ttk/combobox.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ttk/combobox.test b/tests/ttk/combobox.test
index 3868953..5204333 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 {