summaryrefslogtreecommitdiffstats
path: root/tests/font.test
diff options
context:
space:
mode:
authorculler <culler>2024-06-10 15:37:44 (GMT)
committerculler <culler>2024-06-10 15:37:44 (GMT)
commit338762b617f55c9699753c8f38f582bf70b23dee (patch)
tree8d05b190e6d88eb530660fc96c5c59d3ffa2597e /tests/font.test
parent06a4ba5407ebd451d8ab5d56bb06fad34f24766f (diff)
parent3f0a126393198d3f6e0dff58e479ee9cab5b213d (diff)
downloadtk-338762b617f55c9699753c8f38f582bf70b23dee.zip
tk-338762b617f55c9699753c8f38f582bf70b23dee.tar.gz
tk-338762b617f55c9699753c8f38f582bf70b23dee.tar.bz2
New branch: merges the crossing events fix (sans processevents) with cgimage drawing
Diffstat (limited to 'tests/font.test')
-rw-r--r--tests/font.test13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/font.test b/tests/font.test
index ca38269..4c1f0de 100644
--- a/tests/font.test
+++ b/tests/font.test
@@ -2434,15 +2434,15 @@ test font-47.2 {Bug 3049518 - Canvas} -body {
set twidth [font measure MyFont $text]
set theight [font metrics MyFont -linespace]
set circid [$c create polygon \
- 15 15 \
- [expr {15 + $twidth}] 15 \
- [expr {15 + $twidth}] [expr {15 + $theight}] \
- 15 [expr {15 + $theight}] \
- -width 1 -joinstyle round -smooth true -fill {} -outline blue]
+ 15 15 \
+ [expr {15 + $twidth}] 15 \
+ [expr {15 + $twidth}] [expr {15 + $theight}] \
+ 15 [expr {15 + $theight}] \
+ -width 1 -joinstyle round -smooth true -fill {} -outline blue]
pack $c -fill both -expand 1 -side top
update
- # Lamda test functions
+ # Lambda test functions
set circle_text {{w user_data text circ} {
if {[winfo class $w] ne "Canvas"} {
puts "Wrong widget type: $w"
@@ -2468,6 +2468,7 @@ test font-47.2 {Bug 3049518 - Canvas} -body {
apply $circle_text $c FontChanged $textid $circid
update
bind $c <<TkWorldChanged>> [list apply $circle_text %W %d $textid $circid]
+ update idletasks
# Begin test:
set results {}