>># 
>># 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: stwmicnnm.m,v 1.8 92/06/11 17:31:24 rws Exp $
>># 
>>#      SCCS:  @(#)  EAll.mc Rel 1.5	    (3/12/92)
>>#      SCCS:  @(#)  EWin.mc Rel 1.4	    (7/19/91)
>>#
>>TITLE XSetWMIconName CH09
>>ASSERTION A XSetWMIconName-1
A call to XSetWMIconName sets the WM_ICON_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_ICON_NAME property with XSetWMIconName.
Obtain the WM_ICON_NAME property using XGetTextProperty.
Verify that the property format was correct.
Verify that the property type was correct.
Verify that the propery value was correct.
Free allocated property with XFree.
>>ASSERTION B XSetWMIconName-2
When the server fails to allocate a required resource, then
a BadAlloc error occurs.
>>STRATEGY
Report UNTESTED
>>ASSERTION A XSetWMIconName-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_ICON_NAME property with XSetWMIconName
Verify that a BadAtom error occurred.
>>ASSERTION A XSetWMIconName-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 XSetWMIconName-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 TextProperty structure with format {0, 1, 7, 15, 31}.
with XStringListToTextProperty.
Set the WM_ICON_NAME property with XSetWMIconName.
Verify that a BadValue error occurs.
