summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2022-12-04 20:07:38 (GMT)
committerfvogel <fvogelnew1@free.fr>2022-12-04 20:07:38 (GMT)
commitb64002419af256cd1febd2c591207ba257058f35 (patch)
treef2ad3a67908cde78f2eb6e8348107a892c77a667 /tests
parent430630c01b873ebc42753a45703bcf4f98d888f8 (diff)
downloadtk-b64002419af256cd1febd2c591207ba257058f35.zip
tk-b64002419af256cd1febd2c591207ba257058f35.tar.gz
tk-b64002419af256cd1febd2c591207ba257058f35.tar.bz2
Test suite hygiene: The missing cleanup in treeview-rowheight-4 can produce false failures in treeview-rowheight-5 if the font size used is strictly smaller than 11 pixels.
Diffstat (limited to 'tests')
-rw-r--r--tests/ttk/treeview.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ttk/treeview.test b/tests/ttk/treeview.test
index 9fef708..7e5f322 100644
--- a/tests/ttk/treeview.test
+++ b/tests/ttk/treeview.test
@@ -1181,6 +1181,8 @@ test treeview-rowheight-4 "rowheight adapts to item padding" -constraints failsO
update
set after [lindex [.tv bbox nn a] 3]
set diff [expr {$after - $baseline}]
+} -cleanup {
+ ttk::style configure Item -padding {}
} -result [expr {3-2 + 5-2}]
test treeview-rowheight-5 "rowheight adapts to cell padding" -constraints failsOnUbuntuNoXft -body {
@@ -1192,6 +1194,8 @@ test treeview-rowheight-5 "rowheight adapts to cell padding" -constraints failsO
update
set after [lindex [.tv bbox nn a] 3]
set diff [expr {$after - $baseline}]
+} -cleanup {
+ ttk::style configure Cell -padding {}
} -result [expr {8-5 + 9-5}]
### NEED: tests for focus item, selection