diff options
author | fvogel <fvogelnew1@free.fr> | 2022-10-28 20:29:57 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2022-10-28 20:29:57 (GMT) |
commit | e02e3e295a7936be7745a5e7885a890a22c500f0 (patch) | |
tree | 045dfc597567da4207811fe8f8a456c32247677a /tests/canvText.test | |
parent | b3ff05ad294b28f56dfda125634449a88c1cff69 (diff) | |
download | tk-e02e3e295a7936be7745a5e7885a890a22c500f0.zip tk-e02e3e295a7936be7745a5e7885a890a22c500f0.tar.gz tk-e02e3e295a7936be7745a5e7885a890a22c500f0.tar.bz2 |
Remove failsOnUbuntu and failsOnXQuarz constraints on canvText-20.1. Using TkDefaultFont instead of Hevetica should let the test pass on all platforms without the rounding errors on the bbox that led this test to failure on Linux.
Diffstat (limited to 'tests/canvText.test')
-rw-r--r-- | tests/canvText.test | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/canvText.test b/tests/canvText.test index 4898eb8..3d0acdc 100644 --- a/tests/canvText.test +++ b/tests/canvText.test @@ -11,9 +11,6 @@ namespace import ::tcltest::* eval tcltest::configure $argv tcltest::loadTestedCommands -testConstraint failsOnUbuntu [expr {![info exists ::env(CI)] || ![string match Linux $::tcl_platform(os)]}] -testConstraint failsOnXQuarz [expr {$tcl_platform(os) ne "Darwin" || [tk windowingsystem] ne "x11" }] - # Canvas used in 1.* - 17.* tests canvas .c -width 400 -height 300 -bd 2 -relief sunken pack .c @@ -943,7 +940,7 @@ test canvText-19.1 {patch 1006286, leading space caused wrap under Win32} -setup destroy .c } -result {{Yeah } Yeah- 4 4} -test canvText-20.1 {angled text bounding box} -constraints {failsOnUbuntu failsOnXQuarz} -setup { +test canvText-20.1 {angled text bounding box} -setup { destroy .c canvas .c proc transpose {bbox} { @@ -951,7 +948,7 @@ test canvText-20.1 {angled text bounding box} -constraints {failsOnUbuntu failsO list $b $a $d $c } } -body { - .c create text 2 2 -tag t -anchor center -text 0 -font {Helvetica 24} + .c create text 2 2 -tag t -anchor center -text 0 -font {TkDefaultFont 24} set bb0 [.c bbox t] .c itemconf t -angle 90 set bb1 [.c bbox t] |