>># 
>># 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: stwmnm.m,v 1.8 92/06/11 17:31:31 rws Exp $
>># 
>>#      SCCS:  @(#)  EAll.mc Rel 1.5	    (3/12/92)
>>#      SCCS:  @(#)  EWin.mc Rel 1.4	    (7/19/91)
>>#
>>TITLE XSetWMName CH09
>>ASSERTION A XSetWMName-1
A call to XSetWMName sets the WM_NAME property for the
window w to be of data, type, format and number of items as
specified by the value field, the encoding field, the format
field, and the nitems field of the XTextProperty structure
named by the text_prop argument.
>>STRATEGY
Create a window with XCreateWindow.
Set the WM_NAME property with XSetWMName.
Obtain the WM_NAME property using XGetTextProperty.
Verify that the format, encoding and value are correct.
>>ASSERTION B XSetWMName-2
When the server fails to allocate a required resource, then
a BadAlloc error occurs.
>>STRATEGY
Report UNTESTED
>>ASSERTION A XSetWMName-3
When the encoding component of the XTextProperty named by
the text_prop argument does not name a valid atom, then a
BadAtom error occurs.
>>STRATEGY
Create a window with XCreateWindow.
Create an XTextProperty structure with XStringListToTextProperty
Set the encoding component of the structure to -1L.
Set the WM_NAME property with XSetWMName
Verify that a BadAtom error occurred.
>>ASSERTION A XSetWMName-4
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.
>>ASSERTION A XSetWMName-5
When the format component of the XTextProperty structure
named by the text_prop argument is other than 8, 16 or 32,
then a BadValue error occurs.
>>STRATEGY
Create a window with XCreateWindow
Create a XTextProperty structure with format {0, 1, 7, 15, 31}
with XStringListToTextProperty.
Set the WM_NAME property with XSetWMName.
Verify that a BadValue error occurs.
