summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-11-22 09:14:08 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-11-22 09:14:08 (GMT)
commit5d9e5480a505739f553519d15fd0270185127b50 (patch)
treea60a2a142e943d923b4d4bc7461d407fb511f65e
parent690db09c143da53cd3adebb52f8eac12db5c767c (diff)
downloadtk-5d9e5480a505739f553519d15fd0270185127b50.zip
tk-5d9e5480a505739f553519d15fd0270185127b50.tar.gz
tk-5d9e5480a505739f553519d15fd0270185127b50.tar.bz2
Fix [86a7468862]. Make test combobox-3 pass (hopefully) on all platforms.bug_f60c54bec6
-rw-r--r--tests/ttk/combobox.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ttk/combobox.test b/tests/ttk/combobox.test
index 35ded6c..7ea0c5c 100644
--- a/tests/ttk/combobox.test
+++ b/tests/ttk/combobox.test
@@ -45,12 +45,12 @@ test combobox-2.4 "current -- value not in list" -body {
test combobox-2.end "Cleanup" -body { destroy .cb }
-test combobox-3 "Read postoffset value dynamically from current style" -constraints unix -body {
+test combobox-3 "Read postoffset value dynamically from current style" -body {
ttk::combobox .cb -values [list a b c] -style "DerivedStyle.TCombobox"
pack .cb -expand true -fill both
ttk::style configure DerivedStyle.TCombobox -postoffset [list 25 0 0 0]
ttk::combobox::Post .cb
- winfo x .cb.popdown
+ expr {[winfo rootx .cb.popdown] - [winfo rootx .cb]}
} -result 25 -cleanup {
destroy .cb
}