summaryrefslogtreecommitdiffstats
path: root/tests/canvText.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2022-11-26 09:39:34 (GMT)
committerfvogel <fvogelnew1@free.fr>2022-11-26 09:39:34 (GMT)
commit8ea0d84c5da161e035d38eac01ac999ccc7a6083 (patch)
treecb0286f640d4c1fc12aeeac9ee74f2bc760d2d5c /tests/canvText.test
parent80f80f41ba9e6bd4fe8115b155310ddf8323b64f (diff)
downloadtk-8ea0d84c5da161e035d38eac01ac999ccc7a6083.zip
tk-8ea0d84c5da161e035d38eac01ac999ccc7a6083.tar.gz
tk-8ea0d84c5da161e035d38eac01ac999ccc7a6083.tar.bz2
Add comment in canvText-20.1 explaining why the bboxes are not expected to be *exactly* equal on all platforms. Windows produces eqaul bboxes, but not Linux.
Diffstat (limited to 'tests/canvText.test')
-rw-r--r--tests/canvText.test1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/canvText.test b/tests/canvText.test
index de21fbc..2bafac3 100644
--- a/tests/canvText.test
+++ b/tests/canvText.test
@@ -962,6 +962,7 @@ test canvText-20.1 {angled text bounding box} -setup {
set bb2 [.c bbox t]
.c itemconf t -angle 270
set bb3 [.c bbox t]
+ # bboxes should be the same, possibly with a small (platform-specific) rounding difference
list [expr {[almosteq $bb0 $bb2] ? "ok" : "$bb0,$bb2"}] \
[expr {[almosteq $bb1 $bb3] ? "ok" : "$bb1,$bb3"}] \
[expr {[almosteq $bb0 [transpose $bb1]] ? "ok" : "$bb0,$bb1"}]