>># 
>># 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: frclrmp.m,v 1.8 92/06/11 16:15:53 rws Exp $
>># 
>>#      SCCS:  @(#)  ECol.mc Rel 1.4	    (7/31/91)
>>#
>>TITLE XFreeColormap CH05
>>ASSERTION A XFreeColormap-1
A call to XFreeColormap removes the association between the
colormap argument and the colourmap ID, and frees the
associated storage.
>>STRATEGY
For each supported visual type:
  Create a colourmap with XCreateColormap.
  Free the colourmap with XFreeColormap.
  Verify that XAllocColor fails.
>>ASSERTION A XFreeColormap-2
When the colormap argument is the default colourmap, then a
call to XFreeColormap does not remove the association
between the colormap argument and the colourmap ID or free
the associated storage.
>>STRATEGY
Free the default colourmap with XFreeColormap.
Verify that XAllocColor succeeds in allocating 1 shared cell with this colormap.
>>ASSERTION A XFreeColormap-3
When the colormap argument is an installed colourmap, then
a call to XFreeColormap uninstalls the colourmap.
>>STRATEGY
For each visual class:
  Create a colourmap with XCreateColormap.
  Install the colourmap with XInstallColormap.
  Obtain a list of installed colourmaps with XListInstalledColormaps.
  Verify that the created colourmap is in the list.
  Free the colourmap with XFreeColormap.
  Obtain a list of installed colourmaps with XListInstalledColormaps.
  Verify that the created colourmap is not in the list.
>>ASSERTION A XFreeColormap-4
When the specified colourmap is defined as the colourmap
for a window, then a call to XFreeColormap changes the
colourmap associated with the window to None and generates a
ColormapNotify event.
>>STRATEGY
For each supported visual class:
  Create a colourmap with XCreateColormap.
  Create a window with XCreateWindow.
  Select ColormapNotify events with XSelectInput.
  Make the colormap the colormap for the window with XSetWindowColormap.
  Free the colormap with XFreeColormap
  Verify that a ColorMapnotify event was generated with XNextEvent.
  Verify that the window's colourmap is set to none with XGetWindowAttributes.
>>ASSERTION A XFreeColormap-5
When a colourmap argument does not name a valid colourmap,
then a BadColor error occurs.
>>STRATEGY
Create a bad colourmap by creating and freeing a colourmap.
Call test function using bad colourmap as the colourmap argument.
Verify that a BadColor error occurs.
