summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2016-01-11 18:00:11 (GMT)
committerfvogelnew1@free.fr <fvogel>2016-01-11 18:00:11 (GMT)
commit70cc900eebb82d05cbcc5545246edd2db109dad5 (patch)
tree502dff781e979e6f931e856bcbc506a3a53250ed
parent09d41ac6b35d2dc53b02b9a90202562f4a1df9c1 (diff)
downloadtk-70cc900eebb82d05cbcc5545246edd2db109dad5.zip
tk-70cc900eebb82d05cbcc5545246edd2db109dad5.tar.gz
tk-70cc900eebb82d05cbcc5545246edd2db109dad5.tar.bz2
Added some tests
-rw-r--r--tests/listbox.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/listbox.test b/tests/listbox.test
index 0519e93..effaad8 100644
--- a/tests/listbox.test
+++ b/tests/listbox.test
@@ -203,6 +203,21 @@ test listbox-1.31 {configuration options} -body {
} -cleanup {
.l configure -highlightthickness [lindex [.l configure -highlightthickness] 3]
} -result {0 0}
+test listbox-1.32.1 {configuration options} -setup {
+ set res {}
+} -body {
+ .l configure -justify left
+ set res [list [lindex [.l configure -justify] 4] [.l cget -justify]]
+ .l configure -justify center
+ lappend res [lindex [.l configure -justify] 4] [.l cget -justify]
+ .l configure -justify right
+ lappend res [lindex [.l configure -justify] 4] [.l cget -justify]
+} -cleanup {
+ .l configure -justify [lindex [.l configure -justify] 3]
+} -result {left left center center right right}
+test listbox-1.32.2 {configuration options} -body {
+ .l configure -justify bogus
+} -returnCodes error -result {bad justification "bogus": must be left, right, or center}
test listbox-1.33 {configuration options} -body {
.l configure -relief groove
list [lindex [.l configure -relief] 4] [.l cget -relief]