>># 
>># 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: wrtbtmpfl.m,v 1.7 92/06/11 17:44:00 rws Exp $
>># 
>>#      SCCS:  @(#)  EDra.mc Rel 1.5	    (10/25/91)
>>#
>>TITLE XWriteBitmapFile CH10
>>ASSERTION A XWriteBitmapFile-1
A call to XWriteBitmapFile writes a bitmap to the file
filename in the X version 11 format and returns
BitmapSuccess.
>>STRATEGY
Create a suitable bitmap.
Call XWriteBitmapFile to write the bitmap to file.
Verify that BitmapSucess was returned.
Read back bitmap with XReadBitmapFile.
Verify the bitmap was read back, and the details were correct.
>>ASSERTION A XWriteBitmapFile-2
When x_hot and y_hot are not -1, then a call to
XWriteBitmapFile writes x_hot and y_hot as the hotspot
coordinates for the bitmap.
>>STRATEGY
Create a suitable bitmap.
Call XWriteBitmapFile to write the bitmap to file, with non -1 x_hot and y_hot.
Verify that BitmapSucess was returned.
Read back bitmap with XReadBitmapFile.
Verify the bitmap was read back, and the details were correct.
>>ASSERTION A XWriteBitmapFile-3
When the file filename cannot be opened for writing, then a
call to XWriteBitmapFile returns BitmapOpenFailed.
>>STRATEGY
Create a suitable bitmap.
Create an unwritable directory.
Call XWriteBitmapFile to write the bitmap file.
Verify that a BitmapOpenFailed error occurred.
>>ASSERTION B XWriteBitmapFile-4
When insufficient memory is allocated, then a call to
XWriteBitmapFile returns BitmapNoMemory.
>>STRATEGY
Report UNTESTED
>>ASSERTION A XWriteBitmapFile-5
When width and height are greater than the corresponding
dimensions of the bitmap, then on a call to
XWriteBitmapFile a BadMatch error occurs.
>>STRATEGY
Create a suitable bitmap.
Call XWriteBitmapFile to write the bitmap to file, with the width and height
	bigger than the bitmap.
Verify that BadMatch occurred.
>>ASSERTION A XWriteBitmapFile-6
When a drawable argument does not name a valid Drawable,
then a BadDrawable error occurs.
>>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 error occurs.
