>># 
>># 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: crtpxmpfrm.m,v 1.11 92/06/11 17:33:32 rws Exp $
>># 
>>#      SCCS:  @(#)  EAll.mc Rel 1.5	    (3/12/92)
>>#
>>TITLE XCreatePixmapFromBitmapData CH10
>>ASSERTION A XCreatePixmapFromBitmapData-1
A call to XCreatePixmapFromBitmapData returns a pixmap
containing the bitmap-format XPutImage of the data of depth
depth, width width, and height height, and with
foreground and background pixel values of fg and bg.
>>STRATEGY
Create a drawable for the pixmap.
Call XCreatePixmapFromBitmapData to create the pixmap from the data.
Call XGetGeometry to check the pixmap.
Verify the pixmap was as expected.
>>ASSERTION A XCreatePixmapFromBitmapData-2
When the depth is not supported by the screen of the
specified drawable d, then on a call to
XCreatePixmapFromBitmapData a BadValue error occurs.
>>STRATEGY
Calculate a bad depth.
Call XCreatePixmapFromBitmapData with a bad depth
Verify that a bad value error occurred.
>>ASSERTION B XCreatePixmapFromBitmapData-3
When sufficient temporary storage cannot be allocated, then
a call to XCreatePixmapFromBitmapData returns NULL.
>>STRATEGY
Report UNTESTED
>>ASSERTION B XCreatePixmapFromBitmapData-4
When the server fails to allocate a required resource, then
a BadAlloc error occurs.
>>STRATEGY
Report UNTESTED
>>ASSERTION A XCreatePixmapFromBitmapData-5
When a drawable argument does not name a valid drawable,
then one or more BadDrawable errors, one or more BadGC
errors or both types of error occur.
>>STRATEGY
Create a bad drawable by creating and destroying a window.
Call test function using bad drawable as the drawable argument.
Verify that a BadDrawable and BadGC error occurs.
