diff options
author | hershey <hershey@noemail.net> | 1999-04-19 23:54:55 (GMT) |
---|---|---|
committer | hershey <hershey@noemail.net> | 1999-04-19 23:54:55 (GMT) |
commit | d1fd58487c0bfd40dc206fa03c2114976151e380 (patch) | |
tree | 875f348f732fae90d23763d73f4c43b5d7413f86 /tests/pack.test | |
parent | 85fe66d32931efcb34030cbd296db6aa99459922 (diff) | |
download | tk-d1fd58487c0bfd40dc206fa03c2114976151e380.zip tk-d1fd58487c0bfd40dc206fa03c2114976151e380.tar.gz tk-d1fd58487c0bfd40dc206fa03c2114976151e380.tar.bz2 |
changed tests--marked some nonPortable; added new constraints to fix bug 1770
FossilOrigin-Name: da52c2e18f0cbf31226b999e3eee3982266cf19e
Diffstat (limited to 'tests/pack.test')
-rw-r--r-- | tests/pack.test | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/pack.test b/tests/pack.test index 6f6adbd..dab196a 100644 --- a/tests/pack.test +++ b/tests/pack.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: pack.test,v 1.3 1999/04/16 01:51:40 stanton Exp $ +# RCS: @(#) $Id: pack.test,v 1.4 1999/04/19 23:54:56 hershey Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { source [file join [pwd] [file dirname [info script]] defs.tcl] @@ -924,6 +924,13 @@ test pack-17.1 {PackLostSlaveProc procedure} { } {place 20x40+40+10 1 {window ".pack.a" isn't packed}} test pack-18.1 {unmap slaves when master unmapped} {tempNotPc} { + + # adjust the position of .pack before test to avoid a screen switch + # that occurs with window managers that have desktops four times as big + # as the screen (screen switch causes scale and other tests to fail). + + wm geometry .pack +100+100 + # On the PC, when the width/height is configured while the window is # unmapped, the changes don't take effect until the window is remapped. # Who knows why? @@ -945,6 +952,12 @@ test pack-18.1 {unmap slaves when master unmapped} {tempNotPc} { lappend result [winfo ismapped .pack.a] } {1 0 200 75 0 1} test pack-18.2 {unmap slaves when master unmapped} { + + # adjust the position of .pack before test to avoid a screen switch + # that occurs with window managers that have desktops four times as big + # as the screen (screen switch causes scale and other tests to fail). + + wm geometry .pack +100+100 eval destroy [winfo child .pack] frame .pack.a -relief raised -bd 2 frame .pack.b -width 70 -height 30 -relief sunken -bd 2 |