diff options
author | chengyemao <chengyemao> | 2005-02-15 03:22:10 (GMT) |
---|---|---|
committer | chengyemao <chengyemao> | 2005-02-15 03:22:10 (GMT) |
commit | aee29491b0abebba92b1106ddf35a5724ac0a9e9 (patch) | |
tree | f7879d1d03edccdd9961327c7fbb495a9b5d0730 /tests/frame.test | |
parent | 6e1a009795f451583308dda6b41c6249b637933c (diff) | |
download | tk-aee29491b0abebba92b1106ddf35a5724ac0a9e9.zip tk-aee29491b0abebba92b1106ddf35a5724ac0a9e9.tar.gz tk-aee29491b0abebba92b1106ddf35a5724ac0a9e9.tar.bz2 |
Modified for the latest embedded/container window implementation for Windows platform
Diffstat (limited to 'tests/frame.test')
-rw-r--r-- | tests/frame.test | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/frame.test b/tests/frame.test index f43655f..d7a6b7c 100644 --- a/tests/frame.test +++ b/tests/frame.test @@ -7,7 +7,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: frame.test,v 1.14 2004/06/24 12:45:43 dkf Exp $ +# RCS: @(#) $Id: frame.test,v 1.15 2005/02/15 03:22:10 chengyemao Exp $ package require tcltest 2.1 eval tcltest::configure $argv @@ -159,12 +159,22 @@ test frame-2.4 {toplevel configuration options} { list [catch {toplevel .t -width 200 -height 100 -colormap bogus} msg] $msg } {1 {bad window path name "bogus"}} set default "[winfo visual .] [winfo depth .]" +if {$tcl_platform(platform) == "windows"} { +test frame-2.5 {toplevel configuration options} { + catch {destroy .t} + toplevel .t -width 200 -height 100 + wm geometry .t +0+0 + list [catch {.t configure -use 0x44022} msg] $msg [.t configure -use] +} {1 {window "0x44022" doesn't exist} {-use use Use {} {}}} +} else { test frame-2.5 {toplevel configuration options} { catch {destroy .t} toplevel .t -width 200 -height 100 wm geometry .t +0+0 list [catch {.t configure -use 0x44022} msg] $msg [.t configure -use] } {1 {can't modify -use option after widget is created} {-use use Use {} {}}} +} + test frame-2.6 {toplevel configuration options} { catch {destroy .t} toplevel .t -width 200 -height 100 -visual default @@ -905,3 +915,4 @@ rename colorsFree {} # cleanup cleanupTests return + |