summaryrefslogtreecommitdiffstats
path: root/tests/font.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/font.test')
-rw-r--r--tests/font.test5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/font.test b/tests/font.test
index f112d16..80a0420 100644
--- a/tests/font.test
+++ b/tests/font.test
@@ -2342,11 +2342,12 @@ test font-43.1 {FieldSpecified procedure: specified vs. non-specified} -body {
test font-44.1 {TkFontGetPixels: size < 0} -setup {
set oldscale [tk scaling]
} -body {
+ set oldsize [expr {[font actual {times -12} -size] * $oldscale}]
tk scaling 0.5
- font actual {times -12} -size
+ expr {[font actual {times -12} -size] == $oldsize / 0.5}
} -cleanup {
tk scaling $oldscale
-} -result 24
+} -result 1
test font-44.2 {TkFontGetPoints: size >= 0} -constraints {noExceed haveTimes12Font} -setup {
set oldscale [tk scaling]
} -body {