>># 
>># 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: lstfntswth.m,v 1.10 92/06/11 17:07:59 rws Exp $
>># 
>>#      SCCS:  @(#)  EAll.mc Rel 1.5	    (3/12/92)
>>#
>>TITLE XListFontsWithInfo CH06
>>ASSERTION A XListFontsWithInfo-1
When the pattern argument is a string in ISO Latin-1
encoding terminated with ASCII nul, then a call to
XListFontsWithInfo returns an array of strings terminated
with ASCII nul which are available font names that match the
pattern argument and returns the number of fonts in the
count_return argument and their associated font information
excluding the per-character metrics in the info_return
argument.
>>STRATEGY
Set patternarg to "xtfont0"
Call XListFontsWithInfo.
Verify that returned count was 1.
Verify that the returned names pointer was non-NULL.
Lower-case the returned string.
Verify that xtfont0 was returned.
Verify that font information is correct.
>>ASSERTION A XListFontsWithInfo-2
Upper and lower case character in the pattern argument
refer to the same font.
>>STRATEGY
Try matching with XtFoNt0
Call XListFontsWithInfo.
Verify that returned count was 1.
Verify that the returned names pointer was non-NULL.
Lower-case the returned string.
Verify that xtfont0 was returned.
Verify that the font information was correct.
>>ASSERTION A XListFontsWithInfo-3
Each asterisk (*) in the string is a wildcard for any
number of characters.
>>STRATEGY
Set patternarg to "x*t*t*"
Call XListFontsWithInfo.
Verify that at least all the xtest fonts are returned, and
that any other returned string matches the patternarg.
>>ASSERTION A XListFontsWithInfo-4
Each question mark (?) in the string is a wildcard for a
single character.
>>STRATEGY
Set patternarg to "x?f?nt?"
Call XListFontsWithInfo.
Verify that returned count is at least XT_NFONTS
Verify that the xtest font names are returned.
Verify that any other name returned matches the patternarg.
Verify that font information is correct for the xtest fonts.
>>ASSERTION A XListFontsWithInfo-5
The number of fonts returned in the count_return argument
will not exceed ma XListFontsWithInfo s.
>>STRATEGY
Set maXListFontsWithInfos to 1
Set patternarg to "*"
Verify that only one name was returned.
>>ASSERTION A XListFontsWithInfo-6
When there are no available font names that match the
pattern argument, then a call to XListFontsWithInfo returns
NULL.
>>STRATEGY
Set patternarg to a bad name.
Call XListFontsWithInfo.
Verify tht NULL is returned.
>>ASSERTION B XListFontsWithInfo-7
When the server fails to allocate a required resource, then
a BadAlloc error occurs.
>>STRATEGY
Report UNTESTED
