>># 
>># 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: crtsmplwdw.m,v 1.9 92/06/11 16:06:51 rws Exp $
>># 
>>#      SCCS:  @(#)  EAll.mc Rel 1.5	    (3/12/92)
>>#      SCCS:  @(#)  EMat1.mc Rel 1.5	    (10/25/91)
>>#      SCCS:  @(#)  EWin.mc Rel 1.4	    (7/19/91)
>>#
>>TITLE XCreateSimpleWindow CH03
>>ASSERTION A XCreateSimpleWindow-1
A call to XCreateSimpleWindow creates an unmapped
InputOutput subwindow with a parent window of parent and
returns the window ID of the created window.
>>STRATEGY
Call XCreateSimpleWindow.
Get window attributes.
Verify that map_state is IsUnmapped.
Verify that the class is InputOutput.
Call XQueryTree and check parent is parent.
>>ASSERTION A XCreateSimpleWindow-2
On a call to XCreateSimpleWindow a CreateNotify event is
generated on the parent window.
>>STRATEGY
Call XCreateSimpleWindow.
Verify that a CreateNotify event is received with correct values.
>>ASSERTION A XCreateSimpleWindow-3
The created window is placed on top in the stacking order
with respect to siblings.
>>STRATEGY
Create a parent window.
Create two overlapping sibling windows.
Verify that second window is at top of stacking order.
Verify that first sibling is next in the stacking order.
>>ASSERTION A XCreateSimpleWindow-4
Any part of the window that extends outside its parent
window is clipped.
>>STRATEGY
Create window to use as parent.
Create a subwindow on that with crechild.
Create a window that would extend outside previous window.
Set background to W_FG.
Map all windows.
Pixmap verify that window is clipped.
>>ASSERTION A XCreateSimpleWindow-5
The created window is not displayed.
>>STRATEGY
Create window to use as parent.
Set background to other than W_BG.
Create window with XCreateSimpleWindow.
Verify that parent window is still clear.
>>ASSERTION A XCreateSimpleWindow-6
The depth, class and visual are inherited from the parent
window.
>>STRATEGY
Create window.
Verify that values of depth, class and visual are same as in parent.
>>ASSERTION A XCreateSimpleWindow-7
All window attributes, other than depth, class, visual,
background and border, have their default values.
>>STRATEGY
Call XCreateSimpleWindow.
Get the window attributes
Verify that these are the default values
>>ASSERTION B XCreateSimpleWindow-8
The cursor is taken from the parent window.
>>STRATEGY
If extended testing is required:
  Create a parent window.
  Set the parents cursor to a non-default cursor.
  Verify that the parent's cursor was set correctly.
  Create a child window using XCreateSimpleWindow.
  Map the child window.
  Warp the pointer to the child window.
  Verify that the current cursor is that of the parent.
  Set the parents cursor to a different cursor.
  Verify that the parent's cursor was set correctly.
  Verify that the current cursor has changed to that of the parent.
>>ASSERTION B XCreateSimpleWindow-9
When the server fails to allocate a required resource, then
a BadAlloc error occurs.
>>STRATEGY
Report UNTESTED
>>ASSERTION A XCreateSimpleWindow-10
When a drawable argument is an InputOnly window then a
BadMatch error occurs.
>>STRATEGY
Create an InputOnly window.
Call test function using InputOnly window as the drawable argument.
Verify that a BadMatch error occurs.
>>ASSERTION A XCreateSimpleWindow-11
When width or height is zero, then a BadValue error occurs.
>>STRATEGY
Create window with width of 0
Verify that BadValue error occurs
Create window with height of 0
Verify that BadValue error occurs
Create window with height of 0 and width of 0
Verify that BadValue error occurs
>>ASSERTION A XCreateSimpleWindow-12
When a window argument does not name a valid Window, then a
BadWindow error occurs.
>>STRATEGY
Create a bad window by creating and destroying a window.
Call test function using bad window as the window argument.
Verify that a BadWindow error occurs.
