summaryrefslogtreecommitdiffstats
path: root/tests/font.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-11-18 16:11:03 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-11-18 16:11:03 (GMT)
commit96e0f171dc799d6c736b52f00548ac65f8612a0c (patch)
treee71d62f24f690ffcf49b1509d256cc538c1ebea0 /tests/font.test
parente91354a1f438857414146b91cc7bed3ed9e22643 (diff)
parent3edf85a73eca0f7ca5925e9b6575ef31c5ce6a5b (diff)
downloadtk-96e0f171dc799d6c736b52f00548ac65f8612a0c.zip
tk-96e0f171dc799d6c736b52f00548ac65f8612a0c.tar.gz
tk-96e0f171dc799d6c736b52f00548ac65f8612a0c.tar.bz2
Merge 9.0
Diffstat (limited to 'tests/font.test')
-rw-r--r--tests/font.test7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/font.test b/tests/font.test
index 56e2e50..9bf6d65 100644
--- a/tests/font.test
+++ b/tests/font.test
@@ -2339,14 +2339,15 @@ test font-43.1 {FieldSpecified procedure: specified vs. non-specified} -body {
} -result [font actual {times 0} -family]
-test font-44.1 {TkFontGetPixels: size < 0} -constraints failsOnUbuntu -setup {
+test font-44.1 {TkFontGetPixels: size < 0} -setup {
set oldscale [tk scaling]
} -body {
+ set oldsize [expr {-(-12.0 / $oldscale)}]
tk scaling 0.5
- font actual {times -12} -size
+ expr {round([font actual {times -12} -size] / $oldscale * 0.5) - round($oldsize) == 0}
} -cleanup {
tk scaling $oldscale
-} -result 24
+} -result 1
test font-44.2 {TkFontGetPoints: size >= 0} -constraints {noExceed haveTimes12Font} -setup {
set oldscale [tk scaling]
} -body {