>># 
>># Copyright 1990, 1991 by the Massachusetts Institute of Technology and
>># UniSoft Group Limited.
>># 
>># Permission to use, copy, modify, distribute, and sell this software and
>># its documentation for any purpose is hereby granted without fee,
>># provided that the above copyright notice appear in all copies and that
>># both that copyright notice and this permission notice appear in
>># supporting documentation, and that the names of MIT and UniSoft not be
>># used in advertising or publicity pertaining to distribution of the
>># software without specific, written prior permission.  MIT and UniSoft
>># make no representations about the suitability of this software for any
>># purpose.  It is provided "as is" without express or implied warranty.
>># 
>># $XConsortium: rprntntfy.m,v 1.9 92/06/11 17:24:31 rws Exp $
>># 
>>#
>>TITLE ReparentNotify CH08
>>ASSERTION A ReparentNotify-1
When a ReparentNotify event is generated, then all clients
having set StructureNotifyMask event mask bits on the
reparented window are delivered a ReparentNotify event.
>>STRATEGY
Create clients client2 and client3.
Create parent window.
Create window.
Select for ReparentNotify events using StructureNotifyMask.
Select for ReparentNotify events using StructureNotifyMask with client2.
Select for no events with client3.
Generate ReparentNotify event.
Verify that a ReparentNotify event was delivered.
Verify that event member fields are correctly set.
Verify that a ReparentNotify event was delivered to client2.
Verify that event member fields are correctly set.
Verify that no events were delivered to client3.
>>ASSERTION A ReparentNotify-2
When a ReparentNotify event is generated, then all clients
having set SubstructureNotifyMask event mask bits on the
parent of the reparented window are delivered a
ReparentNotify event.
>>STRATEGY
Create clients client2 and client3.
Create parent window.
Create window.
Select for ReparentNotify events on new parent using SubstructureNotifyMask.
Select for ReparentNotify events on old parent using SubstructureNotifyMask.
Select for ReparentNotify events on new parent using SubstructureNotifyMask with client2.
Select for ReparentNotify events on old parent using SubstructureNotifyMask with client2.
Select for no events on new parent with client3.
Select for no events on old parent with client3.
Generate ReparentNotify event.
Verify that a ReparentNotify event was delivered.
Verify that event member fields are correctly set.
Verify that a ReparentNotify event was delivered for oldparent.
Verify that event member fields are correctly set.
Verify that a ReparentNotify event was delivered to client2.
Verify that event member fields are correctly set.
Verify that a ReparentNotify event was delivered to client2 for old parent.
Verify that event member fields are correctly set.
Verify that no events were delivered to client3.
>>ASSERTION - ReparentNotify-3
When a ReparentNotify event is generated, then all clients
having set SubstructureNotifyMask event mask bits on either
the old or new parent of the reparented window are delivered
a ReparentNotify event.
>>ASSERTION - ReparentNotify-4
When a ReparentNotify event is generated, then clients not
having set StructureNotifyMask event mask bits on the
reparented window and also not having set
SubstructureNotifyMask event mask bits on either the old or
new parent of the reparented window are not delivered a
ReparentNotify event.
