Tk Source Code

View Ticket
Login
Ticket UUID: 1122757
Title: various tests fail with -use/container etc
Type: Bug Version: obsolete: 8.5a3
Submitter: vincentdarley Created on: 2005-02-14 22:54:40
Subsystem: 68. Win Window Operations Assigned To: chengyemao
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-02-15 10:28:11
Resolution: None Closed By: chengyemao
    Closed on: 2005-02-15 03:28:11
Description:
The recent changes to the Windows support of embedded
windows over the last few months seem to have
introduced a number of test failures:

embed 1.4, 1.5
frame 2.5
wm-deiconify 1.5, 2.4

The details follow.... (this is on WinXP-sp2)

embed.test

==== embed-1.4 TkpUseWindow procedure, -container must
be set FAILED
==== Contents of test case:

    deleteWindows
    toplevel .container
    list [catch {toplevel .embd -use [winfo id
.container]} err] $err

---- Result was:
1 {the window to use is not a Tk container}
---- Result should have been (exact matching):
1 {window ".container" doesn't have -container option set}
==== embed-1.4 FAILED


==== embed-1.5 TkpUseWindow procedure, -container must
be set FAILED
==== Contents of test case:

    deleteWindows
    frame .container
    list [catch {toplevel .embd -use [winfo id
.container]} err] $err

---- Result was:
1 {the window to use is not a Tk container}
---- Result should have been (exact matching):
1 {window ".container" doesn't have -container option set}
==== embed-1.5 FAILED

frame.test

==== frame-2.5 toplevel configuration options FAILED
==== Contents of test case:

    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]

---- Result was:
1 {window "0x44022" doesn't exist} {-use use Use {} {}}
---- Result should have been (exact matching):
1 {can't modify -use option after widget is created}
{-use use Use {} {}}
==== frame-2.5 FAILED

wm.test

==== wm-deiconify-1.5 usage FAILED
==== Contents of test case:

    frame .t.f -container 1
    toplevel .embed -use [winfo id .t.f]
    wm deiconify .embed

---- Result was:
can't deiconify .embed: the container does not support
the request
---- Result should have been (exact matching):
can't deiconify .embed: it is an embedded window
==== wm-deiconify-1.5 FAILED


==== wm-iconify-2.4 Misc errors FAILED
==== Contents of test case:

    frame .t.f -container 1
    toplevel .t2 -use [winfo id .t.f]
    wm iconify .t2

---- Result was:
can't iconify .t2: the container does not support the
request
---- Result should have been (exact matching):
can't iconify .t2: it is an embedded window
==== wm-iconify-2.4 FAILED
User Comments: chengyemao added on 2005-02-15 10:28:11:
Logged In: YES 
user_id=191079

These failed tests were due to the changed error messages in 
the new embedded/container implementation for Windows.  I 
have modified the test scripts to reflect these changes.