summaryrefslogtreecommitdiffstats
path: root/tests/winClipboard.test
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2002-07-12 13:40:58 (GMT)
committerdgp@users.sourceforge.net <dgp>2002-07-12 13:40:58 (GMT)
commite4a449eaf3c1ec9bab39a056094955bffeeb6a21 (patch)
treed8e183b36df3072890d7f699cb3530b8aa5e7777 /tests/winClipboard.test
parent2d869d6cdad0d94bd3e8d161584b36096e1af047 (diff)
downloadtk-e4a449eaf3c1ec9bab39a056094955bffeeb6a21.zip
tk-e4a449eaf3c1ec9bab39a056094955bffeeb6a21.tar.gz
tk-e4a449eaf3c1ec9bab39a056094955bffeeb6a21.tar.bz2
* Converted several files in the Tk test suite for testing by
tcltest 2.1.
Diffstat (limited to 'tests/winClipboard.test')
-rw-r--r--tests/winClipboard.test13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/winClipboard.test b/tests/winClipboard.test
index 73aaaef..078a2be 100644
--- a/tests/winClipboard.test
+++ b/tests/winClipboard.test
@@ -10,17 +10,18 @@
# Copyright (c) 1998-2000 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: winClipboard.test,v 1.9 2001/09/21 20:38:18 hobbs Exp $
+# RCS: @(#) $Id: winClipboard.test,v 1.10 2002/07/12 13:41:01 dgp Exp $
-if {[lsearch [namespace children] ::tcltest] == -1} {
- source [file join [pwd] [file dirname [info script]] defs.tcl]
-}
+package require tcltest 2.1
+namespace import -force tcltest::test
+namespace import -force tcltest::testConstraint
+namespace import -force tcltest::bytestring
+eval tcltest::configure $argv
# Note that these tests may fail if another application is grabbing the
# clipboard (e.g. an X server)
-set ::tcltest::testConfig(testclipboard) \
- [llength [info commands testclipboard]]
+testConstraint testclipboard [llength [info commands testclipboard]]
test winClipboard-1.1 {TkSelGetSelection} {pcOnly} {
clipboard clear