summaryrefslogtreecommitdiffstats
path: root/tests/unixWm.test
diff options
context:
space:
mode:
authorericm <ericm>2000-03-29 00:09:05 (GMT)
committerericm <ericm>2000-03-29 00:09:05 (GMT)
commit1e80b03098719125228a0114b3b1a0cd8e1e00c3 (patch)
tree6c3d1ba08edc50ecc28706589d03d3d2708fbe90 /tests/unixWm.test
parent1572ee84e8f99582332894571332dbc6d4f06855 (diff)
downloadtk-1e80b03098719125228a0114b3b1a0cd8e1e00c3.zip
tk-1e80b03098719125228a0114b3b1a0cd8e1e00c3.tar.gz
tk-1e80b03098719125228a0114b3b1a0cd8e1e00c3.tar.bz2
* library/tkfbox.tcl: Moved an overlooked tkFDialog* function inscriptics_sc_2_0_fixedscriptics_sc_2_0_b5
::tk::dialog::file namespace. * tests/unixWm.test: Added tests for memory leak conditions in tkUnixWm.c. * tests/canvas.test: Added test for bad configuration options on empty and non-empty canvas. * generic/tkCanvas.c: Removed bad code in CANV_CONFIGURE block of CanvasWidgetCmd; this was causing non-empty canvases to improperly handle bad configuration options [Bug: 4456].
Diffstat (limited to 'tests/unixWm.test')
-rw-r--r--tests/unixWm.test28
1 files changed, 27 insertions, 1 deletions
diff --git a/tests/unixWm.test b/tests/unixWm.test
index b9af65a..61c8a5a 100644
--- a/tests/unixWm.test
+++ b/tests/unixWm.test
@@ -7,7 +7,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: unixWm.test,v 1.11 2000/01/12 11:45:36 hobbs Exp $
+# RCS: @(#) $Id: unixWm.test,v 1.12 2000/03/29 00:09:07 ericm Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
source [file join [pwd] [file dirname [info script]] defs.tcl]
@@ -353,6 +353,31 @@ test unixWm-8.9 {icon windows} {nonPortable} {
lappend result [winfo ismapped .icon] [wm state .icon]
} {icon 1 0 0 withdrawn 1 normal}
+test unixWm-59.1 {test for memory leaks} {
+ wm title .t "This is a long long long long long long title"
+ wm title .t "This is a long long long long long long title"
+ wm title .t "This is a long long long long long long title"
+ wm title .t "This is a long long long long long long title"
+ wm title .t "This is a long long long long long long title"
+ wm title .t "This is a long long long long long long title"
+ wm title .t "This is a long long long long long long title"
+ wm title .t "This is a long long long long long long title"
+ set x 1
+} 1
+test unixWm-59.2 {test for memory leaks} {
+ wm group .t .
+ wm group .t .
+ wm group .t .
+ wm group .t .
+ wm group .t .
+ wm group .t .
+ wm group .t .
+ wm group .t .
+ wm group .t .
+ wm group .t .
+ set x 1
+} 1
+
if {[string compare testwrapper [info commands testwrapper]] != 0} {
puts "This application hasn't been compiled with the testwrapper command,"
puts "therefore I am skipping all of these tests."
@@ -2413,6 +2438,7 @@ test unixWm-58.3 {exit processing} {
list $error $msg
} {0 {}}
+
# cleanup
catch {destroy .t}
catch {removeFile script}