summaryrefslogtreecommitdiffstats
path: root/tests/fontchooser.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-11-07 18:18:03 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-11-07 18:18:03 (GMT)
commit6133a711414cfb8fcc3a8b52ecf25b59a09e5800 (patch)
tree52b45efd5bcd6e0643d09db1a983ac391f7dc24e /tests/fontchooser.test
parent78fe050165a475fd7c74463a8f30ad1ba30e7fdd (diff)
parent5c53cd20a9fb061ca2f2e8bd5695a67302cdd5d4 (diff)
downloadtk-6133a711414cfb8fcc3a8b52ecf25b59a09e5800.zip
tk-6133a711414cfb8fcc3a8b52ecf25b59a09e5800.tar.gz
tk-6133a711414cfb8fcc3a8b52ecf25b59a09e5800.tar.bz2
Fix [4ebcc04dc4]: tk fontchooser partial configure on X11 overwrites options not specified.
Diffstat (limited to 'tests/fontchooser.test')
-rw-r--r--tests/fontchooser.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/fontchooser.test b/tests/fontchooser.test
index f36ddf2..a149ccb 100644
--- a/tests/fontchooser.test
+++ b/tests/fontchooser.test
@@ -11,7 +11,7 @@ testConstraint failsOnUbuntuNoXft [expr {[testConstraint failsOnUbuntu] || (![ca
# the following helper functions are related to the functions used
# in winDialog.test where they are used to send messages to the win32
-# dialog (hence the wierdness).
+# dialog (hence the weirdness).
proc start {cmd} {
set ::tk_dialog {}
@@ -193,6 +193,12 @@ test fontchooser-4.4 {fontchooser -font} -constraints {scriptImpl failsOnUbuntuN
lrange $::testfont 1 end
} -result {14 bold}
+test fontchooser-5.1 {fontchooser multiple configure} -constraints {scriptImpl} -body {
+ tk fontchooser configure -title TestTitle -command foo
+ tk fontchooser configure -command bar
+ tk fontchooser configure -title
+} -result {TestTitle}
+
# -------------------------------------------------------------------------
cleanupTests