Artifact
bbdc83b4463db2e6fe42535b93d87220b3121297:
Attachment "2389878.test" to
ticket [2389878f]
added by
jenglish
2008-12-21 01:56:22.
package require tcltest ; namespace import -force tcltest::*
package require tile
wm iconify .
# See 2389878 "ttk::frame doesn't maintain borderwidth spacing"
test frame-2389878 "Ensure -borderwidth is honored" -setup {
set result [list]
pack [ttk::frame .f] -expand true -fill both
grid [ttk::button .f.b] -sticky news
} -body {
update ; lappend result [winfo x .f.b] [winfo y .f.b]
.f configure -borderwidth 1
update ; lappend result [winfo x .f.b] [winfo y .f.b]
.f configure -borderwidth 2
update ; lappend result [winfo x .f.b] [winfo y .f.b]
.f configure -borderwidth 3
update ; lappend result [winfo x .f.b] [winfo y .f.b]
set result
} -result [list 0 0 1 1 2 2 3 3] -cleanup {
#destroy .f
}
tcltest::cleanupTests