diff options
author | mdejong <mdejong@noemail.net> | 2002-06-14 07:17:53 (GMT) |
---|---|---|
committer | mdejong <mdejong@noemail.net> | 2002-06-14 07:17:53 (GMT) |
commit | b4c5516caec4694bb80034cfd1c8f50517eb4149 (patch) | |
tree | 9833a60aa9cc30a18c1210e7283dc652af965645 /tests | |
parent | c5e6d610f310e13aace3738ad1408c4c75ecf78d (diff) | |
download | tk-b4c5516caec4694bb80034cfd1c8f50517eb4149.zip tk-b4c5516caec4694bb80034cfd1c8f50517eb4149.tar.gz tk-b4c5516caec4694bb80034cfd1c8f50517eb4149.tar.bz2 |
* tests/winfo.test: Add basic tests for winfo ismapped.
FossilOrigin-Name: e0d4e3a4f9e1c18850f1720f475abcaba0eb811c
Diffstat (limited to 'tests')
-rw-r--r-- | tests/winfo.test | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/tests/winfo.test b/tests/winfo.test index 443ab66..a1344c9 100644 --- a/tests/winfo.test +++ b/tests/winfo.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: winfo.test,v 1.5 2000/03/02 23:52:57 hobbs Exp $ +# RCS: @(#) $Id: winfo.test,v 1.6 2002/06/14 07:17:53 mdejong Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { source [file join [pwd] [file dirname [info script]] defs.tcl] @@ -360,6 +360,28 @@ test winfo-13.4 {[winfo containing] with embedded windows} { set z } 0 +test winfo-14.1 {usage} { + list [catch {winfo ismapped} msg] $msg +} {1 {wrong # args: should be "winfo ismapped window"}} + +test winfo-14.2 {usage} { + list [catch {winfo ismapped . .} msg] $msg +} {1 {wrong # args: should be "winfo ismapped window"}} + +test winfo-14.3 {initially unmapped} { + catch {destroy .t} + toplevel .t + winfo ismapped .t +} 0 + +test winfo-14.4 {mapped at idle time} { + catch {destroy .t} + toplevel .t + update idletasks + winfo ismapped .t +} 1 + + foreach i [winfo children .] { catch {destroy $i} } |