Tk Source Code

View Ticket
Login
Ticket UUID: 561647
Title: Adding more wm tests
Type: Patch Version: None
Submitter: pspjuth Created on: 2002-05-28 18:52:34
Subsystem: 65. Generic Window Operations Assigned To: pspjuth
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-07-25 03:46:56
Resolution: None Closed By: pspjuth
    Closed on: 2002-07-24 20:46:56
Description:
This patch adds some more test cases to wm.test.
The tests are mainly simple script interface tests for
all options, with argument checking and setting and
reading values.

This is intendend to provide a better starting point
for objectifying wm. It feels better to have a better
test suite before poking around too much.

The patch includes some minor fixes correcting some
error messages in the win, unix and mac wm files.

This has only been tested on Win98, so some feedback
from unix/mac would be appreciated.
User Comments: pspjuth added on 2002-07-25 03:46:56:
Logged In: YES 
user_id=98900

It's hardly worth applying this any longer
since it's covered by patch #564521 (Objectify wm).
Closing.

hobbs added on 2002-07-25 03:04:37:
Logged In: YES 
user_id=72656

passing back to peter as this looks ready to apply.

pspjuth added on 2002-05-30 04:16:47:

File Added - 24007: wmtest2.diff

Logged In: YES 
user_id=98900

I guess you can't iconify embedded windows on Unix
either, so I copied the checks from the Windows file.
The error in wm-withdraw-3.1 I guess just needs an
update which I have added.

An updated patch is attached.

I agree that unixWm and winWm should be cleaned,
but I think that should be done after the planned
big step, objectifying, just to be on the safe side.

mdejong added on 2002-05-29 05:35:04:

File Added - 23919: tests.output

Logged In: YES 
user_id=90858

There were a couple of test failures under X. I have
attached the output of "source wm.test" so you can
take a look. Otherwise, the tests look fine to me.
One thing you might want to do is identify those
tests from unixWm.test or wimWm.test that overlap
the ones you added to wm.test and remove them from
the platform specific files. I know that is a pain
and the test should have been written in a cross
platform way to being with, but this is what we
are stuck with.

pspjuth added on 2002-05-29 01:52:34:

File Added - 23903: wmtest.diff

Attachments: