blob: 3f22d4f7fac1e8a91dc47474baa5981db2e02982 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# This file is a Tcl script to test new object types in Tk.
#
# Copyright © 1997 Sun Microsystems, Inc.
# Copyright © 1998-1999 Scriptics Corporation.
# All rights reserved.
#
# TESTFILE INITIALIZATION
#
package require tcltest 2.2; # needed in mode -singleproc 0
# Load the main script main.tcl, which takes care of:
# - setup for the application and the root window
# - importing commands from the tcltest namespace
# - loading of the testutils mechanism along with its utility procs
# - loading of Tk specific test constraints (additionally to constraints
# provided by the package tcltest)
source [file join [tcltest::configure -testdir] main.tcl]
# Ensure a pristine initial window state
resetWindows
#
# TESTS
#
test obj-1.1 {TkGetPixelsFromObj} -body {
} -result {}
test obj-2.1 {FreePixelInternalRep} -body {
} -result {}
test obj-3.1 {DupPixelInternalRep} -body {
} -result {}
test obj-4.1 {SetPixelFromAny} -body {
} -result {}
#
# TESTFILE CLEANUP
#
cleanupTests
|