diff options
author | patthoyts <patthoyts@noemail.net> | 2008-12-10 13:41:19 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@noemail.net> | 2008-12-10 13:41:19 (GMT) |
commit | d8cd37cabba6990a176048c80d1f02600ca01b29 (patch) | |
tree | c3dd3812d95f10c519bb5409766a0a58876d7560 /tests/fontchooser.test | |
parent | 04a93fb5e8bf4b767e354f8e2febd1a3041f5e64 (diff) | |
download | tk-d8cd37cabba6990a176048c80d1f02600ca01b29.zip tk-d8cd37cabba6990a176048c80d1f02600ca01b29.tar.gz tk-d8cd37cabba6990a176048c80d1f02600ca01b29.tar.bz2 |
Fix some problems running the tests on windows. As Tk tests run in -singleproc 1 we cannot do the script testing without damaging the later native tests.
FossilOrigin-Name: 45d20e310417808796fa175221679bf9f466939e
Diffstat (limited to 'tests/fontchooser.test')
-rw-r--r-- | tests/fontchooser.test | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/fontchooser.test b/tests/fontchooser.test index 0f90a46..a634300 100644 --- a/tests/fontchooser.test +++ b/tests/fontchooser.test @@ -2,7 +2,7 @@ # # Copyright (c) 2008 Pat Thoyts # -# RCS: @(#) $Id: fontchooser.test,v 1.1 2008/12/10 05:02:52 das Exp $ +# RCS: @(#) $Id: fontchooser.test,v 1.2 2008/12/10 13:41:19 patthoyts Exp $ # package require tcltest 2.1 @@ -89,11 +89,12 @@ test fontchooser-1.9 {tk fontchooser: usage} -returnCodes error -body { } -match glob -result {*} # ------------------------------------------------------------------------- -# By explicitly calling the tk internal command we always test the script -# implementation here even when the current platform defines a native -# font dialog. This is intentional in this test file. - -source [file join $tk_library fontchooser.tcl] +# +# The remaining tests in this file are only relevant for the script +# implementation. They can be tested by sourcing the script file but +# the Tk tests are run with -singleproc 1 and doing this affects the +# result of later attempts to test the native implementations. +# testConstraint scriptImpl [llength [info proc ::tk::fontchooser::Configure]] test fontchooser-2.0 {fontchooser -title} -constraints scriptImpl -body { |