>># 
>># 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: sttxtprprt.m,v 1.9 92/06/11 17:30:52 rws Exp $
>># 
>>#      SCCS:  @(#)  EAll.mc Rel 1.5	    (3/12/92)
>>#      SCCS:  @(#)  EAto.mc Rel 1.6	    (10/4/91)
>>#      SCCS:  @(#)  EWin.mc Rel 1.4	    (7/19/91)
>>#
>>TITLE XSetTextProperty CH09
>>ASSERTION A XSetTextProperty-1
A call to XSetTextProperty sets the property, specified by
the property argument, 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 using XCreateWindow
Set the property WM_NAME with XSetTextProperty
Verify that the property values were all set correctly with XGetTextProperty
>>ASSERTION B XSetTextProperty-2
When the server fails to allocate a required resource, then
a BadAlloc error occurs.
>>STRATEGY
Report UNTESTED
>>ASSERTION A XSetTextProperty-3
When an atom argument does not name a valid Atom, then a
BadAtom error occurs.
>>STRATEGY
Call test function using a value with the top bits set as the atom argument.
Verify that a BadAtom error occurs.
>>ASSERTION A XSetTextProperty-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 XSetTextProperty-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 TextPropertyStructure with format component set to {0,1,7,15,31}.
Set the WM_NAME property with XSetTextProperty.
Verify that a BadValue error occurs each time.
