OLD | NEW |
1 | 1 |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
3 <html><head><title>Python: module telemetry.unittest.tab_test_case</title> | 3 <html><head><title>Python: module telemetry.unittest.tab_test_case</title> |
4 </head><body bgcolor="#f0f0f8"> | 4 </head><body bgcolor="#f0f0f8"> |
5 | 5 |
6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> | 6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
7 <tr bgcolor="#7799ee"> | 7 <tr bgcolor="#7799ee"> |
8 <td valign=bottom> <br> | 8 <td valign=bottom> <br> |
9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.unittest.html"><font color="#ffffff">unittest</font></a>.tab_test_case</strong>
</big></big></font></td | 9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.unittest.html"><font color="#ffffff">unittest</font></a>.tab_test_case</strong>
</big></big></font></td |
10 ><td align=right valign=bottom | 10 ><td align=right valign=bottom |
11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href=
"../telemetry/unittest/tab_test_case.py">telemetry/unittest/tab_test_case.py</a>
</font></td></tr></table> | 11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href=
"../telemetry/unittest/tab_test_case.py">telemetry/unittest/tab_test_case.py</a>
</font></td></tr></table> |
12 <p><tt># Copyright (c) 2012 The Chromium Autho
rs. All rights reserved.<br> | 12 <p><tt># Copyright (c) 2012 The Chromium Autho
rs. All rights reserved.<br> |
13 # Use of this source code is governed by
a BSD-style license that can be<br> | 13 # Use of this source code is governed by
a BSD-style license that can be<br> |
14 # found in the LICENSE file.</tt></p> | 14 # found in the LICENSE file.</tt></p> |
15 <p> | 15 <p> |
16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
17 <tr bgcolor="#aa55cc"> | 17 <tr bgcolor="#aa55cc"> |
18 <td colspan=3 valign=bottom> <br> | 18 <td colspan=3 valign=bottom> <br> |
19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big
></font></td></tr> | 19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big
></font></td></tr> |
20 | 20 |
21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td>
</td> | 21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td>
</td> |
22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t
op><a href="telemetry.core.browser_finder.html">telemetry.core.browser_finder</a
><br> | 22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t
op><a href="telemetry.core.browser_finder.html">telemetry.core.browser_finder</a
><br> |
23 </td><td width="25%" valign=top><a href="telemetry.unittest.options_for_unittest
s.html">telemetry.unittest.options_for_unittests</a><br> | 23 <a href="telemetry.unittest.options_for_unittests.html">telemetry.unittest.optio
ns_for_unittests</a><br> |
24 </td><td width="25%" valign=top><a href="unittest.html">unittest</a><br> | 24 </td><td width="25%" valign=top><a href="os.html">os</a><br> |
| 25 <a href="unittest.html">unittest</a><br> |
| 26 </td><td width="25%" valign=top><a href="telemetry.core.util.html">telemetry.cor
e.util</a><br> |
25 </td><td width="25%" valign=top></td></tr></table></td></tr></table><p> | 27 </td><td width="25%" valign=top></td></tr></table></td></tr></table><p> |
26 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | 28 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
27 <tr bgcolor="#ee77aa"> | 29 <tr bgcolor="#ee77aa"> |
28 <td colspan=3 valign=bottom> <br> | 30 <td colspan=3 valign=bottom> <br> |
29 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> | 31 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big
></font></td></tr> |
30 | 32 |
31 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> | 33 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td>
</td> |
32 <td width="100%"><dl> | 34 <td width="100%"><dl> |
33 <dt><font face="helvetica, arial"><a href="unittest.case.html#TestCase">unittest
.case.TestCase</a>(<a href="__builtin__.html#object">__builtin__.object</a>) | 35 <dt><font face="helvetica, arial"><a href="unittest.case.html#TestCase">unittest
.case.TestCase</a>(<a href="__builtin__.html#object">__builtin__.object</a>) |
34 </font></dt><dd> | 36 </font></dt><dd> |
(...skipping 11 matching lines...) Expand all Loading... |
46 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> | 48 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> |
47 <td width="100%"><dl><dt>Method resolution order:</dt> | 49 <td width="100%"><dl><dt>Method resolution order:</dt> |
48 <dd><a href="telemetry.unittest.tab_test_case.html#TabTestCase">TabTestCase</a><
/dd> | 50 <dd><a href="telemetry.unittest.tab_test_case.html#TabTestCase">TabTestCase</a><
/dd> |
49 <dd><a href="unittest.case.html#TestCase">unittest.case.TestCase</a></dd> | 51 <dd><a href="unittest.case.html#TestCase">unittest.case.TestCase</a></dd> |
50 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> | 52 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
51 </dl> | 53 </dl> |
52 <hr> | 54 <hr> |
53 Methods defined here:<br> | 55 Methods defined here:<br> |
54 <dl><dt><a name="TabTestCase-CustomizeBrowserOptions"><strong>CustomizeBrowserOp
tions</strong></a>(self, options)</dt><dd><tt>Override to add tes
t-specific options to the BrowserOptions object</tt></d
d></dl> | 56 <dl><dt><a name="TabTestCase-CustomizeBrowserOptions"><strong>CustomizeBrowserOp
tions</strong></a>(self, options)</dt><dd><tt>Override to add tes
t-specific options to the BrowserOptions object</tt></d
d></dl> |
55 | 57 |
| 58 <dl><dt><a name="TabTestCase-Navigate"><strong>Navigate</strong></a>(self, filen
ame, script_to_evaluate_on_commit<font color="#909090">=None</font>)</dt><dd><tt
>Navigates |tab| to |filename| in the unittest&nbs
p;data directory.<br> |
| 59 <br> |
| 60 Also sets up http server to point to the
unittest data directory.</tt></dd></dl> |
| 61 |
56 <dl><dt><a name="TabTestCase-__init__"><strong>__init__</strong></a>(self, *args
)</dt></dl> | 62 <dl><dt><a name="TabTestCase-__init__"><strong>__init__</strong></a>(self, *args
)</dt></dl> |
57 | 63 |
58 <dl><dt><a name="TabTestCase-setUp"><strong>setUp</strong></a>(self)</dt></dl> | 64 <dl><dt><a name="TabTestCase-setUp"><strong>setUp</strong></a>(self)</dt></dl> |
59 | 65 |
60 <dl><dt><a name="TabTestCase-tearDown"><strong>tearDown</strong></a>(self)</dt><
/dl> | 66 <dl><dt><a name="TabTestCase-tearDown"><strong>tearDown</strong></a>(self)</dt><
/dl> |
61 | 67 |
62 <hr> | 68 <hr> |
63 Methods inherited from <a href="unittest.case.html#TestCase">unittest.case.TestC
ase</a>:<br> | 69 Methods inherited from <a href="unittest.case.html#TestCase">unittest.case.TestC
ase</a>:<br> |
64 <dl><dt><a name="TabTestCase-__call__"><strong>__call__</strong></a>(self, *args
, **kwds)</dt></dl> | 70 <dl><dt><a name="TabTestCase-__call__"><strong>__call__</strong></a>(self, *args
, **kwds)</dt></dl> |
65 | 71 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 <dl><dt><a name="TabTestCase-assertNotAlmostEquals"><strong>assertNotAlmostEqual
s</strong></a> = assertNotAlmostEqual(self, first, second, places<font color="#9
09090">=None</font>, msg<font color="#909090">=None</font>, delta<font color="#9
09090">=None</font>)</dt><dd><tt>Fail if the two objects&nbs
p;are equal as determined by their<br> | 187 <dl><dt><a name="TabTestCase-assertNotAlmostEquals"><strong>assertNotAlmostEqual
s</strong></a> = assertNotAlmostEqual(self, first, second, places<font color="#9
09090">=None</font>, msg<font color="#909090">=None</font>, delta<font color="#9
09090">=None</font>)</dt><dd><tt>Fail if the two objects&nbs
p;are equal as determined by their<br> |
182 difference rounded to the given number of dec
imal places<br> | 188 difference rounded to the given number of dec
imal places<br> |
183 (default 7) and comparing to zero, or by 
;comparing that the<br> | 189 (default 7) and comparing to zero, or by 
;comparing that the<br> |
184 between the two objects is less than the 
;given delta.<br> | 190 between the two objects is less than the 
;given delta.<br> |
185 <br> | 191 <br> |
186 Note that decimal places (from zero) are usua
lly not the same<br> | 192 Note that decimal places (from zero) are usua
lly not the same<br> |
187 as significant digits (measured from the most 
;signficant digit).<br> | 193 as significant digits (measured from the most 
;signficant digit).<br> |
188 <br> | 194 <br> |
189 Objects that are equal automatically fail.</tt></dd></d
l> | 195 Objects that are equal automatically fail.</tt></dd></d
l> |
190 | 196 |
191 <dl><dt><a name="TabTestCase-assertNotEqual"><strong>assertNotEqual</strong></a>
(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail&nb
sp;if the two objects are equal as determined
by the '=='<br> | 197 <dl><dt><a name="TabTestCase-assertNotEqual"><strong>assertNotEqual</strong></a>
(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail&nb
sp;if the two objects are equal as determined
by the '!='<br> |
192 operator.</tt></dd></dl> | 198 operator.</tt></dd></dl> |
193 | 199 |
194 <dl><dt><a name="TabTestCase-assertNotEquals"><strong>assertNotEquals</strong></
a> = assertNotEqual(self, first, second, msg<font color="#909090">=None</font>)<
/dt><dd><tt>Fail if the two objects are equal 
;as determined by the '=='<br> | 200 <dl><dt><a name="TabTestCase-assertNotEquals"><strong>assertNotEquals</strong></
a> = assertNotEqual(self, first, second, msg<font color="#909090">=None</font>)<
/dt><dd><tt>Fail if the two objects are equal 
;as determined by the '!='<br> |
195 operator.</tt></dd></dl> | 201 operator.</tt></dd></dl> |
196 | 202 |
197 <dl><dt><a name="TabTestCase-assertNotIn"><strong>assertNotIn</strong></a>(self,
member, container, msg<font color="#909090">=None</font>)</dt><dd><tt>Just 
;like <a href="#TabTestCase-assertTrue">assertTrue</a>(a not in&n
bsp;b), but with a nicer default message.</tt></dd
></dl> | 203 <dl><dt><a name="TabTestCase-assertNotIn"><strong>assertNotIn</strong></a>(self,
member, container, msg<font color="#909090">=None</font>)</dt><dd><tt>Just 
;like <a href="#TabTestCase-assertTrue">assertTrue</a>(a not in&n
bsp;b), but with a nicer default message.</tt></dd
></dl> |
198 | 204 |
199 <dl><dt><a name="TabTestCase-assertNotIsInstance"><strong>assertNotIsInstance</s
trong></a>(self, obj, cls, msg<font color="#909090">=None</font>)</dt><dd><tt>In
cluded for symmetry with assertIsInstance.</tt></dd></dl> | 205 <dl><dt><a name="TabTestCase-assertNotIsInstance"><strong>assertNotIsInstance</s
trong></a>(self, obj, cls, msg<font color="#909090">=None</font>)</dt><dd><tt>In
cluded for symmetry with assertIsInstance.</tt></dd></dl> |
200 | 206 |
201 <dl><dt><a name="TabTestCase-assertNotRegexpMatches"><strong>assertNotRegexpMatc
hes</strong></a>(self, text, unexpected_regexp, msg<font color="#909090">=None</
font>)</dt><dd><tt>Fail the test if the text match
es the regular expression.</tt></dd></dl> | 207 <dl><dt><a name="TabTestCase-assertNotRegexpMatches"><strong>assertNotRegexpMatc
hes</strong></a>(self, text, unexpected_regexp, msg<font color="#909090">=None</
font>)</dt><dd><tt>Fail the test if the text match
es the regular expression.</tt></dd></dl> |
202 | 208 |
203 <dl><dt><a name="TabTestCase-assertRaises"><strong>assertRaises</strong></a>(sel
f, excClass, callableObj<font color="#909090">=None</font>, *args, **kwargs)</dt
><dd><tt>Fail unless an exception of class excClas
s is thrown<br> | 209 <dl><dt><a name="TabTestCase-assertRaises"><strong>assertRaises</strong></a>(sel
f, excClass, callableObj<font color="#909090">=None</font>, *args, **kwargs)</dt
><dd><tt>Fail unless an exception of class excClas
s is raised<br> |
204 by callableObj when invoked with arguments args&nb
sp;and keyword<br> | 210 by callableObj when invoked with arguments args&nb
sp;and keyword<br> |
205 arguments kwargs. If a different type of exce
ption is<br> | 211 arguments kwargs. If a different type of exce
ption is<br> |
206 thrown, it will not be caught, and the t
est case will be<br> | 212 raised, it will not be caught, and the t
est case will be<br> |
207 deemed to have suffered an error, exactly as&
nbsp;for an<br> | 213 deemed to have suffered an error, exactly as&
nbsp;for an<br> |
208 unexpected exception.<br> | 214 unexpected exception.<br> |
209 <br> | 215 <br> |
210 If called with callableObj omitted or None, w
ill return a<br> | 216 If called with callableObj omitted or None, w
ill return a<br> |
211 context object used like this::<br> | 217 context object used like this::<br> |
212 <br> | 218 <br> |
213 with <a href="#TabTestCase-assertRaises">asse
rtRaises</a>(SomeException):<br> | 219 with <a href="#TabTestCase-assertRaises">asse
rtRaises</a>(SomeException):<br> |
214 do_something()<br> | 220 do_something()<br> |
215 <br> | 221 <br> |
216 The context manager keeps a reference to the&
nbsp;exception as<br> | 222 The context manager keeps a reference to the&
nbsp;exception as<br> |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 <hr> | 331 <hr> |
326 Data and other attributes inherited from <a href="unittest.case.html#TestCase">u
nittest.case.TestCase</a>:<br> | 332 Data and other attributes inherited from <a href="unittest.case.html#TestCase">u
nittest.case.TestCase</a>:<br> |
327 <dl><dt><strong>failureException</strong> = <type 'exceptions.AssertionError'
><dd><tt>Assertion failed.</tt></dl> | 333 <dl><dt><strong>failureException</strong> = <type 'exceptions.AssertionError'
><dd><tt>Assertion failed.</tt></dl> |
328 | 334 |
329 <dl><dt><strong>longMessage</strong> = False</dl> | 335 <dl><dt><strong>longMessage</strong> = False</dl> |
330 | 336 |
331 <dl><dt><strong>maxDiff</strong> = 640</dl> | 337 <dl><dt><strong>maxDiff</strong> = 640</dl> |
332 | 338 |
333 </td></tr></table></td></tr></table> | 339 </td></tr></table></td></tr></table> |
334 </body></html> | 340 </body></html> |
OLD | NEW |