fonttools/Documentation/robofabDocs/dialogKit.test.html
Erik van Blokland 3646055ea2 initial import
git-svn-id: http://svn.robofab.com/trunk@1 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 17:40:34 +00:00

273 lines
15 KiB
HTML

<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module dialogKit.test</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="dialogKit.html"><font color="#ffffff">dialogKit</font></a>.test</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/code/projects/robofab/Lib/dialogKit/test.py">/code/projects/robofab/Lib/dialogKit/test.py</a></font></td></tr></table>
<p><tt>Testing&nbsp;suite&nbsp;for&nbsp;dialogKit.<br>
&nbsp;<br>
This&nbsp;should&nbsp;be&nbsp;called&nbsp;with<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;from&nbsp;dialogKit.test&nbsp;import&nbsp;testAll<br>
&nbsp;&nbsp;&nbsp;&nbsp;<a href="#-testAll">testAll</a>()<br>
&nbsp;<br>
This&nbsp;will&nbsp;present&nbsp;a&nbsp;series&nbsp;of&nbsp;windows<br>
that&nbsp;each&nbsp;have&nbsp;a&nbsp;"Run&nbsp;Tests"&nbsp;button<br>
at&nbsp;the&nbsp;top.&nbsp;That&nbsp;button&nbsp;must&nbsp;be&nbsp;pressed<br>
for&nbsp;the&nbsp;tests&nbsp;to&nbsp;be&nbsp;performed.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="vanilla.html">vanilla</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="dialogKit.test.html#TestCase">TestCase</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="dialogKit.test.html#ButtonTest">ButtonTest</a>
</font></dt><dt><font face="helvetica, arial"><a href="dialogKit.test.html#CheckBoxTest">CheckBoxTest</a>
</font></dt><dt><font face="helvetica, arial"><a href="dialogKit.test.html#EditTextTest">EditTextTest</a>
</font></dt><dt><font face="helvetica, arial"><a href="dialogKit.test.html#ListTest">ListTest</a>
</font></dt><dt><font face="helvetica, arial"><a href="dialogKit.test.html#PopUpButtonTest">PopUpButtonTest</a>
</font></dt><dt><font face="helvetica, arial"><a href="dialogKit.test.html#TextBoxTest">TextBoxTest</a>
</font></dt></dl>
</dd>
</dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="ButtonTest">class <strong>ButtonTest</strong></a>(<a href="dialogKit.test.html#TestCase">TestCase</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="dialogKit.test.html#ButtonTest">ButtonTest</a></dd>
<dd><a href="dialogKit.test.html#TestCase">TestCase</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="ButtonTest-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="ButtonTest-runTests"><strong>runTests</strong></a>(self, sender)</dt></dl>
<hr>
Methods inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
<dl><dt><a name="ButtonTest-assertEqual"><strong>assertEqual</strong></a>(self, value1, value2, assertionID<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="ButtonTest-finish"><strong>finish</strong></a>(self)</dt></dl>
<hr>
Data and other attributes inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object at 0x4df6b0&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'TestCase' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="CheckBoxTest">class <strong>CheckBoxTest</strong></a>(<a href="dialogKit.test.html#TestCase">TestCase</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="dialogKit.test.html#CheckBoxTest">CheckBoxTest</a></dd>
<dd><a href="dialogKit.test.html#TestCase">TestCase</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="CheckBoxTest-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="CheckBoxTest-runTests"><strong>runTests</strong></a>(self, sender)</dt></dl>
<hr>
Methods inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
<dl><dt><a name="CheckBoxTest-assertEqual"><strong>assertEqual</strong></a>(self, value1, value2, assertionID<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="CheckBoxTest-finish"><strong>finish</strong></a>(self)</dt></dl>
<hr>
Data and other attributes inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object at 0x4df890&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'TestCase' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="EditTextTest">class <strong>EditTextTest</strong></a>(<a href="dialogKit.test.html#TestCase">TestCase</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="dialogKit.test.html#EditTextTest">EditTextTest</a></dd>
<dd><a href="dialogKit.test.html#TestCase">TestCase</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="EditTextTest-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="EditTextTest-runTests"><strong>runTests</strong></a>(self, sender)</dt></dl>
<hr>
Methods inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
<dl><dt><a name="EditTextTest-assertEqual"><strong>assertEqual</strong></a>(self, value1, value2, assertionID<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="EditTextTest-finish"><strong>finish</strong></a>(self)</dt></dl>
<hr>
Data and other attributes inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object at 0x4df890&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'TestCase' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="ListTest">class <strong>ListTest</strong></a>(<a href="dialogKit.test.html#TestCase">TestCase</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="dialogKit.test.html#ListTest">ListTest</a></dd>
<dd><a href="dialogKit.test.html#TestCase">TestCase</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="ListTest-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="ListTest-runTests"><strong>runTests</strong></a>(self, sender)</dt></dl>
<hr>
Methods inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
<dl><dt><a name="ListTest-assertEqual"><strong>assertEqual</strong></a>(self, value1, value2, assertionID<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="ListTest-finish"><strong>finish</strong></a>(self)</dt></dl>
<hr>
Data and other attributes inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object at 0x4df730&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'TestCase' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="PopUpButtonTest">class <strong>PopUpButtonTest</strong></a>(<a href="dialogKit.test.html#TestCase">TestCase</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="dialogKit.test.html#PopUpButtonTest">PopUpButtonTest</a></dd>
<dd><a href="dialogKit.test.html#TestCase">TestCase</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="PopUpButtonTest-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="PopUpButtonTest-runTests"><strong>runTests</strong></a>(self, sender)</dt></dl>
<hr>
Methods inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
<dl><dt><a name="PopUpButtonTest-assertEqual"><strong>assertEqual</strong></a>(self, value1, value2, assertionID<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="PopUpButtonTest-finish"><strong>finish</strong></a>(self)</dt></dl>
<hr>
Data and other attributes inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object at 0x4df6b0&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'TestCase' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="TestCase">class <strong>TestCase</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="TestCase-__init__"><strong>__init__</strong></a>(self, posSize, title<font color="#909090">=''</font>)</dt></dl>
<dl><dt><a name="TestCase-assertEqual"><strong>assertEqual</strong></a>(self, value1, value2, assertionID<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="TestCase-finish"><strong>finish</strong></a>(self)</dt></dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object at 0x4df730&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'TestCase' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="TextBoxTest">class <strong>TextBoxTest</strong></a>(<a href="dialogKit.test.html#TestCase">TestCase</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="dialogKit.test.html#TextBoxTest">TextBoxTest</a></dd>
<dd><a href="dialogKit.test.html#TestCase">TestCase</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="TextBoxTest-__init__"><strong>__init__</strong></a>(self)</dt></dl>
<dl><dt><a name="TextBoxTest-runTests"><strong>runTests</strong></a>(self, sender)</dt></dl>
<hr>
Methods inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
<dl><dt><a name="TextBoxTest-assertEqual"><strong>assertEqual</strong></a>(self, value1, value2, assertionID<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="TextBoxTest-finish"><strong>finish</strong></a>(self)</dt></dl>
<hr>
Data and other attributes inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object at 0x4df870&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>
<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'TestCase' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(if&nbsp;defined)</tt></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-testAll"><strong>testAll</strong></a>()</dt></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>haveFL</strong> = False<br>
<strong>haveVanilla</strong> = True</td></tr></table>
</body></html>