|
0
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
|
2 |
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#"> |
|
|
3 |
<head> |
|
|
4 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
|
|
5 |
<title>API: test Test.Runner (YUI Library)</title> |
|
|
6 |
|
|
|
7 |
<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" /> |
|
|
8 |
<link rel="stylesheet" type="text/css" href="assets/api.css" /> |
|
|
9 |
|
|
|
10 |
<script type="text/javascript" src="assets/api-js"></script> |
|
|
11 |
<script type="text/javascript" src="assets/ac-js"></script> |
|
|
12 |
</head> |
|
|
13 |
|
|
|
14 |
<body id="yahoo-com"> |
|
|
15 |
|
|
|
16 |
<div id="doc3" class="yui-t2"> |
|
|
17 |
<div id="hd"> |
|
|
18 |
<h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1> |
|
|
19 |
<h3>test <span class="subtitle">3.0.0</span></h3> |
|
|
20 |
<a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> |
|
|
21 |
> <a href="./module_test.html" title="test">test</a> |
|
|
22 |
> Test.Runner |
|
|
23 |
|
|
|
24 |
<form onsubmit="return false"> |
|
|
25 |
<div id="propertysearch"> |
|
|
26 |
Search: <input autocomplete="off" id="searchinput" /> |
|
|
27 |
<div id="searchresults"> |
|
|
28 |
|
|
|
29 |
</div> |
|
|
30 |
</div> |
|
|
31 |
</form> |
|
|
32 |
</div> |
|
|
33 |
|
|
|
34 |
<div id="bd"> |
|
|
35 |
<div id="yui-main"> |
|
|
36 |
<div class="yui-b"> |
|
|
37 |
<form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form"> |
|
|
38 |
<fieldset> |
|
|
39 |
<legend>Filters</legend> |
|
|
40 |
<span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span> |
|
|
41 |
<span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span> |
|
|
42 |
<span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span> |
|
|
43 |
</fieldset> |
|
|
44 |
</form> |
|
|
45 |
|
|
|
46 |
<h2> |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
<code>static</code> |
|
|
50 |
|
|
|
51 |
Class <b property="yui:name">Test.Runner</b> |
|
|
52 |
<span class="extends"> |
|
|
53 |
</span> |
|
|
54 |
|
|
|
55 |
</h2> |
|
|
56 |
<!-- class tree goes here --> |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
<div class="summary description" property="yui:description"> |
|
|
62 |
Runs test suites and test cases, providing events to allowing for the |
|
|
63 |
interpretation of test results. |
|
|
64 |
</div> |
|
|
65 |
|
|
|
66 |
|
|
|
67 |
<div rel="yui:properties" resource="#properties"> |
|
|
68 |
<div class="section field details"> |
|
|
69 |
<h3 id="properties">Properties</h3> |
|
|
70 |
<div class="content"> |
|
|
71 |
<div class="private" rel="yui:property" resource="#property__cur"> |
|
|
72 |
<h4><a name="property__cur" property="yui:name">_cur</a> |
|
|
73 |
- <code>private static <span property="yui:type">TestNode</span></code> |
|
|
74 |
</h4> |
|
|
75 |
<div class="detail"> |
|
|
76 |
<div class="description" property="yui:description"> |
|
|
77 |
Pointer to the current node in the test tree. |
|
|
78 |
</div> |
|
|
79 |
</div> |
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
<hr /> |
|
|
85 |
</div> |
|
|
86 |
<div class="private" rel="yui:property" resource="#property__log"> |
|
|
87 |
<h4><a name="property__log" property="yui:name">_log</a> |
|
|
88 |
- <code>private static <span property="yui:type">Boolean</span></code> |
|
|
89 |
</h4> |
|
|
90 |
<div class="detail"> |
|
|
91 |
<div class="description" property="yui:description"> |
|
|
92 |
Indicates if the TestRunner will log events or not. |
|
|
93 |
</div> |
|
|
94 |
</div> |
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
<hr /> |
|
|
100 |
</div> |
|
|
101 |
<div class="private" rel="yui:property" resource="#property__root"> |
|
|
102 |
<h4><a name="property__root" property="yui:name">_root</a> |
|
|
103 |
- <code>private static <span property="yui:type">TestNode</span></code> |
|
|
104 |
</h4> |
|
|
105 |
<div class="detail"> |
|
|
106 |
<div class="description" property="yui:description"> |
|
|
107 |
Pointer to the root node in the test tree. |
|
|
108 |
</div> |
|
|
109 |
</div> |
|
|
110 |
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
<hr /> |
|
|
115 |
</div> |
|
|
116 |
<div class="private" rel="yui:property" resource="#property__waiting"> |
|
|
117 |
<h4><a name="property__waiting" property="yui:name">_waiting</a> |
|
|
118 |
- <code>private static <span property="yui:type">Boolean</span></code> |
|
|
119 |
</h4> |
|
|
120 |
<div class="detail"> |
|
|
121 |
<div class="description" property="yui:description"> |
|
|
122 |
Indicates if the TestRunner is waiting as a result of |
|
|
123 |
wait() being called. |
|
|
124 |
</div> |
|
|
125 |
</div> |
|
|
126 |
|
|
|
127 |
|
|
|
128 |
|
|
|
129 |
|
|
|
130 |
<hr /> |
|
|
131 |
</div> |
|
|
132 |
<div class="private" rel="yui:property" resource="#property_masterSuite"> |
|
|
133 |
<h4><a name="property_masterSuite" property="yui:name">masterSuite</a> |
|
|
134 |
- <code>private static <span property="yui:type">Y.Test.Suite</span></code> |
|
|
135 |
</h4> |
|
|
136 |
<div class="detail"> |
|
|
137 |
<div class="description" property="yui:description"> |
|
|
138 |
Suite on which to attach all TestSuites and TestCases to be run. |
|
|
139 |
</div> |
|
|
140 |
</div> |
|
|
141 |
|
|
|
142 |
|
|
|
143 |
|
|
|
144 |
|
|
|
145 |
<hr /> |
|
|
146 |
</div> |
|
|
147 |
</div> |
|
|
148 |
</div> |
|
|
149 |
|
|
|
150 |
</div> |
|
|
151 |
|
|
|
152 |
<div rel="yui:methods" resource="#methods"> |
|
|
153 |
<div class="section method details"> |
|
|
154 |
<h3 id="methods">Methods</h3> |
|
|
155 |
<div class="content"> |
|
|
156 |
<div class="private" rel="yui:method" resource="#method__addTestCaseToTestTree"> |
|
|
157 |
<h4> |
|
|
158 |
<a name="method__addTestCaseToTestTree">_addTestCaseToTestTree</a></h4> |
|
|
159 |
<div class="detail" > |
|
|
160 |
<code> |
|
|
161 |
private |
|
|
162 |
static |
|
|
163 |
|
|
|
164 |
Void |
|
|
165 |
<strong property="yui:name">_addTestCaseToTestTree</strong> |
|
|
166 |
( |
|
|
167 |
|
|
|
168 |
|
|
|
169 |
parentNode |
|
|
170 |
|
|
|
171 |
|
|
|
172 |
, |
|
|
173 |
testCase |
|
|
174 |
|
|
|
175 |
|
|
|
176 |
) |
|
|
177 |
</code> |
|
|
178 |
|
|
|
179 |
<div class="description" property="yui:description"> |
|
|
180 |
Adds a test case to the test tree as a child of the specified node. |
|
|
181 |
</div> |
|
|
182 |
|
|
|
183 |
<div class="description"> |
|
|
184 |
|
|
|
185 |
<dl rel="yui:parameters"> |
|
|
186 |
<dt>Parameters:</dt> |
|
|
187 |
<dd rel="yui:parameter"> |
|
|
188 |
<code><span property="yui:name">parentNode</span> |
|
|
189 |
<<span property="yui:type">TestNode</span>> |
|
|
190 |
</code> |
|
|
191 |
<span property="yui:description"> The node to add the test case to as a child.</span> |
|
|
192 |
</dd> |
|
|
193 |
<dd rel="yui:parameter"> |
|
|
194 |
<code><span property="yui:name">testCase</span> |
|
|
195 |
<<span property="yui:type">Y.Test.Case</span>> |
|
|
196 |
</code> |
|
|
197 |
<span property="yui:description"> The test case to add.</span> |
|
|
198 |
</dd> |
|
|
199 |
</dl> |
|
|
200 |
|
|
|
201 |
|
|
|
202 |
|
|
|
203 |
|
|
|
204 |
|
|
|
205 |
</div> |
|
|
206 |
|
|
|
207 |
</div> |
|
|
208 |
<hr /> |
|
|
209 |
</div> |
|
|
210 |
<div class="private" rel="yui:method" resource="#method__addTestSuiteToTestTree"> |
|
|
211 |
<h4> |
|
|
212 |
<a name="method__addTestSuiteToTestTree">_addTestSuiteToTestTree</a></h4> |
|
|
213 |
<div class="detail" > |
|
|
214 |
<code> |
|
|
215 |
private |
|
|
216 |
static |
|
|
217 |
|
|
|
218 |
Void |
|
|
219 |
<strong property="yui:name">_addTestSuiteToTestTree</strong> |
|
|
220 |
( |
|
|
221 |
|
|
|
222 |
|
|
|
223 |
parentNode |
|
|
224 |
|
|
|
225 |
|
|
|
226 |
, |
|
|
227 |
testSuite |
|
|
228 |
|
|
|
229 |
|
|
|
230 |
) |
|
|
231 |
</code> |
|
|
232 |
|
|
|
233 |
<div class="description" property="yui:description"> |
|
|
234 |
Adds a test suite to the test tree as a child of the specified node. |
|
|
235 |
</div> |
|
|
236 |
|
|
|
237 |
<div class="description"> |
|
|
238 |
|
|
|
239 |
<dl rel="yui:parameters"> |
|
|
240 |
<dt>Parameters:</dt> |
|
|
241 |
<dd rel="yui:parameter"> |
|
|
242 |
<code><span property="yui:name">parentNode</span> |
|
|
243 |
<<span property="yui:type">TestNode</span>> |
|
|
244 |
</code> |
|
|
245 |
<span property="yui:description"> The node to add the test suite to as a child.</span> |
|
|
246 |
</dd> |
|
|
247 |
<dd rel="yui:parameter"> |
|
|
248 |
<code><span property="yui:name">testSuite</span> |
|
|
249 |
<<span property="yui:type">Y.Test.Suite</span>> |
|
|
250 |
</code> |
|
|
251 |
<span property="yui:description"> The test suite to add.</span> |
|
|
252 |
</dd> |
|
|
253 |
</dl> |
|
|
254 |
|
|
|
255 |
|
|
|
256 |
|
|
|
257 |
|
|
|
258 |
|
|
|
259 |
</div> |
|
|
260 |
|
|
|
261 |
</div> |
|
|
262 |
<hr /> |
|
|
263 |
</div> |
|
|
264 |
<div class="private" rel="yui:method" resource="#method__buildTestTree"> |
|
|
265 |
<h4> |
|
|
266 |
<a name="method__buildTestTree">_buildTestTree</a></h4> |
|
|
267 |
<div class="detail" > |
|
|
268 |
<code> |
|
|
269 |
private |
|
|
270 |
static |
|
|
271 |
|
|
|
272 |
Void |
|
|
273 |
<strong property="yui:name">_buildTestTree</strong> |
|
|
274 |
( |
|
|
275 |
) |
|
|
276 |
</code> |
|
|
277 |
|
|
|
278 |
<div class="description" property="yui:description"> |
|
|
279 |
Builds the test tree based on items in the master suite. The tree is a hierarchical |
|
|
280 |
representation of the test suites, test cases, and test functions. The resulting tree |
|
|
281 |
is stored in _root and the pointer _cur is set to the root initially. |
|
|
282 |
</div> |
|
|
283 |
|
|
|
284 |
<div class="description"> |
|
|
285 |
|
|
|
286 |
|
|
|
287 |
|
|
|
288 |
|
|
|
289 |
|
|
|
290 |
|
|
|
291 |
</div> |
|
|
292 |
|
|
|
293 |
</div> |
|
|
294 |
<hr /> |
|
|
295 |
</div> |
|
|
296 |
<div class="private" rel="yui:method" resource="#method__handleError"> |
|
|
297 |
<h4> |
|
|
298 |
<a name="method__handleError">_handleError</a></h4> |
|
|
299 |
<div class="detail" > |
|
|
300 |
<code> |
|
|
301 |
private |
|
|
302 |
static |
|
|
303 |
|
|
|
304 |
Void |
|
|
305 |
<strong property="yui:name">_handleError</strong> |
|
|
306 |
( |
|
|
307 |
|
|
|
308 |
|
|
|
309 |
error |
|
|
310 |
|
|
|
311 |
|
|
|
312 |
) |
|
|
313 |
</code> |
|
|
314 |
|
|
|
315 |
<div class="description" property="yui:description"> |
|
|
316 |
Handles an error as if it occurred within the currently executing |
|
|
317 |
test. This is for mock methods that may be called asynchronously |
|
|
318 |
and therefore out of the scope of the TestRunner. Previously, this |
|
|
319 |
error would bubble up to the browser. Now, this method is used |
|
|
320 |
to tell TestRunner about the error. This should never be called |
|
|
321 |
by anyplace other than the Mock object. |
|
|
322 |
</div> |
|
|
323 |
|
|
|
324 |
<div class="description"> |
|
|
325 |
|
|
|
326 |
<dl rel="yui:parameters"> |
|
|
327 |
<dt>Parameters:</dt> |
|
|
328 |
<dd rel="yui:parameter"> |
|
|
329 |
<code><span property="yui:name">error</span> |
|
|
330 |
<<span property="yui:type">Error</span>> |
|
|
331 |
</code> |
|
|
332 |
<span property="yui:description"> The error object.</span> |
|
|
333 |
</dd> |
|
|
334 |
</dl> |
|
|
335 |
|
|
|
336 |
|
|
|
337 |
|
|
|
338 |
|
|
|
339 |
|
|
|
340 |
</div> |
|
|
341 |
|
|
|
342 |
</div> |
|
|
343 |
<hr /> |
|
|
344 |
</div> |
|
|
345 |
<div class="private" rel="yui:method" resource="#method__handleTestObjectComplete"> |
|
|
346 |
<h4> |
|
|
347 |
<a name="method__handleTestObjectComplete">_handleTestObjectComplete</a></h4> |
|
|
348 |
<div class="detail" > |
|
|
349 |
<code> |
|
|
350 |
private |
|
|
351 |
|
|
|
352 |
|
|
|
353 |
Void |
|
|
354 |
<strong property="yui:name">_handleTestObjectComplete</strong> |
|
|
355 |
( |
|
|
356 |
|
|
|
357 |
|
|
|
358 |
node |
|
|
359 |
|
|
|
360 |
|
|
|
361 |
) |
|
|
362 |
</code> |
|
|
363 |
|
|
|
364 |
<div class="description" property="yui:description"> |
|
|
365 |
Handles the completion of a test object's tests. Tallies test results |
|
|
366 |
from one level up to the next. |
|
|
367 |
</div> |
|
|
368 |
|
|
|
369 |
<div class="description"> |
|
|
370 |
|
|
|
371 |
<dl rel="yui:parameters"> |
|
|
372 |
<dt>Parameters:</dt> |
|
|
373 |
<dd rel="yui:parameter"> |
|
|
374 |
<code><span property="yui:name">node</span> |
|
|
375 |
<<span property="yui:type">TestNode</span>> |
|
|
376 |
</code> |
|
|
377 |
<span property="yui:description"> The TestNode representing the test object.</span> |
|
|
378 |
</dd> |
|
|
379 |
</dl> |
|
|
380 |
|
|
|
381 |
|
|
|
382 |
|
|
|
383 |
|
|
|
384 |
|
|
|
385 |
</div> |
|
|
386 |
|
|
|
387 |
</div> |
|
|
388 |
<hr /> |
|
|
389 |
</div> |
|
|
390 |
<div class="private" rel="yui:method" resource="#method__logEvent"> |
|
|
391 |
<h4> |
|
|
392 |
<a name="method__logEvent">_logEvent</a></h4> |
|
|
393 |
<div class="detail" > |
|
|
394 |
<code> |
|
|
395 |
private |
|
|
396 |
static |
|
|
397 |
|
|
|
398 |
Void |
|
|
399 |
<strong property="yui:name">_logEvent</strong> |
|
|
400 |
( |
|
|
401 |
|
|
|
402 |
|
|
|
403 |
event |
|
|
404 |
|
|
|
405 |
|
|
|
406 |
) |
|
|
407 |
</code> |
|
|
408 |
|
|
|
409 |
<div class="description" property="yui:description"> |
|
|
410 |
Logs TestRunner events using Y.log(). |
|
|
411 |
</div> |
|
|
412 |
|
|
|
413 |
<div class="description"> |
|
|
414 |
|
|
|
415 |
<dl rel="yui:parameters"> |
|
|
416 |
<dt>Parameters:</dt> |
|
|
417 |
<dd rel="yui:parameter"> |
|
|
418 |
<code><span property="yui:name">event</span> |
|
|
419 |
<<span property="yui:type">Object</span>> |
|
|
420 |
</code> |
|
|
421 |
<span property="yui:description"> The event object for the event.</span> |
|
|
422 |
</dd> |
|
|
423 |
</dl> |
|
|
424 |
|
|
|
425 |
|
|
|
426 |
|
|
|
427 |
|
|
|
428 |
|
|
|
429 |
</div> |
|
|
430 |
|
|
|
431 |
</div> |
|
|
432 |
<hr /> |
|
|
433 |
</div> |
|
|
434 |
<div class="private" rel="yui:method" resource="#method__next"> |
|
|
435 |
<h4> |
|
|
436 |
<a name="method__next">_next</a></h4> |
|
|
437 |
<div class="detail" > |
|
|
438 |
<code> |
|
|
439 |
private |
|
|
440 |
static |
|
|
441 |
|
|
|
442 |
TestNode |
|
|
443 |
<strong property="yui:name">_next</strong> |
|
|
444 |
( |
|
|
445 |
) |
|
|
446 |
</code> |
|
|
447 |
|
|
|
448 |
<div class="description" property="yui:description"> |
|
|
449 |
Retrieves the next node in the test tree. |
|
|
450 |
</div> |
|
|
451 |
|
|
|
452 |
<div class="description"> |
|
|
453 |
|
|
|
454 |
|
|
|
455 |
<dl> |
|
|
456 |
<dt>Returns: |
|
|
457 |
<code property="yui:return"> |
|
|
458 |
TestNode |
|
|
459 |
</code></dt> |
|
|
460 |
<dd property="yui:returnInfo">The next node in the test tree or null if the end is reached.</dd> |
|
|
461 |
</dl> |
|
|
462 |
|
|
|
463 |
|
|
|
464 |
|
|
|
465 |
|
|
|
466 |
</div> |
|
|
467 |
|
|
|
468 |
</div> |
|
|
469 |
<hr /> |
|
|
470 |
</div> |
|
|
471 |
<div class="private" rel="yui:method" resource="#method__run"> |
|
|
472 |
<h4> |
|
|
473 |
<a name="method__run">_run</a></h4> |
|
|
474 |
<div class="detail" > |
|
|
475 |
<code> |
|
|
476 |
private |
|
|
477 |
static |
|
|
478 |
|
|
|
479 |
Object |
|
|
480 |
<strong property="yui:name">_run</strong> |
|
|
481 |
( |
|
|
482 |
|
|
|
483 |
|
|
|
484 |
testObject |
|
|
485 |
|
|
|
486 |
|
|
|
487 |
) |
|
|
488 |
</code> |
|
|
489 |
|
|
|
490 |
<div class="description" property="yui:description"> |
|
|
491 |
Runs a test case or test suite, returning the results. |
|
|
492 |
</div> |
|
|
493 |
|
|
|
494 |
<div class="description"> |
|
|
495 |
|
|
|
496 |
<dl rel="yui:parameters"> |
|
|
497 |
<dt>Parameters:</dt> |
|
|
498 |
<dd rel="yui:parameter"> |
|
|
499 |
<code><span property="yui:name">testObject</span> |
|
|
500 |
<<span property="yui:type">Y.Test.Case|Y.Test.Suite</span>> |
|
|
501 |
</code> |
|
|
502 |
<span property="yui:description"> The test case or test suite to run.</span> |
|
|
503 |
</dd> |
|
|
504 |
</dl> |
|
|
505 |
|
|
|
506 |
<dl> |
|
|
507 |
<dt>Returns: |
|
|
508 |
<code property="yui:return"> |
|
|
509 |
Object |
|
|
510 |
</code></dt> |
|
|
511 |
<dd property="yui:returnInfo">Results of the execution with properties passed, failed, and total.</dd> |
|
|
512 |
</dl> |
|
|
513 |
|
|
|
514 |
|
|
|
515 |
|
|
|
516 |
|
|
|
517 |
</div> |
|
|
518 |
|
|
|
519 |
</div> |
|
|
520 |
<hr /> |
|
|
521 |
</div> |
|
|
522 |
<div class="private" rel="yui:method" resource="#method__runTest"> |
|
|
523 |
<h4> |
|
|
524 |
<a name="method__runTest">_runTest</a></h4> |
|
|
525 |
<div class="detail" > |
|
|
526 |
<code> |
|
|
527 |
private |
|
|
528 |
static |
|
|
529 |
|
|
|
530 |
Void |
|
|
531 |
<strong property="yui:name">_runTest</strong> |
|
|
532 |
( |
|
|
533 |
|
|
|
534 |
|
|
|
535 |
node |
|
|
536 |
|
|
|
537 |
|
|
|
538 |
) |
|
|
539 |
</code> |
|
|
540 |
|
|
|
541 |
<div class="description" property="yui:description"> |
|
|
542 |
Runs a single test based on the data provided in the node. |
|
|
543 |
</div> |
|
|
544 |
|
|
|
545 |
<div class="description"> |
|
|
546 |
|
|
|
547 |
<dl rel="yui:parameters"> |
|
|
548 |
<dt>Parameters:</dt> |
|
|
549 |
<dd rel="yui:parameter"> |
|
|
550 |
<code><span property="yui:name">node</span> |
|
|
551 |
<<span property="yui:type">TestNode</span>> |
|
|
552 |
</code> |
|
|
553 |
<span property="yui:description"> The TestNode representing the test to run.</span> |
|
|
554 |
</dd> |
|
|
555 |
</dl> |
|
|
556 |
|
|
|
557 |
|
|
|
558 |
|
|
|
559 |
|
|
|
560 |
|
|
|
561 |
</div> |
|
|
562 |
|
|
|
563 |
</div> |
|
|
564 |
<hr /> |
|
|
565 |
</div> |
|
|
566 |
<div class="" rel="yui:method" resource="#method_add"> |
|
|
567 |
<h4> |
|
|
568 |
<a name="method_add">add</a></h4> |
|
|
569 |
<div class="detail" > |
|
|
570 |
<code> |
|
|
571 |
|
|
|
572 |
static |
|
|
573 |
|
|
|
574 |
Void |
|
|
575 |
<strong property="yui:name">add</strong> |
|
|
576 |
( |
|
|
577 |
|
|
|
578 |
|
|
|
579 |
testObject |
|
|
580 |
|
|
|
581 |
|
|
|
582 |
) |
|
|
583 |
</code> |
|
|
584 |
|
|
|
585 |
<div class="description" property="yui:description"> |
|
|
586 |
Adds a test suite or test case to the list of test objects to run. |
|
|
587 |
</div> |
|
|
588 |
|
|
|
589 |
<div class="description"> |
|
|
590 |
|
|
|
591 |
<dl rel="yui:parameters"> |
|
|
592 |
<dt>Parameters:</dt> |
|
|
593 |
<dd rel="yui:parameter"> |
|
|
594 |
<code><span property="yui:name">testObject</span> |
|
|
595 |
<<span property="yui:type">object</span>> |
|
|
596 |
</code> |
|
|
597 |
<span property="yui:description"> Either a TestCase or a TestSuite that should be run.</span> |
|
|
598 |
</dd> |
|
|
599 |
</dl> |
|
|
600 |
|
|
|
601 |
|
|
|
602 |
|
|
|
603 |
|
|
|
604 |
|
|
|
605 |
</div> |
|
|
606 |
|
|
|
607 |
</div> |
|
|
608 |
<hr /> |
|
|
609 |
</div> |
|
|
610 |
<div class="" rel="yui:method" resource="#method_clear"> |
|
|
611 |
<h4> |
|
|
612 |
<a name="method_clear">clear</a></h4> |
|
|
613 |
<div class="detail" > |
|
|
614 |
<code> |
|
|
615 |
|
|
|
616 |
static |
|
|
617 |
|
|
|
618 |
Void |
|
|
619 |
<strong property="yui:name">clear</strong> |
|
|
620 |
( |
|
|
621 |
) |
|
|
622 |
</code> |
|
|
623 |
|
|
|
624 |
<div class="description" property="yui:description"> |
|
|
625 |
Removes all test objects from the runner. |
|
|
626 |
</div> |
|
|
627 |
|
|
|
628 |
<div class="description"> |
|
|
629 |
|
|
|
630 |
|
|
|
631 |
|
|
|
632 |
|
|
|
633 |
|
|
|
634 |
|
|
|
635 |
</div> |
|
|
636 |
|
|
|
637 |
</div> |
|
|
638 |
<hr /> |
|
|
639 |
</div> |
|
|
640 |
<div class="" rel="yui:method" resource="#method_disableLogging"> |
|
|
641 |
<h4> |
|
|
642 |
<a name="method_disableLogging">disableLogging</a></h4> |
|
|
643 |
<div class="detail" > |
|
|
644 |
<code> |
|
|
645 |
|
|
|
646 |
static |
|
|
647 |
|
|
|
648 |
Void |
|
|
649 |
<strong property="yui:name">disableLogging</strong> |
|
|
650 |
( |
|
|
651 |
) |
|
|
652 |
</code> |
|
|
653 |
|
|
|
654 |
<div class="description" property="yui:description"> |
|
|
655 |
Disable logging via Y.log(). Test output will not be visible unless |
|
|
656 |
TestRunner events are subscribed to. |
|
|
657 |
</div> |
|
|
658 |
|
|
|
659 |
<div class="description"> |
|
|
660 |
|
|
|
661 |
|
|
|
662 |
|
|
|
663 |
|
|
|
664 |
|
|
|
665 |
|
|
|
666 |
</div> |
|
|
667 |
|
|
|
668 |
</div> |
|
|
669 |
<hr /> |
|
|
670 |
</div> |
|
|
671 |
<div class="" rel="yui:method" resource="#method_enableLogging"> |
|
|
672 |
<h4> |
|
|
673 |
<a name="method_enableLogging">enableLogging</a></h4> |
|
|
674 |
<div class="detail" > |
|
|
675 |
<code> |
|
|
676 |
|
|
|
677 |
static |
|
|
678 |
|
|
|
679 |
Void |
|
|
680 |
<strong property="yui:name">enableLogging</strong> |
|
|
681 |
( |
|
|
682 |
) |
|
|
683 |
</code> |
|
|
684 |
|
|
|
685 |
<div class="description" property="yui:description"> |
|
|
686 |
Enable logging via Y.log(). Test output is published and can be read via |
|
|
687 |
logreader. |
|
|
688 |
</div> |
|
|
689 |
|
|
|
690 |
<div class="description"> |
|
|
691 |
|
|
|
692 |
|
|
|
693 |
|
|
|
694 |
|
|
|
695 |
|
|
|
696 |
|
|
|
697 |
</div> |
|
|
698 |
|
|
|
699 |
</div> |
|
|
700 |
<hr /> |
|
|
701 |
</div> |
|
|
702 |
<div class="" rel="yui:method" resource="#method_isWaiting"> |
|
|
703 |
<h4> |
|
|
704 |
<a name="method_isWaiting">isWaiting</a></h4> |
|
|
705 |
<div class="detail" > |
|
|
706 |
<code> |
|
|
707 |
|
|
|
708 |
static |
|
|
709 |
|
|
|
710 |
Boolean |
|
|
711 |
<strong property="yui:name">isWaiting</strong> |
|
|
712 |
( |
|
|
713 |
) |
|
|
714 |
</code> |
|
|
715 |
|
|
|
716 |
<div class="description" property="yui:description"> |
|
|
717 |
Indicates if the TestRunner is waiting for a test to resume |
|
|
718 |
</div> |
|
|
719 |
|
|
|
720 |
<div class="description"> |
|
|
721 |
|
|
|
722 |
|
|
|
723 |
<dl> |
|
|
724 |
<dt>Returns: |
|
|
725 |
<code property="yui:return"> |
|
|
726 |
Boolean |
|
|
727 |
</code></dt> |
|
|
728 |
<dd property="yui:returnInfo">True if the TestRunner is waiting, false if not.</dd> |
|
|
729 |
</dl> |
|
|
730 |
|
|
|
731 |
|
|
|
732 |
|
|
|
733 |
|
|
|
734 |
</div> |
|
|
735 |
|
|
|
736 |
</div> |
|
|
737 |
<hr /> |
|
|
738 |
</div> |
|
|
739 |
<div class="" rel="yui:method" resource="#method_resume"> |
|
|
740 |
<h4> |
|
|
741 |
<a name="method_resume">resume</a></h4> |
|
|
742 |
<div class="detail" > |
|
|
743 |
<code> |
|
|
744 |
|
|
|
745 |
static |
|
|
746 |
|
|
|
747 |
Void |
|
|
748 |
<strong property="yui:name">resume</strong> |
|
|
749 |
( |
|
|
750 |
|
|
|
751 |
|
|
|
752 |
segment |
|
|
753 |
|
|
|
754 |
|
|
|
755 |
) |
|
|
756 |
</code> |
|
|
757 |
|
|
|
758 |
<div class="description" property="yui:description"> |
|
|
759 |
Resumes the TestRunner after wait() was called. |
|
|
760 |
</div> |
|
|
761 |
|
|
|
762 |
<div class="description"> |
|
|
763 |
|
|
|
764 |
<dl rel="yui:parameters"> |
|
|
765 |
<dt>Parameters:</dt> |
|
|
766 |
<dd rel="yui:parameter"> |
|
|
767 |
<code><span property="yui:name">segment</span> |
|
|
768 |
<<span property="yui:type">Function</span>> |
|
|
769 |
</code> |
|
|
770 |
<span property="yui:description"> The function to run as the rest |
|
|
771 |
of the haulted test.</span> |
|
|
772 |
</dd> |
|
|
773 |
</dl> |
|
|
774 |
|
|
|
775 |
|
|
|
776 |
|
|
|
777 |
|
|
|
778 |
|
|
|
779 |
</div> |
|
|
780 |
|
|
|
781 |
</div> |
|
|
782 |
<hr /> |
|
|
783 |
</div> |
|
|
784 |
<div class="" rel="yui:method" resource="#method_run"> |
|
|
785 |
<h4> |
|
|
786 |
<a name="method_run">run</a></h4> |
|
|
787 |
<div class="detail" > |
|
|
788 |
<code> |
|
|
789 |
|
|
|
790 |
static |
|
|
791 |
|
|
|
792 |
Void |
|
|
793 |
<strong property="yui:name">run</strong> |
|
|
794 |
( |
|
|
795 |
) |
|
|
796 |
</code> |
|
|
797 |
|
|
|
798 |
<div class="description" property="yui:description"> |
|
|
799 |
Runs the test suite. |
|
|
800 |
</div> |
|
|
801 |
|
|
|
802 |
<div class="description"> |
|
|
803 |
|
|
|
804 |
|
|
|
805 |
|
|
|
806 |
|
|
|
807 |
|
|
|
808 |
|
|
|
809 |
</div> |
|
|
810 |
|
|
|
811 |
</div> |
|
|
812 |
<hr /> |
|
|
813 |
</div> |
|
|
814 |
</div> |
|
|
815 |
</div> |
|
|
816 |
|
|
|
817 |
</div> |
|
|
818 |
|
|
|
819 |
<div rel="yui:events" resource="#events"> |
|
|
820 |
<div class="section method details"> |
|
|
821 |
<h3 id="events">Events</h3> |
|
|
822 |
<div class="content"> |
|
|
823 |
<div class="" rel="yui:event" resource="#event_begin"> |
|
|
824 |
<h4> |
|
|
825 |
<a name="event_begin">begin</a></h4> |
|
|
826 |
<div class="detail"> |
|
|
827 |
<code> |
|
|
828 |
|
|
|
829 |
static |
|
|
830 |
|
|
|
831 |
<strong property="yui:name">begin</strong> |
|
|
832 |
|
|
|
833 |
( |
|
|
834 |
) |
|
|
835 |
|
|
|
836 |
</code> |
|
|
837 |
|
|
|
838 |
<div class="description" property="yui:description"> |
|
|
839 |
Fires when the run() method is called. |
|
|
840 |
</div> |
|
|
841 |
|
|
|
842 |
<div class="description"> |
|
|
843 |
|
|
|
844 |
|
|
|
845 |
|
|
|
846 |
|
|
|
847 |
</div> |
|
|
848 |
|
|
|
849 |
</div> |
|
|
850 |
<hr /> |
|
|
851 |
</div> |
|
|
852 |
<div class="" rel="yui:event" resource="#event_complete"> |
|
|
853 |
<h4> |
|
|
854 |
<a name="event_complete">complete</a></h4> |
|
|
855 |
<div class="detail"> |
|
|
856 |
<code> |
|
|
857 |
|
|
|
858 |
static |
|
|
859 |
|
|
|
860 |
<strong property="yui:name">complete</strong> |
|
|
861 |
|
|
|
862 |
( |
|
|
863 |
) |
|
|
864 |
|
|
|
865 |
</code> |
|
|
866 |
|
|
|
867 |
<div class="description" property="yui:description"> |
|
|
868 |
Fires when all test suites and test cases have been completed. |
|
|
869 |
</div> |
|
|
870 |
|
|
|
871 |
<div class="description"> |
|
|
872 |
|
|
|
873 |
|
|
|
874 |
|
|
|
875 |
|
|
|
876 |
</div> |
|
|
877 |
|
|
|
878 |
</div> |
|
|
879 |
<hr /> |
|
|
880 |
</div> |
|
|
881 |
<div class="" rel="yui:event" resource="#event_fail"> |
|
|
882 |
<h4> |
|
|
883 |
<a name="event_fail">fail</a></h4> |
|
|
884 |
<div class="detail"> |
|
|
885 |
<code> |
|
|
886 |
|
|
|
887 |
static |
|
|
888 |
|
|
|
889 |
<strong property="yui:name">fail</strong> |
|
|
890 |
|
|
|
891 |
( |
|
|
892 |
) |
|
|
893 |
|
|
|
894 |
</code> |
|
|
895 |
|
|
|
896 |
<div class="description" property="yui:description"> |
|
|
897 |
Fires when a test has failed. |
|
|
898 |
</div> |
|
|
899 |
|
|
|
900 |
<div class="description"> |
|
|
901 |
|
|
|
902 |
|
|
|
903 |
|
|
|
904 |
|
|
|
905 |
</div> |
|
|
906 |
|
|
|
907 |
</div> |
|
|
908 |
<hr /> |
|
|
909 |
</div> |
|
|
910 |
<div class="" rel="yui:event" resource="#event_ignore"> |
|
|
911 |
<h4> |
|
|
912 |
<a name="event_ignore">ignore</a></h4> |
|
|
913 |
<div class="detail"> |
|
|
914 |
<code> |
|
|
915 |
|
|
|
916 |
static |
|
|
917 |
|
|
|
918 |
<strong property="yui:name">ignore</strong> |
|
|
919 |
|
|
|
920 |
( |
|
|
921 |
) |
|
|
922 |
|
|
|
923 |
</code> |
|
|
924 |
|
|
|
925 |
<div class="description" property="yui:description"> |
|
|
926 |
Fires when a test has been ignored. |
|
|
927 |
</div> |
|
|
928 |
|
|
|
929 |
<div class="description"> |
|
|
930 |
|
|
|
931 |
|
|
|
932 |
|
|
|
933 |
|
|
|
934 |
</div> |
|
|
935 |
|
|
|
936 |
</div> |
|
|
937 |
<hr /> |
|
|
938 |
</div> |
|
|
939 |
<div class="" rel="yui:event" resource="#event_pass"> |
|
|
940 |
<h4> |
|
|
941 |
<a name="event_pass">pass</a></h4> |
|
|
942 |
<div class="detail"> |
|
|
943 |
<code> |
|
|
944 |
|
|
|
945 |
static |
|
|
946 |
|
|
|
947 |
<strong property="yui:name">pass</strong> |
|
|
948 |
|
|
|
949 |
( |
|
|
950 |
) |
|
|
951 |
|
|
|
952 |
</code> |
|
|
953 |
|
|
|
954 |
<div class="description" property="yui:description"> |
|
|
955 |
Fires when a test has passed. |
|
|
956 |
</div> |
|
|
957 |
|
|
|
958 |
<div class="description"> |
|
|
959 |
|
|
|
960 |
|
|
|
961 |
|
|
|
962 |
|
|
|
963 |
</div> |
|
|
964 |
|
|
|
965 |
</div> |
|
|
966 |
<hr /> |
|
|
967 |
</div> |
|
|
968 |
<div class="" rel="yui:event" resource="#event_testcasebegin"> |
|
|
969 |
<h4> |
|
|
970 |
<a name="event_testcasebegin">testcasebegin</a></h4> |
|
|
971 |
<div class="detail"> |
|
|
972 |
<code> |
|
|
973 |
|
|
|
974 |
static |
|
|
975 |
|
|
|
976 |
<strong property="yui:name">testcasebegin</strong> |
|
|
977 |
|
|
|
978 |
( |
|
|
979 |
) |
|
|
980 |
|
|
|
981 |
</code> |
|
|
982 |
|
|
|
983 |
<div class="description" property="yui:description"> |
|
|
984 |
Fires when a test case is opened but before the first |
|
|
985 |
test is executed. |
|
|
986 |
</div> |
|
|
987 |
|
|
|
988 |
<div class="description"> |
|
|
989 |
|
|
|
990 |
|
|
|
991 |
|
|
|
992 |
|
|
|
993 |
</div> |
|
|
994 |
|
|
|
995 |
</div> |
|
|
996 |
<hr /> |
|
|
997 |
</div> |
|
|
998 |
<div class="" rel="yui:event" resource="#event_testcasecomplete"> |
|
|
999 |
<h4> |
|
|
1000 |
<a name="event_testcasecomplete">testcasecomplete</a></h4> |
|
|
1001 |
<div class="detail"> |
|
|
1002 |
<code> |
|
|
1003 |
|
|
|
1004 |
static |
|
|
1005 |
|
|
|
1006 |
<strong property="yui:name">testcasecomplete</strong> |
|
|
1007 |
|
|
|
1008 |
( |
|
|
1009 |
) |
|
|
1010 |
|
|
|
1011 |
</code> |
|
|
1012 |
|
|
|
1013 |
<div class="description" property="yui:description"> |
|
|
1014 |
Fires when all tests in a test case have been executed. |
|
|
1015 |
</div> |
|
|
1016 |
|
|
|
1017 |
<div class="description"> |
|
|
1018 |
|
|
|
1019 |
|
|
|
1020 |
|
|
|
1021 |
|
|
|
1022 |
</div> |
|
|
1023 |
|
|
|
1024 |
</div> |
|
|
1025 |
<hr /> |
|
|
1026 |
</div> |
|
|
1027 |
<div class="" rel="yui:event" resource="#event_testsuitebegin"> |
|
|
1028 |
<h4> |
|
|
1029 |
<a name="event_testsuitebegin">testsuitebegin</a></h4> |
|
|
1030 |
<div class="detail"> |
|
|
1031 |
<code> |
|
|
1032 |
|
|
|
1033 |
static |
|
|
1034 |
|
|
|
1035 |
<strong property="yui:name">testsuitebegin</strong> |
|
|
1036 |
|
|
|
1037 |
( |
|
|
1038 |
) |
|
|
1039 |
|
|
|
1040 |
</code> |
|
|
1041 |
|
|
|
1042 |
<div class="description" property="yui:description"> |
|
|
1043 |
Fires when a test suite is opened but before the first |
|
|
1044 |
test is executed. |
|
|
1045 |
</div> |
|
|
1046 |
|
|
|
1047 |
<div class="description"> |
|
|
1048 |
|
|
|
1049 |
|
|
|
1050 |
|
|
|
1051 |
|
|
|
1052 |
</div> |
|
|
1053 |
|
|
|
1054 |
</div> |
|
|
1055 |
<hr /> |
|
|
1056 |
</div> |
|
|
1057 |
<div class="" rel="yui:event" resource="#event_testsuitecomplete"> |
|
|
1058 |
<h4> |
|
|
1059 |
<a name="event_testsuitecomplete">testsuitecomplete</a></h4> |
|
|
1060 |
<div class="detail"> |
|
|
1061 |
<code> |
|
|
1062 |
|
|
|
1063 |
static |
|
|
1064 |
|
|
|
1065 |
<strong property="yui:name">testsuitecomplete</strong> |
|
|
1066 |
|
|
|
1067 |
( |
|
|
1068 |
) |
|
|
1069 |
|
|
|
1070 |
</code> |
|
|
1071 |
|
|
|
1072 |
<div class="description" property="yui:description"> |
|
|
1073 |
Fires when all test cases in a test suite have been |
|
|
1074 |
completed. |
|
|
1075 |
</div> |
|
|
1076 |
|
|
|
1077 |
<div class="description"> |
|
|
1078 |
|
|
|
1079 |
|
|
|
1080 |
|
|
|
1081 |
|
|
|
1082 |
</div> |
|
|
1083 |
|
|
|
1084 |
</div> |
|
|
1085 |
<hr /> |
|
|
1086 |
</div> |
|
|
1087 |
</div> |
|
|
1088 |
</div> |
|
|
1089 |
|
|
|
1090 |
|
|
|
1091 |
</div> |
|
|
1092 |
|
|
|
1093 |
<div rel="yui:attributes" resource="#configattributes"> |
|
|
1094 |
|
|
|
1095 |
</div> |
|
|
1096 |
|
|
|
1097 |
</div> |
|
|
1098 |
</div> |
|
|
1099 |
<div class="yui-b"> |
|
|
1100 |
<div class="nav"> |
|
|
1101 |
|
|
|
1102 |
<div id="moduleList" class="module"> |
|
|
1103 |
<h4>Modules</h4> |
|
|
1104 |
<ul class="content"> |
|
|
1105 |
<li class=""><a href="module_anim.html" title="anim">anim</a></li> |
|
|
1106 |
<li class=""><a href="module_async-queue.html" title="async-queue">async-queue</a></li> |
|
|
1107 |
<li class=""><a href="module_attribute.html" title="attribute">attribute</a></li> |
|
|
1108 |
<li class=""><a href="module_base.html" title="base">base</a></li> |
|
|
1109 |
<li class=""><a href="module_cache.html" title="cache">cache</a></li> |
|
|
1110 |
<li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li> |
|
|
1111 |
<li class=""><a href="module_collection.html" title="collection">collection</a></li> |
|
|
1112 |
<li class=""><a href="module_console.html" title="console">console</a></li> |
|
|
1113 |
<li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li> |
|
|
1114 |
<li class=""><a href="module_cookie.html" title="cookie">cookie</a></li> |
|
|
1115 |
<li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li> |
|
|
1116 |
<li class=""><a href="module_datasource.html" title="datasource">datasource</a></li> |
|
|
1117 |
<li class=""><a href="module_datatype.html" title="datatype">datatype</a></li> |
|
|
1118 |
<li class=""><a href="module_dd.html" title="dd">dd</a></li> |
|
|
1119 |
<li class=""><a href="module_dom.html" title="dom">dom</a></li> |
|
|
1120 |
<li class=""><a href="module_dump.html" title="dump">dump</a></li> |
|
|
1121 |
<li class=""><a href="module_event.html" title="event">event</a></li> |
|
|
1122 |
<li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li> |
|
|
1123 |
<li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li> |
|
|
1124 |
<li class=""><a href="module_history.html" title="history">history</a></li> |
|
|
1125 |
<li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li> |
|
|
1126 |
<li class=""><a href="module_io.html" title="io">io</a></li> |
|
|
1127 |
<li class=""><a href="module_json.html" title="json">json</a></li> |
|
|
1128 |
<li class=""><a href="module_node.html" title="node">node</a></li> |
|
|
1129 |
<li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li> |
|
|
1130 |
<li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li> |
|
|
1131 |
<li class=""><a href="module_oop.html" title="oop">oop</a></li> |
|
|
1132 |
<li class=""><a href="module_overlay.html" title="overlay">overlay</a></li> |
|
|
1133 |
<li class=""><a href="module_plugin.html" title="plugin">plugin</a></li> |
|
|
1134 |
<li class=""><a href="module_profiler.html" title="profiler">profiler</a></li> |
|
|
1135 |
<li class=""><a href="module_queue-promote.html" title="queue-promote">queue-promote</a></li> |
|
|
1136 |
<li class=""><a href="module_slider.html" title="slider">slider</a></li> |
|
|
1137 |
<li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li> |
|
|
1138 |
<li class=""><a href="module_substitute.html" title="substitute">substitute</a></li> |
|
|
1139 |
<li class="selected"><a href="module_test.html" title="test">test</a></li> |
|
|
1140 |
<li class=""><a href="module_widget.html" title="widget">widget</a></li> |
|
|
1141 |
<li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li> |
|
|
1142 |
<li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li> |
|
|
1143 |
<li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li> |
|
|
1144 |
<li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li> |
|
|
1145 |
<li class=""><a href="module_yui.html" title="yui">yui</a></li> |
|
|
1146 |
</ul> |
|
|
1147 |
</div> |
|
|
1148 |
|
|
|
1149 |
<div id="classList" class="module"> |
|
|
1150 |
<h4>Classes</h4> |
|
|
1151 |
<ul class="content"> |
|
|
1152 |
<li class=""><a href="Assert.html" title="Assert">Assert</a></li> |
|
|
1153 |
<li class=""><a href="Assert.ComparisonFailure.html" title="Assert.ComparisonFailure">Assert.ComparisonFailure</a></li> |
|
|
1154 |
<li class=""><a href="Assert.Error.html" title="Assert.Error">Assert.Error</a></li> |
|
|
1155 |
<li class=""><a href="Assert.ObjectAssert.html" title="Assert.ObjectAssert">Assert.ObjectAssert</a></li> |
|
|
1156 |
<li class=""><a href="Assert.ShouldError.html" title="Assert.ShouldError">Assert.ShouldError</a></li> |
|
|
1157 |
<li class=""><a href="Assert.ShouldFail.html" title="Assert.ShouldFail">Assert.ShouldFail</a></li> |
|
|
1158 |
<li class=""><a href="Assert.UnexpectedError.html" title="Assert.UnexpectedError">Assert.UnexpectedError</a></li> |
|
|
1159 |
<li class=""><a href="Assert.UnexpectedValue.html" title="Assert.UnexpectedValue">Assert.UnexpectedValue</a></li> |
|
|
1160 |
<li class=""><a href="Test.ArrayAssert.html" title="Test.ArrayAssert">Test.ArrayAssert</a></li> |
|
|
1161 |
<li class=""><a href="Test.Case.html" title="Test.Case">Test.Case</a></li> |
|
|
1162 |
<li class=""><a href="Test.DateAssert.html" title="Test.DateAssert">Test.DateAssert</a></li> |
|
|
1163 |
<li class=""><a href="Test.Format.Mock.html" title="Test.Format.Mock">Test.Format.Mock</a></li> |
|
|
1164 |
<li class=""><a href="Test.Manager.html" title="Test.Manager">Test.Manager</a></li> |
|
|
1165 |
<li class=""><a href="Test.Reporter.html" title="Test.Reporter">Test.Reporter</a></li> |
|
|
1166 |
<li class="selected"><a href="Test.Runner.html" title="Test.Runner">Test.Runner</a></li> |
|
|
1167 |
<li class=""><a href="Test.Suite.html" title="Test.Suite">Test.Suite</a></li> |
|
|
1168 |
<li class=""><a href="Test.TestNode.html" title="Test.TestNode">Test.TestNode</a></li> |
|
|
1169 |
<li class=""><a href="Test.Wait.html" title="Test.Wait">Test.Wait</a></li> |
|
|
1170 |
</ul> |
|
|
1171 |
</div> |
|
|
1172 |
|
|
|
1173 |
<div id="fileList" class="module"> |
|
|
1174 |
<h4>Files</h4> |
|
|
1175 |
<ul class="content"> |
|
|
1176 |
<li class=""><a href="ArrayAssert.js.html" title="ArrayAssert.js">ArrayAssert.js</a></li> |
|
|
1177 |
<li class=""><a href="Assert.js.html" title="Assert.js">Assert.js</a></li> |
|
|
1178 |
<li class=""><a href="DateAssert.js.html" title="DateAssert.js">DateAssert.js</a></li> |
|
|
1179 |
<li class=""><a href="Mock.js.html" title="Mock.js">Mock.js</a></li> |
|
|
1180 |
<li class=""><a href="ObjectAssert.js.html" title="ObjectAssert.js">ObjectAssert.js</a></li> |
|
|
1181 |
<li class=""><a href="TestCase.js.html" title="TestCase.js">TestCase.js</a></li> |
|
|
1182 |
<li class=""><a href="TestFormat.js.html" title="TestFormat.js">TestFormat.js</a></li> |
|
|
1183 |
<li class=""><a href="TestManager.js.html" title="TestManager.js">TestManager.js</a></li> |
|
|
1184 |
<li class=""><a href="TestReporter.js.html" title="TestReporter.js">TestReporter.js</a></li> |
|
|
1185 |
<li class=""><a href="TestRunner.js.html" title="TestRunner.js">TestRunner.js</a></li> |
|
|
1186 |
<li class=""><a href="TestSuite.js.html" title="TestSuite.js">TestSuite.js</a></li> |
|
|
1187 |
</ul> |
|
|
1188 |
</div> |
|
|
1189 |
|
|
|
1190 |
<div id="propertyList" class="module"> |
|
|
1191 |
<h4>Properties</h4> |
|
|
1192 |
<ul class="content"> |
|
|
1193 |
<li class="private"><a href="#property__cur" title="_cur">_cur</a></li> |
|
|
1194 |
<li class="private"><a href="#property__log" title="_log">_log</a></li> |
|
|
1195 |
<li class="private"><a href="#property__root" title="_root">_root</a></li> |
|
|
1196 |
<li class="private"><a href="#property__waiting" title="_waiting">_waiting</a></li> |
|
|
1197 |
<li class="private"><a href="#property_masterSuite" title="masterSuite">masterSuite</a></li> |
|
|
1198 |
</ul> |
|
|
1199 |
</div> |
|
|
1200 |
|
|
|
1201 |
<div id="methodsList" class="module"> |
|
|
1202 |
<h4>Methods</h4> |
|
|
1203 |
<ul class="content"> |
|
|
1204 |
<li class="private"><a href="#method__addTestCaseToTestTree" title="_addTestCaseToTestTree">_addTestCaseToTestTree</a></li> |
|
|
1205 |
<li class="private"><a href="#method__addTestSuiteToTestTree" title="_addTestSuiteToTestTree">_addTestSuiteToTestTree</a></li> |
|
|
1206 |
<li class="private"><a href="#method__buildTestTree" title="_buildTestTree">_buildTestTree</a></li> |
|
|
1207 |
<li class="private"><a href="#method__handleError" title="_handleError">_handleError</a></li> |
|
|
1208 |
<li class="private"><a href="#method__handleTestObjectComplete" title="_handleTestObjectComplete">_handleTestObjectComplete</a></li> |
|
|
1209 |
<li class="private"><a href="#method__logEvent" title="_logEvent">_logEvent</a></li> |
|
|
1210 |
<li class="private"><a href="#method__next" title="_next">_next</a></li> |
|
|
1211 |
<li class="private"><a href="#method__run" title="_run">_run</a></li> |
|
|
1212 |
<li class="private"><a href="#method__runTest" title="_runTest">_runTest</a></li> |
|
|
1213 |
<li class=""><a href="#method_add" title="add">add</a></li> |
|
|
1214 |
<li class=""><a href="#method_clear" title="clear">clear</a></li> |
|
|
1215 |
<li class=""><a href="#method_disableLogging" title="disableLogging">disableLogging</a></li> |
|
|
1216 |
<li class=""><a href="#method_enableLogging" title="enableLogging">enableLogging</a></li> |
|
|
1217 |
<li class=""><a href="#method_isWaiting" title="isWaiting">isWaiting</a></li> |
|
|
1218 |
<li class=""><a href="#method_resume" title="resume">resume</a></li> |
|
|
1219 |
<li class=""><a href="#method_run" title="run">run</a></li> |
|
|
1220 |
</ul> |
|
|
1221 |
</div> |
|
|
1222 |
|
|
|
1223 |
<div id="eventsList" class="module"> |
|
|
1224 |
<h4>Events</h4> |
|
|
1225 |
<ul class="content"> |
|
|
1226 |
<li class=""><a href="#event_begin" title="begin">begin</a></li> |
|
|
1227 |
<li class=""><a href="#event_complete" title="complete">complete</a></li> |
|
|
1228 |
<li class=""><a href="#event_fail" title="fail">fail</a></li> |
|
|
1229 |
<li class=""><a href="#event_ignore" title="ignore">ignore</a></li> |
|
|
1230 |
<li class=""><a href="#event_pass" title="pass">pass</a></li> |
|
|
1231 |
<li class=""><a href="#event_testcasebegin" title="testcasebegin">testcasebegin</a></li> |
|
|
1232 |
<li class=""><a href="#event_testcasecomplete" title="testcasecomplete">testcasecomplete</a></li> |
|
|
1233 |
<li class=""><a href="#event_testsuitebegin" title="testsuitebegin">testsuitebegin</a></li> |
|
|
1234 |
<li class=""><a href="#event_testsuitecomplete" title="testsuitecomplete">testsuitecomplete</a></li> |
|
|
1235 |
</ul> |
|
|
1236 |
</div> |
|
|
1237 |
|
|
|
1238 |
|
|
|
1239 |
</div> |
|
|
1240 |
</div> |
|
|
1241 |
</div> |
|
|
1242 |
<div id="ft"> |
|
|
1243 |
<hr /> |
|
|
1244 |
Copyright © 2009 Yahoo! Inc. All rights reserved. |
|
|
1245 |
</div> |
|
|
1246 |
</div> |
|
|
1247 |
<script type="text/javascript"> |
|
|
1248 |
ALL_YUI_PROPS = [{"access": "", "host": "Assert.ComparisonFailure", "name": "actual", "url": "Assert.ComparisonFailure.html#property_actual", "type": "property"}, {"access": "", "host": "Test.Suite", "name": "add", "url": "Test.Suite.html#method_add", "type": "method"}, {"access": "", "host": "Test.Runner", "name": "add", "url": "Test.Runner.html#method_add", "type": "method"}, {"access": "private", "host": "Test.Runner", "name": "_addTestCaseToTestTree", "url": "Test.Runner.html#method__addTestCaseToTestTree", "type": "method"}, {"access": "private", "host": "Test.Runner", "name": "_addTestSuiteToTestTree", "url": "Test.Runner.html#method__addTestSuiteToTestTree", "type": "method"}, {"access": "", "host": "Test.TestNode", "name": "appendChild", "url": "Test.TestNode.html#method_appendChild", "type": "method"}, {"access": "", "host": "Assert", "name": "areEqual", "url": "Assert.html#method_areEqual", "type": "method"}, {"access": "", "host": "Assert", "name": "areNotEqual", "url": "Assert.html#method_areNotEqual", "type": "method"}, {"access": "", "host": "Assert", "name": "areNotSame", "url": "Assert.html#method_areNotSame", "type": "method"}, {"access": "", "host": "Assert", "name": "areSame", "url": "Assert.html#method_areSame", "type": "method"}, {"access": "private", "host": "Assert", "name": "_asserts", "url": "Assert.html#property__asserts", "type": "property"}, {"access": "", "host": "Test.Runner", "name": "begin", "url": "Test.Runner.html#event_begin", "type": "event"}, {"access": "private", "host": "Test.Runner", "name": "_buildTestTree", "url": "Test.Runner.html#method__buildTestTree", "type": "method"}, {"access": "", "host": "Assert.UnexpectedError", "name": "cause", "url": "Assert.UnexpectedError.html#property_cause", "type": "property"}, {"access": "", "host": "Test.Runner", "name": "clear", "url": "Test.Runner.html#method_clear", "type": "method"}, {"access": "", "host": "Test.Runner", "name": "complete", "url": "Test.Runner.html#event_complete", "type": "event"}, {"access": "private", "host": "Test.Runner", "name": "_cur", "url": "Test.Runner.html#property__cur", "type": "property"}, {"access": "", "host": "Test.Wait", "name": "delay", "url": "Test.Wait.html#property_delay", "type": "property"}, {"access": "", "host": "Test.Runner", "name": "disableLogging", "url": "Test.Runner.html#method_disableLogging", "type": "method"}, {"access": "", "host": "Test.Runner", "name": "enableLogging", "url": "Test.Runner.html#method_enableLogging", "type": "method"}, {"access": "", "host": "Test.Format.Mock", "name": "expect", "url": "Test.Format.Mock.html#method_expect", "type": "method"}, {"access": "", "host": "Assert.ComparisonFailure", "name": "expected", "url": "Assert.ComparisonFailure.html#property_expected", "type": "property"}, {"access": "", "host": "Assert", "name": "fail", "url": "Assert.html#method_fail", "type": "method"}, {"access": "", "host": "Test.Runner", "name": "fail", "url": "Test.Runner.html#event_fail", "type": "event"}, {"access": "", "host": "Test.TestNode", "name": "firstChild", "url": "Test.TestNode.html#property_firstChild", "type": "property"}, {"access": "protected", "host": "Assert", "name": "_formatMessage", "url": "Assert.html#method__formatMessage", "type": "method"}, {"access": "protected", "host": "Assert", "name": "_getCount", "url": "Assert.html#method__getCount", "type": "method"}, {"access": "", "host": "Assert.Error", "name": "getMessage", "url": "Assert.Error.html#method_getMessage", "type": "method"}, {"access": "", "host": "Assert.UnexpectedValue", "name": "getMessage", "url": "Assert.UnexpectedValue.html#method_getMessage", "type": "method"}, {"access": "private", "host": "Test.Runner", "name": "_handleError", "url": "Test.Runner.html#method__handleError", "type": "method"}, {"access": "private", "host": "Test.Runner", "name": "_handleTestObjectComplete", "url": "Test.Runner.html#method__handleTestObjectComplete", "type": "method"}, {"access": "", "host": "Assert.ObjectAssert", "name": "hasKey", "url": "Assert.ObjectAssert.html#method_hasKey", "type": "method"}, {"access": "", "host": "Assert.ObjectAssert", "name": "hasKeys", "url": "Assert.ObjectAssert.html#method_hasKeys", "type": "method"}, {"access": "", "host": "Test.Runner", "name": "ignore", "url": "Test.Runner.html#event_ignore", "type": "event"}, {"access": "protected", "host": "Assert", "name": "_increment", "url": "Assert.html#method__increment", "type": "method"}, {"access": "", "host": "Assert", "name": "isArray", "url": "Assert.html#method_isArray", "type": "method"}, {"access": "", "host": "Assert", "name": "isBoolean", "url": "Assert.html#method_isBoolean", "type": "method"}, {"access": "", "host": "Assert", "name": "isFalse", "url": "Assert.html#method_isFalse", "type": "method"}, {"access": "", "host": "Assert", "name": "isFunction", "url": "Assert.html#method_isFunction", "type": "method"}, {"access": "", "host": "Assert", "name": "isInstanceOf", "url": "Assert.html#method_isInstanceOf", "type": "method"}, {"access": "", "host": "Assert", "name": "isNaN", "url": "Assert.html#method_isNaN", "type": "method"}, {"access": "", "host": "Assert", "name": "isNotNaN", "url": "Assert.html#method_isNotNaN", "type": "method"}, {"access": "", "host": "Assert", "name": "isNotNull", "url": "Assert.html#method_isNotNull", "type": "method"}, {"access": "", "host": "Assert", "name": "isNotUndefined", "url": "Assert.html#method_isNotUndefined", "type": "method"}, {"access": "", "host": "Assert", "name": "isNull", "url": "Assert.html#method_isNull", "type": "method"}, {"access": "", "host": "Assert", "name": "isNumber", "url": "Assert.html#method_isNumber", "type": "method"}, {"access": "", "host": "Assert", "name": "isObject", "url": "Assert.html#method_isObject", "type": "method"}, {"access": "", "host": "Assert", "name": "isString", "url": "Assert.html#method_isString", "type": "method"}, {"access": "", "host": "Assert", "name": "isTrue", "url": "Assert.html#method_isTrue", "type": "method"}, {"access": "", "host": "Assert", "name": "isTypeOf", "url": "Assert.html#method_isTypeOf", "type": "method"}, {"access": "", "host": "Assert", "name": "isUndefined", "url": "Assert.html#method_isUndefined", "type": "method"}, {"access": "", "host": "Test.Runner", "name": "isWaiting", "url": "Test.Runner.html#method_isWaiting", "type": "method"}, {"access": "private", "host": "Test.Suite", "name": "items", "url": "Test.Suite.html#property_items", "type": "property"}, {"access": "", "host": "Test.Suite", "name": "JSON", "url": "Test.Suite.html#method_JSON", "type": "method"}, {"access": "", "host": "Test.Suite", "name": "JUnitXML", "url": "Test.Suite.html#method_JUnitXML", "type": "method"}, {"access": "", "host": "Test.TestNode", "name": "lastChild", "url": "Test.TestNode.html#property_lastChild", "type": "property"}, {"access": "private", "host": "Test.Runner", "name": "_log", "url": "Test.Runner.html#property__log", "type": "property"}, {"access": "private", "host": "Test.Runner", "name": "_logEvent", "url": "Test.Runner.html#method__logEvent", "type": "method"}, {"access": "private", "host": "Test.Runner", "name": "masterSuite", "url": "Test.Runner.html#property_masterSuite", "type": "property"}, {"access": "", "host": "Assert.Error", "name": "name", "url": "Assert.Error.html#property_name", "type": "property"}, {"access": "", "host": "Assert.ComparisonFailure", "name": "name", "url": "Assert.ComparisonFailure.html#property_name", "type": "property"}, {"access": "", "host": "Assert.UnexpectedValue", "name": "name", "url": "Assert.UnexpectedValue.html#property_name", "type": "property"}, {"access": "", "host": "Assert.ShouldFail", "name": "name", "url": "Assert.ShouldFail.html#property_name", "type": "property"}, {"access": "", "host": "Assert.ShouldError", "name": "name", "url": "Assert.ShouldError.html#property_name", "type": "property"}, {"access": "", "host": "Assert.UnexpectedError", "name": "name", "url": "Assert.UnexpectedError.html#property_name", "type": "property"}, {"access": "", "host": "Test.Suite", "name": "name", "url": "Test.Suite.html#property_name", "type": "property"}, {"access": "", "host": "Test.Case", "name": "name", "url": "Test.Case.html#property_name", "type": "property"}, {"access": "", "host": "Test.TestNode", "name": "next", "url": "Test.TestNode.html#property_next", "type": "property"}, {"access": "private", "host": "Test.Runner", "name": "_next", "url": "Test.Runner.html#method__next", "type": "method"}, {"access": "", "host": "Assert.ObjectAssert", "name": "ownsKey", "url": "Assert.ObjectAssert.html#method_ownsKey", "type": "method"}, {"access": "", "host": "Assert.ObjectAssert", "name": "ownsKeys", "url": "Assert.ObjectAssert.html#method_ownsKeys", "type": "method"}, {"access": "", "host": "Assert.ObjectAssert", "name": "ownsNoKeys", "url": "Assert.ObjectAssert.html#method_ownsNoKeys", "type": "method"}, {"access": "", "host": "Test.TestNode", "name": "parent", "url": "Test.TestNode.html#property_parent", "type": "property"}, {"access": "", "host": "Test.Runner", "name": "pass", "url": "Test.Runner.html#event_pass", "type": "event"}, {"access": "protected", "host": "Assert", "name": "_reset", "url": "Assert.html#method__reset", "type": "method"}, {"access": "", "host": "Test.TestNode", "name": "results", "url": "Test.TestNode.html#property_results", "type": "property"}, {"access": "", "host": "Test.Case", "name": "resume", "url": "Test.Case.html#method_resume", "type": "method"}, {"access": "", "host": "Test.Runner", "name": "resume", "url": "Test.Runner.html#method_resume", "type": "method"}, {"access": "private", "host": "Test.Runner", "name": "_root", "url": "Test.Runner.html#property__root", "type": "property"}, {"access": "private", "host": "Test.Runner", "name": "_run", "url": "Test.Runner.html#method__run", "type": "method"}, {"access": "", "host": "Test.Runner", "name": "run", "url": "Test.Runner.html#method_run", "type": "method"}, {"access": "private", "host": "Test.Runner", "name": "_runTest", "url": "Test.Runner.html#method__runTest", "type": "method"}, {"access": "", "host": "Test.Wait", "name": "segment", "url": "Test.Wait.html#property_segment", "type": "property"}, {"access": "", "host": "Test.Suite", "name": "setUp", "url": "Test.Suite.html#method_setUp", "type": "method"}, {"access": "", "host": "Test.Case", "name": "setUp", "url": "Test.Case.html#method_setUp", "type": "method"}, {"access": "", "host": "Test.Case", "name": "_should", "url": "Test.Case.html#property__should", "type": "property"}, {"access": "", "host": "Assert.UnexpectedError", "name": "stack", "url": "Assert.UnexpectedError.html#property_stack", "type": "property"}, {"access": "", "host": "Test.Suite", "name": "tearDown", "url": "Test.Suite.html#method_tearDown", "type": "method"}, {"access": "", "host": "Test.Case", "name": "tearDown", "url": "Test.Case.html#method_tearDown", "type": "method"}, {"access": "", "host": "Test.Runner", "name": "testcasebegin", "url": "Test.Runner.html#event_testcasebegin", "type": "event"}, {"access": "", "host": "Test.Runner", "name": "testcasecomplete", "url": "Test.Runner.html#event_testcasecomplete", "type": "event"}, {"access": "", "host": "Test.TestNode", "name": "testObject", "url": "Test.TestNode.html#property_testObject", "type": "property"}, {"access": "", "host": "Test.Runner", "name": "testsuitebegin", "url": "Test.Runner.html#event_testsuitebegin", "type": "event"}, {"access": "", "host": "Test.Runner", "name": "testsuitecomplete", "url": "Test.Runner.html#event_testsuitecomplete", "type": "event"}, {"access": "", "host": "Assert.Error", "name": "toString", "url": "Assert.Error.html#method_toString", "type": "method"}, {"access": "", "host": "Assert.ComparisonFailure", "name": "toString", "url": "Assert.ComparisonFailure.html#method_toString", "type": "method"}, {"access": "", "host": "Assert.UnexpectedValue", "name": "unexpected", "url": "Assert.UnexpectedValue.html#property_unexpected", "type": "property"}, {"access": "", "host": "Assert.Error", "name": "valueOf", "url": "Assert.Error.html#method_valueOf", "type": "method"}, {"access": "", "host": "Test.Format.Mock", "name": "verify", "url": "Test.Format.Mock.html#method_verify", "type": "method"}, {"access": "", "host": "Test.Case", "name": "wait", "url": "Test.Case.html#method_wait", "type": "method"}, {"access": "private", "host": "Test.Runner", "name": "_waiting", "url": "Test.Runner.html#property__waiting", "type": "property"}, {"access": "", "host": "Test.Suite", "name": "XML", "url": "Test.Suite.html#method_XML", "type": "method"}, {"access": "", "host": "Assert", "name": "Y.assert", "url": "Assert.html#method_Y.assert", "type": "method"}, {"access": "", "host": "Assert", "name": "Y.fail", "url": "Assert.html#method_Y.fail", "type": "method"}]; |
|
|
1249 |
</script> |
|
|
1250 |
</body> |
|
|
1251 |
</html> |