diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-17 21:51:19 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-17 21:51:19 (GMT) |
commit | 84d93a6e998f4394ae62cec0ea81fa96287a8d7a (patch) | |
tree | 71675efba3491d878f3c179eb5e2f2a3630b3c15 /tests/listbox.test | |
parent | 1f915d51ed45d9f68cb4933a1c31b68c254ed242 (diff) | |
download | tk-84d93a6e998f4394ae62cec0ea81fa96287a8d7a.zip tk-84d93a6e998f4394ae62cec0ea81fa96287a8d7a.tar.gz tk-84d93a6e998f4394ae62cec0ea81fa96287a8d7a.tar.bz2 |
Follow-up to [d9bda1d1]: Clamp "listbox index" values between -1 and (maximum) end+1 = the number of elements, which point to one more than the last emlement.... that's what other GUI elements are really doing too. Duh.
Diffstat (limited to 'tests/listbox.test')
-rw-r--r-- | tests/listbox.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/listbox.test b/tests/listbox.test index f994e45..98ec96c 100644 --- a/tests/listbox.test +++ b/tests/listbox.test @@ -724,7 +724,7 @@ test listbox-3.62 {ListboxWidgetCmd procedure, "index" option} -body { } -result 18 test listbox-3.63 {ListboxWidgetCmd procedure, "index" option} -body { .l index 34 -} -result 19 +} -result 18 test listbox-3.64 {ListboxWidgetCmd procedure, "insert" option} -body { .l insert } -returnCodes error -result {wrong # args: should be ".l insert index ?element ...?"} @@ -2112,7 +2112,7 @@ test listbox-10.17 {GetListboxIndex procedure} -setup { .l index 20 } -cleanup { destroy .l -} -result {13} +} -result {12} test listbox-10.18 {GetListboxIndex procedure} -setup { destroy .l } -body { @@ -2143,7 +2143,7 @@ test listbox-10.20 {GetListboxIndex procedure} -setup { .l index 1 } -cleanup { destroy .l -} -result 1 +} -result 0 test listbox-11.1 {ChangeListboxView procedure, boundary conditions for index} -setup { |