|
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 Assert (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 > Assert |
|
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">Assert</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 The Assert object provides functions to test JavaScript values against |
|
63 known and expected results. Whenever a comparison (assertion) fails, |
|
64 an error is thrown. |
|
65 </div> |
|
66 |
|
67 |
|
68 <div rel="yui:properties" resource="#properties"> |
|
69 <div class="section field details"> |
|
70 <h3 id="properties">Properties</h3> |
|
71 <div class="content"> |
|
72 <div class="private" rel="yui:property" resource="#property__asserts"> |
|
73 <h4><a name="property__asserts" property="yui:name">_asserts</a> |
|
74 - <code>private <span property="yui:type">int</span></code> |
|
75 </h4> |
|
76 <div class="detail"> |
|
77 <div class="description" property="yui:description"> |
|
78 The number of assertions performed. |
|
79 </div> |
|
80 </div> |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 <hr /> |
|
86 </div> |
|
87 </div> |
|
88 </div> |
|
89 |
|
90 </div> |
|
91 |
|
92 <div rel="yui:methods" resource="#methods"> |
|
93 <div class="section method details"> |
|
94 <h3 id="methods">Methods</h3> |
|
95 <div class="content"> |
|
96 <div class="protected" rel="yui:method" resource="#method__formatMessage"> |
|
97 <h4> |
|
98 <a name="method__formatMessage">_formatMessage</a></h4> |
|
99 <div class="detail" > |
|
100 <code> |
|
101 protected |
|
102 static |
|
103 |
|
104 String |
|
105 <strong property="yui:name">_formatMessage</strong> |
|
106 ( |
|
107 |
|
108 |
|
109 customMessage |
|
110 |
|
111 |
|
112 , |
|
113 defaultMessage |
|
114 |
|
115 |
|
116 ) |
|
117 </code> |
|
118 |
|
119 <div class="description" property="yui:description"> |
|
120 Formats a message so that it can contain the original assertion message |
|
121 in addition to the custom message. |
|
122 </div> |
|
123 |
|
124 <div class="description"> |
|
125 |
|
126 <dl rel="yui:parameters"> |
|
127 <dt>Parameters:</dt> |
|
128 <dd rel="yui:parameter"> |
|
129 <code><span property="yui:name">customMessage</span> |
|
130 <<span property="yui:type">String</span>> |
|
131 </code> |
|
132 <span property="yui:description"> The message passed in by the developer.</span> |
|
133 </dd> |
|
134 <dd rel="yui:parameter"> |
|
135 <code><span property="yui:name">defaultMessage</span> |
|
136 <<span property="yui:type">String</span>> |
|
137 </code> |
|
138 <span property="yui:description"> The message created by the error by default.</span> |
|
139 </dd> |
|
140 </dl> |
|
141 |
|
142 <dl> |
|
143 <dt>Returns: |
|
144 <code property="yui:return"> |
|
145 String |
|
146 </code></dt> |
|
147 <dd property="yui:returnInfo">The final error message, containing either or both.</dd> |
|
148 </dl> |
|
149 |
|
150 |
|
151 |
|
152 |
|
153 </div> |
|
154 |
|
155 </div> |
|
156 <hr /> |
|
157 </div> |
|
158 <div class="protected" rel="yui:method" resource="#method__getCount"> |
|
159 <h4> |
|
160 <a name="method__getCount">_getCount</a></h4> |
|
161 <div class="detail" > |
|
162 <code> |
|
163 protected |
|
164 static |
|
165 |
|
166 void |
|
167 <strong property="yui:name">_getCount</strong> |
|
168 ( |
|
169 ) |
|
170 </code> |
|
171 |
|
172 <div class="description" property="yui:description"> |
|
173 Returns the number of assertions that have been performed. |
|
174 </div> |
|
175 |
|
176 <div class="description"> |
|
177 |
|
178 |
|
179 |
|
180 |
|
181 |
|
182 |
|
183 </div> |
|
184 |
|
185 </div> |
|
186 <hr /> |
|
187 </div> |
|
188 <div class="protected" rel="yui:method" resource="#method__increment"> |
|
189 <h4> |
|
190 <a name="method__increment">_increment</a></h4> |
|
191 <div class="detail" > |
|
192 <code> |
|
193 protected |
|
194 static |
|
195 |
|
196 void |
|
197 <strong property="yui:name">_increment</strong> |
|
198 ( |
|
199 ) |
|
200 </code> |
|
201 |
|
202 <div class="description" property="yui:description"> |
|
203 Increments the number of assertions that have been performed. |
|
204 </div> |
|
205 |
|
206 <div class="description"> |
|
207 |
|
208 |
|
209 |
|
210 |
|
211 |
|
212 |
|
213 </div> |
|
214 |
|
215 </div> |
|
216 <hr /> |
|
217 </div> |
|
218 <div class="protected" rel="yui:method" resource="#method__reset"> |
|
219 <h4> |
|
220 <a name="method__reset">_reset</a></h4> |
|
221 <div class="detail" > |
|
222 <code> |
|
223 protected |
|
224 static |
|
225 |
|
226 void |
|
227 <strong property="yui:name">_reset</strong> |
|
228 ( |
|
229 ) |
|
230 </code> |
|
231 |
|
232 <div class="description" property="yui:description"> |
|
233 Resets the number of assertions that have been performed to 0. |
|
234 </div> |
|
235 |
|
236 <div class="description"> |
|
237 |
|
238 |
|
239 |
|
240 |
|
241 |
|
242 |
|
243 </div> |
|
244 |
|
245 </div> |
|
246 <hr /> |
|
247 </div> |
|
248 <div class="" rel="yui:method" resource="#method_areEqual"> |
|
249 <h4> |
|
250 <a name="method_areEqual">areEqual</a></h4> |
|
251 <div class="detail" > |
|
252 <code> |
|
253 |
|
254 static |
|
255 |
|
256 void |
|
257 <strong property="yui:name">areEqual</strong> |
|
258 ( |
|
259 |
|
260 |
|
261 expected |
|
262 |
|
263 |
|
264 , |
|
265 actual |
|
266 |
|
267 |
|
268 , |
|
269 message |
|
270 |
|
271 |
|
272 ) |
|
273 </code> |
|
274 |
|
275 <div class="description" property="yui:description"> |
|
276 Asserts that a value is equal to another. This uses the double equals sign |
|
277 so type cohersion may occur. |
|
278 </div> |
|
279 |
|
280 <div class="description"> |
|
281 |
|
282 <dl rel="yui:parameters"> |
|
283 <dt>Parameters:</dt> |
|
284 <dd rel="yui:parameter"> |
|
285 <code><span property="yui:name">expected</span> |
|
286 <<span property="yui:type">Object</span>> |
|
287 </code> |
|
288 <span property="yui:description"> The expected value.</span> |
|
289 </dd> |
|
290 <dd rel="yui:parameter"> |
|
291 <code><span property="yui:name">actual</span> |
|
292 <<span property="yui:type">Object</span>> |
|
293 </code> |
|
294 <span property="yui:description"> The actual value to test.</span> |
|
295 </dd> |
|
296 <dd rel="yui:parameter"> |
|
297 <code><span property="yui:name">message</span> |
|
298 <<span property="yui:type">String</span>> |
|
299 </code> |
|
300 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
301 </dd> |
|
302 </dl> |
|
303 |
|
304 |
|
305 |
|
306 |
|
307 |
|
308 </div> |
|
309 |
|
310 </div> |
|
311 <hr /> |
|
312 </div> |
|
313 <div class="" rel="yui:method" resource="#method_areNotEqual"> |
|
314 <h4> |
|
315 <a name="method_areNotEqual">areNotEqual</a></h4> |
|
316 <div class="detail" > |
|
317 <code> |
|
318 |
|
319 static |
|
320 |
|
321 void |
|
322 <strong property="yui:name">areNotEqual</strong> |
|
323 ( |
|
324 |
|
325 |
|
326 unexpected |
|
327 |
|
328 |
|
329 , |
|
330 actual |
|
331 |
|
332 |
|
333 , |
|
334 message |
|
335 |
|
336 |
|
337 ) |
|
338 </code> |
|
339 |
|
340 <div class="description" property="yui:description"> |
|
341 Asserts that a value is not equal to another. This uses the double equals sign |
|
342 so type cohersion may occur. |
|
343 </div> |
|
344 |
|
345 <div class="description"> |
|
346 |
|
347 <dl rel="yui:parameters"> |
|
348 <dt>Parameters:</dt> |
|
349 <dd rel="yui:parameter"> |
|
350 <code><span property="yui:name">unexpected</span> |
|
351 <<span property="yui:type">Object</span>> |
|
352 </code> |
|
353 <span property="yui:description"> The unexpected value.</span> |
|
354 </dd> |
|
355 <dd rel="yui:parameter"> |
|
356 <code><span property="yui:name">actual</span> |
|
357 <<span property="yui:type">Object</span>> |
|
358 </code> |
|
359 <span property="yui:description"> The actual value to test.</span> |
|
360 </dd> |
|
361 <dd rel="yui:parameter"> |
|
362 <code><span property="yui:name">message</span> |
|
363 <<span property="yui:type">String</span>> |
|
364 </code> |
|
365 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
366 </dd> |
|
367 </dl> |
|
368 |
|
369 |
|
370 |
|
371 |
|
372 |
|
373 </div> |
|
374 |
|
375 </div> |
|
376 <hr /> |
|
377 </div> |
|
378 <div class="" rel="yui:method" resource="#method_areNotSame"> |
|
379 <h4> |
|
380 <a name="method_areNotSame">areNotSame</a></h4> |
|
381 <div class="detail" > |
|
382 <code> |
|
383 |
|
384 static |
|
385 |
|
386 void |
|
387 <strong property="yui:name">areNotSame</strong> |
|
388 ( |
|
389 |
|
390 |
|
391 unexpected |
|
392 |
|
393 |
|
394 , |
|
395 actual |
|
396 |
|
397 |
|
398 , |
|
399 message |
|
400 |
|
401 |
|
402 ) |
|
403 </code> |
|
404 |
|
405 <div class="description" property="yui:description"> |
|
406 Asserts that a value is not the same as another. This uses the triple equals sign |
|
407 so no type cohersion may occur. |
|
408 </div> |
|
409 |
|
410 <div class="description"> |
|
411 |
|
412 <dl rel="yui:parameters"> |
|
413 <dt>Parameters:</dt> |
|
414 <dd rel="yui:parameter"> |
|
415 <code><span property="yui:name">unexpected</span> |
|
416 <<span property="yui:type">Object</span>> |
|
417 </code> |
|
418 <span property="yui:description"> The unexpected value.</span> |
|
419 </dd> |
|
420 <dd rel="yui:parameter"> |
|
421 <code><span property="yui:name">actual</span> |
|
422 <<span property="yui:type">Object</span>> |
|
423 </code> |
|
424 <span property="yui:description"> The actual value to test.</span> |
|
425 </dd> |
|
426 <dd rel="yui:parameter"> |
|
427 <code><span property="yui:name">message</span> |
|
428 <<span property="yui:type">String</span>> |
|
429 </code> |
|
430 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
431 </dd> |
|
432 </dl> |
|
433 |
|
434 |
|
435 |
|
436 |
|
437 |
|
438 </div> |
|
439 |
|
440 </div> |
|
441 <hr /> |
|
442 </div> |
|
443 <div class="" rel="yui:method" resource="#method_areSame"> |
|
444 <h4> |
|
445 <a name="method_areSame">areSame</a></h4> |
|
446 <div class="detail" > |
|
447 <code> |
|
448 |
|
449 static |
|
450 |
|
451 void |
|
452 <strong property="yui:name">areSame</strong> |
|
453 ( |
|
454 |
|
455 |
|
456 expected |
|
457 |
|
458 |
|
459 , |
|
460 actual |
|
461 |
|
462 |
|
463 , |
|
464 message |
|
465 |
|
466 |
|
467 ) |
|
468 </code> |
|
469 |
|
470 <div class="description" property="yui:description"> |
|
471 Asserts that a value is the same as another. This uses the triple equals sign |
|
472 so no type cohersion may occur. |
|
473 </div> |
|
474 |
|
475 <div class="description"> |
|
476 |
|
477 <dl rel="yui:parameters"> |
|
478 <dt>Parameters:</dt> |
|
479 <dd rel="yui:parameter"> |
|
480 <code><span property="yui:name">expected</span> |
|
481 <<span property="yui:type">Object</span>> |
|
482 </code> |
|
483 <span property="yui:description"> The expected value.</span> |
|
484 </dd> |
|
485 <dd rel="yui:parameter"> |
|
486 <code><span property="yui:name">actual</span> |
|
487 <<span property="yui:type">Object</span>> |
|
488 </code> |
|
489 <span property="yui:description"> The actual value to test.</span> |
|
490 </dd> |
|
491 <dd rel="yui:parameter"> |
|
492 <code><span property="yui:name">message</span> |
|
493 <<span property="yui:type">String</span>> |
|
494 </code> |
|
495 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
496 </dd> |
|
497 </dl> |
|
498 |
|
499 |
|
500 |
|
501 |
|
502 |
|
503 </div> |
|
504 |
|
505 </div> |
|
506 <hr /> |
|
507 </div> |
|
508 <div class="" rel="yui:method" resource="#method_fail"> |
|
509 <h4> |
|
510 <a name="method_fail">fail</a></h4> |
|
511 <div class="detail" > |
|
512 <code> |
|
513 |
|
514 static |
|
515 |
|
516 void |
|
517 <strong property="yui:name">fail</strong> |
|
518 ( |
|
519 |
|
520 |
|
521 message |
|
522 |
|
523 |
|
524 ) |
|
525 </code> |
|
526 |
|
527 <div class="description" property="yui:description"> |
|
528 Forces an assertion error to occur. |
|
529 </div> |
|
530 |
|
531 <div class="description"> |
|
532 |
|
533 <dl rel="yui:parameters"> |
|
534 <dt>Parameters:</dt> |
|
535 <dd rel="yui:parameter"> |
|
536 <code><span property="yui:name">message</span> |
|
537 <<span property="yui:type">String</span>> |
|
538 </code> |
|
539 <span property="yui:description"> (Optional) The message to display with the failure.</span> |
|
540 </dd> |
|
541 </dl> |
|
542 |
|
543 |
|
544 |
|
545 |
|
546 |
|
547 </div> |
|
548 |
|
549 </div> |
|
550 <hr /> |
|
551 </div> |
|
552 <div class="" rel="yui:method" resource="#method_isArray"> |
|
553 <h4> |
|
554 <a name="method_isArray">isArray</a></h4> |
|
555 <div class="detail" > |
|
556 <code> |
|
557 |
|
558 static |
|
559 |
|
560 void |
|
561 <strong property="yui:name">isArray</strong> |
|
562 ( |
|
563 |
|
564 |
|
565 actual |
|
566 |
|
567 |
|
568 , |
|
569 message |
|
570 |
|
571 |
|
572 ) |
|
573 </code> |
|
574 |
|
575 <div class="description" property="yui:description"> |
|
576 Asserts that a value is an array. |
|
577 </div> |
|
578 |
|
579 <div class="description"> |
|
580 |
|
581 <dl rel="yui:parameters"> |
|
582 <dt>Parameters:</dt> |
|
583 <dd rel="yui:parameter"> |
|
584 <code><span property="yui:name">actual</span> |
|
585 <<span property="yui:type">Object</span>> |
|
586 </code> |
|
587 <span property="yui:description"> The value to test.</span> |
|
588 </dd> |
|
589 <dd rel="yui:parameter"> |
|
590 <code><span property="yui:name">message</span> |
|
591 <<span property="yui:type">String</span>> |
|
592 </code> |
|
593 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
594 </dd> |
|
595 </dl> |
|
596 |
|
597 |
|
598 |
|
599 |
|
600 |
|
601 </div> |
|
602 |
|
603 </div> |
|
604 <hr /> |
|
605 </div> |
|
606 <div class="" rel="yui:method" resource="#method_isBoolean"> |
|
607 <h4> |
|
608 <a name="method_isBoolean">isBoolean</a></h4> |
|
609 <div class="detail" > |
|
610 <code> |
|
611 |
|
612 static |
|
613 |
|
614 void |
|
615 <strong property="yui:name">isBoolean</strong> |
|
616 ( |
|
617 |
|
618 |
|
619 actual |
|
620 |
|
621 |
|
622 , |
|
623 message |
|
624 |
|
625 |
|
626 ) |
|
627 </code> |
|
628 |
|
629 <div class="description" property="yui:description"> |
|
630 Asserts that a value is a Boolean. |
|
631 </div> |
|
632 |
|
633 <div class="description"> |
|
634 |
|
635 <dl rel="yui:parameters"> |
|
636 <dt>Parameters:</dt> |
|
637 <dd rel="yui:parameter"> |
|
638 <code><span property="yui:name">actual</span> |
|
639 <<span property="yui:type">Object</span>> |
|
640 </code> |
|
641 <span property="yui:description"> The value to test.</span> |
|
642 </dd> |
|
643 <dd rel="yui:parameter"> |
|
644 <code><span property="yui:name">message</span> |
|
645 <<span property="yui:type">String</span>> |
|
646 </code> |
|
647 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
648 </dd> |
|
649 </dl> |
|
650 |
|
651 |
|
652 |
|
653 |
|
654 |
|
655 </div> |
|
656 |
|
657 </div> |
|
658 <hr /> |
|
659 </div> |
|
660 <div class="" rel="yui:method" resource="#method_isFalse"> |
|
661 <h4> |
|
662 <a name="method_isFalse">isFalse</a></h4> |
|
663 <div class="detail" > |
|
664 <code> |
|
665 |
|
666 static |
|
667 |
|
668 void |
|
669 <strong property="yui:name">isFalse</strong> |
|
670 ( |
|
671 |
|
672 |
|
673 actual |
|
674 |
|
675 |
|
676 , |
|
677 message |
|
678 |
|
679 |
|
680 ) |
|
681 </code> |
|
682 |
|
683 <div class="description" property="yui:description"> |
|
684 Asserts that a value is false. This uses the triple equals sign |
|
685 so no type cohersion may occur. |
|
686 </div> |
|
687 |
|
688 <div class="description"> |
|
689 |
|
690 <dl rel="yui:parameters"> |
|
691 <dt>Parameters:</dt> |
|
692 <dd rel="yui:parameter"> |
|
693 <code><span property="yui:name">actual</span> |
|
694 <<span property="yui:type">Object</span>> |
|
695 </code> |
|
696 <span property="yui:description"> The actual value to test.</span> |
|
697 </dd> |
|
698 <dd rel="yui:parameter"> |
|
699 <code><span property="yui:name">message</span> |
|
700 <<span property="yui:type">String</span>> |
|
701 </code> |
|
702 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
703 </dd> |
|
704 </dl> |
|
705 |
|
706 |
|
707 |
|
708 |
|
709 |
|
710 </div> |
|
711 |
|
712 </div> |
|
713 <hr /> |
|
714 </div> |
|
715 <div class="" rel="yui:method" resource="#method_isFunction"> |
|
716 <h4> |
|
717 <a name="method_isFunction">isFunction</a></h4> |
|
718 <div class="detail" > |
|
719 <code> |
|
720 |
|
721 static |
|
722 |
|
723 void |
|
724 <strong property="yui:name">isFunction</strong> |
|
725 ( |
|
726 |
|
727 |
|
728 actual |
|
729 |
|
730 |
|
731 , |
|
732 message |
|
733 |
|
734 |
|
735 ) |
|
736 </code> |
|
737 |
|
738 <div class="description" property="yui:description"> |
|
739 Asserts that a value is a function. |
|
740 </div> |
|
741 |
|
742 <div class="description"> |
|
743 |
|
744 <dl rel="yui:parameters"> |
|
745 <dt>Parameters:</dt> |
|
746 <dd rel="yui:parameter"> |
|
747 <code><span property="yui:name">actual</span> |
|
748 <<span property="yui:type">Object</span>> |
|
749 </code> |
|
750 <span property="yui:description"> The value to test.</span> |
|
751 </dd> |
|
752 <dd rel="yui:parameter"> |
|
753 <code><span property="yui:name">message</span> |
|
754 <<span property="yui:type">String</span>> |
|
755 </code> |
|
756 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
757 </dd> |
|
758 </dl> |
|
759 |
|
760 |
|
761 |
|
762 |
|
763 |
|
764 </div> |
|
765 |
|
766 </div> |
|
767 <hr /> |
|
768 </div> |
|
769 <div class="" rel="yui:method" resource="#method_isInstanceOf"> |
|
770 <h4> |
|
771 <a name="method_isInstanceOf">isInstanceOf</a></h4> |
|
772 <div class="detail" > |
|
773 <code> |
|
774 |
|
775 static |
|
776 |
|
777 void |
|
778 <strong property="yui:name">isInstanceOf</strong> |
|
779 ( |
|
780 |
|
781 |
|
782 expected |
|
783 |
|
784 |
|
785 , |
|
786 actual |
|
787 |
|
788 |
|
789 , |
|
790 message |
|
791 |
|
792 |
|
793 ) |
|
794 </code> |
|
795 |
|
796 <div class="description" property="yui:description"> |
|
797 Asserts that a value is an instance of a particular object. This may return |
|
798 incorrect results when comparing objects from one frame to constructors in |
|
799 another frame. For best results, don't use in a cross-frame manner. |
|
800 </div> |
|
801 |
|
802 <div class="description"> |
|
803 |
|
804 <dl rel="yui:parameters"> |
|
805 <dt>Parameters:</dt> |
|
806 <dd rel="yui:parameter"> |
|
807 <code><span property="yui:name">expected</span> |
|
808 <<span property="yui:type">Function</span>> |
|
809 </code> |
|
810 <span property="yui:description"> The function that the object should be an instance of.</span> |
|
811 </dd> |
|
812 <dd rel="yui:parameter"> |
|
813 <code><span property="yui:name">actual</span> |
|
814 <<span property="yui:type">Object</span>> |
|
815 </code> |
|
816 <span property="yui:description"> The object to test.</span> |
|
817 </dd> |
|
818 <dd rel="yui:parameter"> |
|
819 <code><span property="yui:name">message</span> |
|
820 <<span property="yui:type">String</span>> |
|
821 </code> |
|
822 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
823 </dd> |
|
824 </dl> |
|
825 |
|
826 |
|
827 |
|
828 |
|
829 |
|
830 </div> |
|
831 |
|
832 </div> |
|
833 <hr /> |
|
834 </div> |
|
835 <div class="" rel="yui:method" resource="#method_isNaN"> |
|
836 <h4> |
|
837 <a name="method_isNaN">isNaN</a></h4> |
|
838 <div class="detail" > |
|
839 <code> |
|
840 |
|
841 static |
|
842 |
|
843 void |
|
844 <strong property="yui:name">isNaN</strong> |
|
845 ( |
|
846 |
|
847 |
|
848 actual |
|
849 |
|
850 |
|
851 , |
|
852 message |
|
853 |
|
854 |
|
855 ) |
|
856 </code> |
|
857 |
|
858 <div class="description" property="yui:description"> |
|
859 Asserts that a value is not a number. |
|
860 </div> |
|
861 |
|
862 <div class="description"> |
|
863 |
|
864 <dl rel="yui:parameters"> |
|
865 <dt>Parameters:</dt> |
|
866 <dd rel="yui:parameter"> |
|
867 <code><span property="yui:name">actual</span> |
|
868 <<span property="yui:type">Object</span>> |
|
869 </code> |
|
870 <span property="yui:description"> The value to test.</span> |
|
871 </dd> |
|
872 <dd rel="yui:parameter"> |
|
873 <code><span property="yui:name">message</span> |
|
874 <<span property="yui:type">String</span>> |
|
875 </code> |
|
876 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
877 </dd> |
|
878 </dl> |
|
879 |
|
880 |
|
881 |
|
882 |
|
883 |
|
884 </div> |
|
885 |
|
886 </div> |
|
887 <hr /> |
|
888 </div> |
|
889 <div class="" rel="yui:method" resource="#method_isNotNaN"> |
|
890 <h4> |
|
891 <a name="method_isNotNaN">isNotNaN</a></h4> |
|
892 <div class="detail" > |
|
893 <code> |
|
894 |
|
895 static |
|
896 |
|
897 void |
|
898 <strong property="yui:name">isNotNaN</strong> |
|
899 ( |
|
900 |
|
901 |
|
902 actual |
|
903 |
|
904 |
|
905 , |
|
906 message |
|
907 |
|
908 |
|
909 ) |
|
910 </code> |
|
911 |
|
912 <div class="description" property="yui:description"> |
|
913 Asserts that a value is not the special NaN value. |
|
914 </div> |
|
915 |
|
916 <div class="description"> |
|
917 |
|
918 <dl rel="yui:parameters"> |
|
919 <dt>Parameters:</dt> |
|
920 <dd rel="yui:parameter"> |
|
921 <code><span property="yui:name">actual</span> |
|
922 <<span property="yui:type">Object</span>> |
|
923 </code> |
|
924 <span property="yui:description"> The value to test.</span> |
|
925 </dd> |
|
926 <dd rel="yui:parameter"> |
|
927 <code><span property="yui:name">message</span> |
|
928 <<span property="yui:type">String</span>> |
|
929 </code> |
|
930 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
931 </dd> |
|
932 </dl> |
|
933 |
|
934 |
|
935 |
|
936 |
|
937 |
|
938 </div> |
|
939 |
|
940 </div> |
|
941 <hr /> |
|
942 </div> |
|
943 <div class="" rel="yui:method" resource="#method_isNotNull"> |
|
944 <h4> |
|
945 <a name="method_isNotNull">isNotNull</a></h4> |
|
946 <div class="detail" > |
|
947 <code> |
|
948 |
|
949 static |
|
950 |
|
951 void |
|
952 <strong property="yui:name">isNotNull</strong> |
|
953 ( |
|
954 |
|
955 |
|
956 actual |
|
957 |
|
958 |
|
959 , |
|
960 message |
|
961 |
|
962 |
|
963 ) |
|
964 </code> |
|
965 |
|
966 <div class="description" property="yui:description"> |
|
967 Asserts that a value is not null. This uses the triple equals sign |
|
968 so no type cohersion may occur. |
|
969 </div> |
|
970 |
|
971 <div class="description"> |
|
972 |
|
973 <dl rel="yui:parameters"> |
|
974 <dt>Parameters:</dt> |
|
975 <dd rel="yui:parameter"> |
|
976 <code><span property="yui:name">actual</span> |
|
977 <<span property="yui:type">Object</span>> |
|
978 </code> |
|
979 <span property="yui:description"> The actual value to test.</span> |
|
980 </dd> |
|
981 <dd rel="yui:parameter"> |
|
982 <code><span property="yui:name">message</span> |
|
983 <<span property="yui:type">String</span>> |
|
984 </code> |
|
985 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
986 </dd> |
|
987 </dl> |
|
988 |
|
989 |
|
990 |
|
991 |
|
992 |
|
993 </div> |
|
994 |
|
995 </div> |
|
996 <hr /> |
|
997 </div> |
|
998 <div class="" rel="yui:method" resource="#method_isNotUndefined"> |
|
999 <h4> |
|
1000 <a name="method_isNotUndefined">isNotUndefined</a></h4> |
|
1001 <div class="detail" > |
|
1002 <code> |
|
1003 |
|
1004 static |
|
1005 |
|
1006 void |
|
1007 <strong property="yui:name">isNotUndefined</strong> |
|
1008 ( |
|
1009 |
|
1010 |
|
1011 actual |
|
1012 |
|
1013 |
|
1014 , |
|
1015 message |
|
1016 |
|
1017 |
|
1018 ) |
|
1019 </code> |
|
1020 |
|
1021 <div class="description" property="yui:description"> |
|
1022 Asserts that a value is not undefined. This uses the triple equals sign |
|
1023 so no type cohersion may occur. |
|
1024 </div> |
|
1025 |
|
1026 <div class="description"> |
|
1027 |
|
1028 <dl rel="yui:parameters"> |
|
1029 <dt>Parameters:</dt> |
|
1030 <dd rel="yui:parameter"> |
|
1031 <code><span property="yui:name">actual</span> |
|
1032 <<span property="yui:type">Object</span>> |
|
1033 </code> |
|
1034 <span property="yui:description"> The actual value to test.</span> |
|
1035 </dd> |
|
1036 <dd rel="yui:parameter"> |
|
1037 <code><span property="yui:name">message</span> |
|
1038 <<span property="yui:type">String</span>> |
|
1039 </code> |
|
1040 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
1041 </dd> |
|
1042 </dl> |
|
1043 |
|
1044 |
|
1045 |
|
1046 |
|
1047 |
|
1048 </div> |
|
1049 |
|
1050 </div> |
|
1051 <hr /> |
|
1052 </div> |
|
1053 <div class="" rel="yui:method" resource="#method_isNull"> |
|
1054 <h4> |
|
1055 <a name="method_isNull">isNull</a></h4> |
|
1056 <div class="detail" > |
|
1057 <code> |
|
1058 |
|
1059 static |
|
1060 |
|
1061 void |
|
1062 <strong property="yui:name">isNull</strong> |
|
1063 ( |
|
1064 |
|
1065 |
|
1066 actual |
|
1067 |
|
1068 |
|
1069 , |
|
1070 message |
|
1071 |
|
1072 |
|
1073 ) |
|
1074 </code> |
|
1075 |
|
1076 <div class="description" property="yui:description"> |
|
1077 Asserts that a value is null. This uses the triple equals sign |
|
1078 so no type cohersion may occur. |
|
1079 </div> |
|
1080 |
|
1081 <div class="description"> |
|
1082 |
|
1083 <dl rel="yui:parameters"> |
|
1084 <dt>Parameters:</dt> |
|
1085 <dd rel="yui:parameter"> |
|
1086 <code><span property="yui:name">actual</span> |
|
1087 <<span property="yui:type">Object</span>> |
|
1088 </code> |
|
1089 <span property="yui:description"> The actual value to test.</span> |
|
1090 </dd> |
|
1091 <dd rel="yui:parameter"> |
|
1092 <code><span property="yui:name">message</span> |
|
1093 <<span property="yui:type">String</span>> |
|
1094 </code> |
|
1095 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
1096 </dd> |
|
1097 </dl> |
|
1098 |
|
1099 |
|
1100 |
|
1101 |
|
1102 |
|
1103 </div> |
|
1104 |
|
1105 </div> |
|
1106 <hr /> |
|
1107 </div> |
|
1108 <div class="" rel="yui:method" resource="#method_isNumber"> |
|
1109 <h4> |
|
1110 <a name="method_isNumber">isNumber</a></h4> |
|
1111 <div class="detail" > |
|
1112 <code> |
|
1113 |
|
1114 static |
|
1115 |
|
1116 void |
|
1117 <strong property="yui:name">isNumber</strong> |
|
1118 ( |
|
1119 |
|
1120 |
|
1121 actual |
|
1122 |
|
1123 |
|
1124 , |
|
1125 message |
|
1126 |
|
1127 |
|
1128 ) |
|
1129 </code> |
|
1130 |
|
1131 <div class="description" property="yui:description"> |
|
1132 Asserts that a value is a number. |
|
1133 </div> |
|
1134 |
|
1135 <div class="description"> |
|
1136 |
|
1137 <dl rel="yui:parameters"> |
|
1138 <dt>Parameters:</dt> |
|
1139 <dd rel="yui:parameter"> |
|
1140 <code><span property="yui:name">actual</span> |
|
1141 <<span property="yui:type">Object</span>> |
|
1142 </code> |
|
1143 <span property="yui:description"> The value to test.</span> |
|
1144 </dd> |
|
1145 <dd rel="yui:parameter"> |
|
1146 <code><span property="yui:name">message</span> |
|
1147 <<span property="yui:type">String</span>> |
|
1148 </code> |
|
1149 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
1150 </dd> |
|
1151 </dl> |
|
1152 |
|
1153 |
|
1154 |
|
1155 |
|
1156 |
|
1157 </div> |
|
1158 |
|
1159 </div> |
|
1160 <hr /> |
|
1161 </div> |
|
1162 <div class="" rel="yui:method" resource="#method_isObject"> |
|
1163 <h4> |
|
1164 <a name="method_isObject">isObject</a></h4> |
|
1165 <div class="detail" > |
|
1166 <code> |
|
1167 |
|
1168 static |
|
1169 |
|
1170 void |
|
1171 <strong property="yui:name">isObject</strong> |
|
1172 ( |
|
1173 |
|
1174 |
|
1175 actual |
|
1176 |
|
1177 |
|
1178 , |
|
1179 message |
|
1180 |
|
1181 |
|
1182 ) |
|
1183 </code> |
|
1184 |
|
1185 <div class="description" property="yui:description"> |
|
1186 Asserts that a value is an object. |
|
1187 </div> |
|
1188 |
|
1189 <div class="description"> |
|
1190 |
|
1191 <dl rel="yui:parameters"> |
|
1192 <dt>Parameters:</dt> |
|
1193 <dd rel="yui:parameter"> |
|
1194 <code><span property="yui:name">actual</span> |
|
1195 <<span property="yui:type">Object</span>> |
|
1196 </code> |
|
1197 <span property="yui:description"> The value to test.</span> |
|
1198 </dd> |
|
1199 <dd rel="yui:parameter"> |
|
1200 <code><span property="yui:name">message</span> |
|
1201 <<span property="yui:type">String</span>> |
|
1202 </code> |
|
1203 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
1204 </dd> |
|
1205 </dl> |
|
1206 |
|
1207 |
|
1208 |
|
1209 |
|
1210 |
|
1211 </div> |
|
1212 |
|
1213 </div> |
|
1214 <hr /> |
|
1215 </div> |
|
1216 <div class="" rel="yui:method" resource="#method_isString"> |
|
1217 <h4> |
|
1218 <a name="method_isString">isString</a></h4> |
|
1219 <div class="detail" > |
|
1220 <code> |
|
1221 |
|
1222 static |
|
1223 |
|
1224 void |
|
1225 <strong property="yui:name">isString</strong> |
|
1226 ( |
|
1227 |
|
1228 |
|
1229 actual |
|
1230 |
|
1231 |
|
1232 , |
|
1233 message |
|
1234 |
|
1235 |
|
1236 ) |
|
1237 </code> |
|
1238 |
|
1239 <div class="description" property="yui:description"> |
|
1240 Asserts that a value is a string. |
|
1241 </div> |
|
1242 |
|
1243 <div class="description"> |
|
1244 |
|
1245 <dl rel="yui:parameters"> |
|
1246 <dt>Parameters:</dt> |
|
1247 <dd rel="yui:parameter"> |
|
1248 <code><span property="yui:name">actual</span> |
|
1249 <<span property="yui:type">Object</span>> |
|
1250 </code> |
|
1251 <span property="yui:description"> The value to test.</span> |
|
1252 </dd> |
|
1253 <dd rel="yui:parameter"> |
|
1254 <code><span property="yui:name">message</span> |
|
1255 <<span property="yui:type">String</span>> |
|
1256 </code> |
|
1257 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
1258 </dd> |
|
1259 </dl> |
|
1260 |
|
1261 |
|
1262 |
|
1263 |
|
1264 |
|
1265 </div> |
|
1266 |
|
1267 </div> |
|
1268 <hr /> |
|
1269 </div> |
|
1270 <div class="" rel="yui:method" resource="#method_isTrue"> |
|
1271 <h4> |
|
1272 <a name="method_isTrue">isTrue</a></h4> |
|
1273 <div class="detail" > |
|
1274 <code> |
|
1275 |
|
1276 static |
|
1277 |
|
1278 void |
|
1279 <strong property="yui:name">isTrue</strong> |
|
1280 ( |
|
1281 |
|
1282 |
|
1283 actual |
|
1284 |
|
1285 |
|
1286 , |
|
1287 message |
|
1288 |
|
1289 |
|
1290 ) |
|
1291 </code> |
|
1292 |
|
1293 <div class="description" property="yui:description"> |
|
1294 Asserts that a value is true. This uses the triple equals sign |
|
1295 so no type cohersion may occur. |
|
1296 </div> |
|
1297 |
|
1298 <div class="description"> |
|
1299 |
|
1300 <dl rel="yui:parameters"> |
|
1301 <dt>Parameters:</dt> |
|
1302 <dd rel="yui:parameter"> |
|
1303 <code><span property="yui:name">actual</span> |
|
1304 <<span property="yui:type">Object</span>> |
|
1305 </code> |
|
1306 <span property="yui:description"> The actual value to test.</span> |
|
1307 </dd> |
|
1308 <dd rel="yui:parameter"> |
|
1309 <code><span property="yui:name">message</span> |
|
1310 <<span property="yui:type">String</span>> |
|
1311 </code> |
|
1312 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
1313 </dd> |
|
1314 </dl> |
|
1315 |
|
1316 |
|
1317 |
|
1318 |
|
1319 |
|
1320 </div> |
|
1321 |
|
1322 </div> |
|
1323 <hr /> |
|
1324 </div> |
|
1325 <div class="" rel="yui:method" resource="#method_isTypeOf"> |
|
1326 <h4> |
|
1327 <a name="method_isTypeOf">isTypeOf</a></h4> |
|
1328 <div class="detail" > |
|
1329 <code> |
|
1330 |
|
1331 static |
|
1332 |
|
1333 void |
|
1334 <strong property="yui:name">isTypeOf</strong> |
|
1335 ( |
|
1336 |
|
1337 |
|
1338 expectedType |
|
1339 |
|
1340 |
|
1341 , |
|
1342 actualValue |
|
1343 |
|
1344 |
|
1345 , |
|
1346 message |
|
1347 |
|
1348 |
|
1349 ) |
|
1350 </code> |
|
1351 |
|
1352 <div class="description" property="yui:description"> |
|
1353 Asserts that a value is of a particular type. |
|
1354 </div> |
|
1355 |
|
1356 <div class="description"> |
|
1357 |
|
1358 <dl rel="yui:parameters"> |
|
1359 <dt>Parameters:</dt> |
|
1360 <dd rel="yui:parameter"> |
|
1361 <code><span property="yui:name">expectedType</span> |
|
1362 <<span property="yui:type">String</span>> |
|
1363 </code> |
|
1364 <span property="yui:description"> The expected type of the variable.</span> |
|
1365 </dd> |
|
1366 <dd rel="yui:parameter"> |
|
1367 <code><span property="yui:name">actualValue</span> |
|
1368 <<span property="yui:type">Object</span>> |
|
1369 </code> |
|
1370 <span property="yui:description"> The actual value to test.</span> |
|
1371 </dd> |
|
1372 <dd rel="yui:parameter"> |
|
1373 <code><span property="yui:name">message</span> |
|
1374 <<span property="yui:type">String</span>> |
|
1375 </code> |
|
1376 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
1377 </dd> |
|
1378 </dl> |
|
1379 |
|
1380 |
|
1381 |
|
1382 |
|
1383 |
|
1384 </div> |
|
1385 |
|
1386 </div> |
|
1387 <hr /> |
|
1388 </div> |
|
1389 <div class="" rel="yui:method" resource="#method_isUndefined"> |
|
1390 <h4> |
|
1391 <a name="method_isUndefined">isUndefined</a></h4> |
|
1392 <div class="detail" > |
|
1393 <code> |
|
1394 |
|
1395 static |
|
1396 |
|
1397 void |
|
1398 <strong property="yui:name">isUndefined</strong> |
|
1399 ( |
|
1400 |
|
1401 |
|
1402 actual |
|
1403 |
|
1404 |
|
1405 , |
|
1406 message |
|
1407 |
|
1408 |
|
1409 ) |
|
1410 </code> |
|
1411 |
|
1412 <div class="description" property="yui:description"> |
|
1413 Asserts that a value is undefined. This uses the triple equals sign |
|
1414 so no type cohersion may occur. |
|
1415 </div> |
|
1416 |
|
1417 <div class="description"> |
|
1418 |
|
1419 <dl rel="yui:parameters"> |
|
1420 <dt>Parameters:</dt> |
|
1421 <dd rel="yui:parameter"> |
|
1422 <code><span property="yui:name">actual</span> |
|
1423 <<span property="yui:type">Object</span>> |
|
1424 </code> |
|
1425 <span property="yui:description"> The actual value to test.</span> |
|
1426 </dd> |
|
1427 <dd rel="yui:parameter"> |
|
1428 <code><span property="yui:name">message</span> |
|
1429 <<span property="yui:type">String</span>> |
|
1430 </code> |
|
1431 <span property="yui:description"> (Optional) The message to display if the assertion fails.</span> |
|
1432 </dd> |
|
1433 </dl> |
|
1434 |
|
1435 |
|
1436 |
|
1437 |
|
1438 |
|
1439 </div> |
|
1440 |
|
1441 </div> |
|
1442 <hr /> |
|
1443 </div> |
|
1444 <div class="" rel="yui:method" resource="#method_Y.assert"> |
|
1445 <h4> |
|
1446 <a name="method_Y.assert">Y.assert</a></h4> |
|
1447 <div class="detail" > |
|
1448 <code> |
|
1449 |
|
1450 static |
|
1451 |
|
1452 void |
|
1453 <strong property="yui:name">Y.assert</strong> |
|
1454 ( |
|
1455 |
|
1456 |
|
1457 condition |
|
1458 |
|
1459 |
|
1460 , |
|
1461 message |
|
1462 |
|
1463 |
|
1464 ) |
|
1465 </code> |
|
1466 |
|
1467 <div class="description" property="yui:description"> |
|
1468 Asserts that a given condition is true. If not, then a Y.Assert.Error object is thrown |
|
1469 and the test fails. |
|
1470 </div> |
|
1471 |
|
1472 <div class="description"> |
|
1473 |
|
1474 <dl rel="yui:parameters"> |
|
1475 <dt>Parameters:</dt> |
|
1476 <dd rel="yui:parameter"> |
|
1477 <code><span property="yui:name">condition</span> |
|
1478 <<span property="yui:type">Boolean</span>> |
|
1479 </code> |
|
1480 <span property="yui:description"> The condition to test.</span> |
|
1481 </dd> |
|
1482 <dd rel="yui:parameter"> |
|
1483 <code><span property="yui:name">message</span> |
|
1484 <<span property="yui:type">String</span>> |
|
1485 </code> |
|
1486 <span property="yui:description"> The message to display if the assertion fails.</span> |
|
1487 </dd> |
|
1488 </dl> |
|
1489 |
|
1490 |
|
1491 |
|
1492 |
|
1493 |
|
1494 </div> |
|
1495 |
|
1496 </div> |
|
1497 <hr /> |
|
1498 </div> |
|
1499 <div class="" rel="yui:method" resource="#method_Y.fail"> |
|
1500 <h4> |
|
1501 <a name="method_Y.fail">Y.fail</a></h4> |
|
1502 <div class="detail" > |
|
1503 <code> |
|
1504 |
|
1505 static |
|
1506 |
|
1507 void |
|
1508 <strong property="yui:name">Y.fail</strong> |
|
1509 ( |
|
1510 |
|
1511 |
|
1512 message |
|
1513 |
|
1514 |
|
1515 ) |
|
1516 </code> |
|
1517 |
|
1518 <div class="description" property="yui:description"> |
|
1519 Forces an assertion error to occur. Shortcut for Y.Assert.fail(). |
|
1520 </div> |
|
1521 |
|
1522 <div class="description"> |
|
1523 |
|
1524 <dl rel="yui:parameters"> |
|
1525 <dt>Parameters:</dt> |
|
1526 <dd rel="yui:parameter"> |
|
1527 <code><span property="yui:name">message</span> |
|
1528 <<span property="yui:type">String</span>> |
|
1529 </code> |
|
1530 <span property="yui:description"> (Optional) The message to display with the failure.</span> |
|
1531 </dd> |
|
1532 </dl> |
|
1533 |
|
1534 |
|
1535 |
|
1536 |
|
1537 |
|
1538 </div> |
|
1539 |
|
1540 </div> |
|
1541 <hr /> |
|
1542 </div> |
|
1543 </div> |
|
1544 </div> |
|
1545 |
|
1546 </div> |
|
1547 |
|
1548 <div rel="yui:events" resource="#events"> |
|
1549 |
|
1550 |
|
1551 </div> |
|
1552 |
|
1553 <div rel="yui:attributes" resource="#configattributes"> |
|
1554 |
|
1555 </div> |
|
1556 |
|
1557 </div> |
|
1558 </div> |
|
1559 <div class="yui-b"> |
|
1560 <div class="nav"> |
|
1561 |
|
1562 <div id="moduleList" class="module"> |
|
1563 <h4>Modules</h4> |
|
1564 <ul class="content"> |
|
1565 <li class=""><a href="module_anim.html" title="anim">anim</a></li> |
|
1566 <li class=""><a href="module_async-queue.html" title="async-queue">async-queue</a></li> |
|
1567 <li class=""><a href="module_attribute.html" title="attribute">attribute</a></li> |
|
1568 <li class=""><a href="module_base.html" title="base">base</a></li> |
|
1569 <li class=""><a href="module_cache.html" title="cache">cache</a></li> |
|
1570 <li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li> |
|
1571 <li class=""><a href="module_collection.html" title="collection">collection</a></li> |
|
1572 <li class=""><a href="module_console.html" title="console">console</a></li> |
|
1573 <li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li> |
|
1574 <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li> |
|
1575 <li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li> |
|
1576 <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li> |
|
1577 <li class=""><a href="module_datatype.html" title="datatype">datatype</a></li> |
|
1578 <li class=""><a href="module_dd.html" title="dd">dd</a></li> |
|
1579 <li class=""><a href="module_dom.html" title="dom">dom</a></li> |
|
1580 <li class=""><a href="module_dump.html" title="dump">dump</a></li> |
|
1581 <li class=""><a href="module_event.html" title="event">event</a></li> |
|
1582 <li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li> |
|
1583 <li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li> |
|
1584 <li class=""><a href="module_history.html" title="history">history</a></li> |
|
1585 <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li> |
|
1586 <li class=""><a href="module_io.html" title="io">io</a></li> |
|
1587 <li class=""><a href="module_json.html" title="json">json</a></li> |
|
1588 <li class=""><a href="module_node.html" title="node">node</a></li> |
|
1589 <li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li> |
|
1590 <li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li> |
|
1591 <li class=""><a href="module_oop.html" title="oop">oop</a></li> |
|
1592 <li class=""><a href="module_overlay.html" title="overlay">overlay</a></li> |
|
1593 <li class=""><a href="module_plugin.html" title="plugin">plugin</a></li> |
|
1594 <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li> |
|
1595 <li class=""><a href="module_queue-promote.html" title="queue-promote">queue-promote</a></li> |
|
1596 <li class=""><a href="module_slider.html" title="slider">slider</a></li> |
|
1597 <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li> |
|
1598 <li class=""><a href="module_substitute.html" title="substitute">substitute</a></li> |
|
1599 <li class="selected"><a href="module_test.html" title="test">test</a></li> |
|
1600 <li class=""><a href="module_widget.html" title="widget">widget</a></li> |
|
1601 <li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li> |
|
1602 <li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li> |
|
1603 <li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li> |
|
1604 <li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li> |
|
1605 <li class=""><a href="module_yui.html" title="yui">yui</a></li> |
|
1606 </ul> |
|
1607 </div> |
|
1608 |
|
1609 <div id="classList" class="module"> |
|
1610 <h4>Classes</h4> |
|
1611 <ul class="content"> |
|
1612 <li class="selected"><a href="Assert.html" title="Assert">Assert</a></li> |
|
1613 <li class=""><a href="Assert.ComparisonFailure.html" title="Assert.ComparisonFailure">Assert.ComparisonFailure</a></li> |
|
1614 <li class=""><a href="Assert.Error.html" title="Assert.Error">Assert.Error</a></li> |
|
1615 <li class=""><a href="Assert.ObjectAssert.html" title="Assert.ObjectAssert">Assert.ObjectAssert</a></li> |
|
1616 <li class=""><a href="Assert.ShouldError.html" title="Assert.ShouldError">Assert.ShouldError</a></li> |
|
1617 <li class=""><a href="Assert.ShouldFail.html" title="Assert.ShouldFail">Assert.ShouldFail</a></li> |
|
1618 <li class=""><a href="Assert.UnexpectedError.html" title="Assert.UnexpectedError">Assert.UnexpectedError</a></li> |
|
1619 <li class=""><a href="Assert.UnexpectedValue.html" title="Assert.UnexpectedValue">Assert.UnexpectedValue</a></li> |
|
1620 <li class=""><a href="Test.ArrayAssert.html" title="Test.ArrayAssert">Test.ArrayAssert</a></li> |
|
1621 <li class=""><a href="Test.Case.html" title="Test.Case">Test.Case</a></li> |
|
1622 <li class=""><a href="Test.DateAssert.html" title="Test.DateAssert">Test.DateAssert</a></li> |
|
1623 <li class=""><a href="Test.Format.Mock.html" title="Test.Format.Mock">Test.Format.Mock</a></li> |
|
1624 <li class=""><a href="Test.Manager.html" title="Test.Manager">Test.Manager</a></li> |
|
1625 <li class=""><a href="Test.Reporter.html" title="Test.Reporter">Test.Reporter</a></li> |
|
1626 <li class=""><a href="Test.Runner.html" title="Test.Runner">Test.Runner</a></li> |
|
1627 <li class=""><a href="Test.Suite.html" title="Test.Suite">Test.Suite</a></li> |
|
1628 <li class=""><a href="Test.TestNode.html" title="Test.TestNode">Test.TestNode</a></li> |
|
1629 <li class=""><a href="Test.Wait.html" title="Test.Wait">Test.Wait</a></li> |
|
1630 </ul> |
|
1631 </div> |
|
1632 |
|
1633 <div id="fileList" class="module"> |
|
1634 <h4>Files</h4> |
|
1635 <ul class="content"> |
|
1636 <li class=""><a href="ArrayAssert.js.html" title="ArrayAssert.js">ArrayAssert.js</a></li> |
|
1637 <li class=""><a href="Assert.js.html" title="Assert.js">Assert.js</a></li> |
|
1638 <li class=""><a href="DateAssert.js.html" title="DateAssert.js">DateAssert.js</a></li> |
|
1639 <li class=""><a href="Mock.js.html" title="Mock.js">Mock.js</a></li> |
|
1640 <li class=""><a href="ObjectAssert.js.html" title="ObjectAssert.js">ObjectAssert.js</a></li> |
|
1641 <li class=""><a href="TestCase.js.html" title="TestCase.js">TestCase.js</a></li> |
|
1642 <li class=""><a href="TestFormat.js.html" title="TestFormat.js">TestFormat.js</a></li> |
|
1643 <li class=""><a href="TestManager.js.html" title="TestManager.js">TestManager.js</a></li> |
|
1644 <li class=""><a href="TestReporter.js.html" title="TestReporter.js">TestReporter.js</a></li> |
|
1645 <li class=""><a href="TestRunner.js.html" title="TestRunner.js">TestRunner.js</a></li> |
|
1646 <li class=""><a href="TestSuite.js.html" title="TestSuite.js">TestSuite.js</a></li> |
|
1647 </ul> |
|
1648 </div> |
|
1649 |
|
1650 <div id="propertyList" class="module"> |
|
1651 <h4>Properties</h4> |
|
1652 <ul class="content"> |
|
1653 <li class="private"><a href="#property__asserts" title="_asserts">_asserts</a></li> |
|
1654 </ul> |
|
1655 </div> |
|
1656 |
|
1657 <div id="methodsList" class="module"> |
|
1658 <h4>Methods</h4> |
|
1659 <ul class="content"> |
|
1660 <li class="protected"><a href="#method__formatMessage" title="_formatMessage">_formatMessage</a></li> |
|
1661 <li class="protected"><a href="#method__getCount" title="_getCount">_getCount</a></li> |
|
1662 <li class="protected"><a href="#method__increment" title="_increment">_increment</a></li> |
|
1663 <li class="protected"><a href="#method__reset" title="_reset">_reset</a></li> |
|
1664 <li class=""><a href="#method_areEqual" title="areEqual">areEqual</a></li> |
|
1665 <li class=""><a href="#method_areNotEqual" title="areNotEqual">areNotEqual</a></li> |
|
1666 <li class=""><a href="#method_areNotSame" title="areNotSame">areNotSame</a></li> |
|
1667 <li class=""><a href="#method_areSame" title="areSame">areSame</a></li> |
|
1668 <li class=""><a href="#method_fail" title="fail">fail</a></li> |
|
1669 <li class=""><a href="#method_isArray" title="isArray">isArray</a></li> |
|
1670 <li class=""><a href="#method_isBoolean" title="isBoolean">isBoolean</a></li> |
|
1671 <li class=""><a href="#method_isFalse" title="isFalse">isFalse</a></li> |
|
1672 <li class=""><a href="#method_isFunction" title="isFunction">isFunction</a></li> |
|
1673 <li class=""><a href="#method_isInstanceOf" title="isInstanceOf">isInstanceOf</a></li> |
|
1674 <li class=""><a href="#method_isNaN" title="isNaN">isNaN</a></li> |
|
1675 <li class=""><a href="#method_isNotNaN" title="isNotNaN">isNotNaN</a></li> |
|
1676 <li class=""><a href="#method_isNotNull" title="isNotNull">isNotNull</a></li> |
|
1677 <li class=""><a href="#method_isNotUndefined" title="isNotUndefined">isNotUndefined</a></li> |
|
1678 <li class=""><a href="#method_isNull" title="isNull">isNull</a></li> |
|
1679 <li class=""><a href="#method_isNumber" title="isNumber">isNumber</a></li> |
|
1680 <li class=""><a href="#method_isObject" title="isObject">isObject</a></li> |
|
1681 <li class=""><a href="#method_isString" title="isString">isString</a></li> |
|
1682 <li class=""><a href="#method_isTrue" title="isTrue">isTrue</a></li> |
|
1683 <li class=""><a href="#method_isTypeOf" title="isTypeOf">isTypeOf</a></li> |
|
1684 <li class=""><a href="#method_isUndefined" title="isUndefined">isUndefined</a></li> |
|
1685 <li class=""><a href="#method_Y.assert" title="Y.assert">Y.assert</a></li> |
|
1686 <li class=""><a href="#method_Y.fail" title="Y.fail">Y.fail</a></li> |
|
1687 </ul> |
|
1688 </div> |
|
1689 |
|
1690 |
|
1691 |
|
1692 </div> |
|
1693 </div> |
|
1694 </div> |
|
1695 <div id="ft"> |
|
1696 <hr /> |
|
1697 Copyright © 2009 Yahoo! Inc. All rights reserved. |
|
1698 </div> |
|
1699 </div> |
|
1700 <script type="text/javascript"> |
|
1701 ALL_YUI_PROPS = [{"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": "Assert", "name": "fail", "url": "Assert.html#method_fail", "type": "method"}, {"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": "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": "protected", "host": "Assert", "name": "_reset", "url": "Assert.html#method__reset", "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"}]; |
|
1702 </script> |
|
1703 </body> |
|
1704 </html> |