|
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 ArrayAssert.js (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 |
|
|
|
23 |
> ArrayAssert.js (source view) |
|
|
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 |
<div id="srcout"> |
|
|
47 |
<style> |
|
|
48 |
#doc3 .classopts { display:none; } |
|
|
49 |
</style> |
|
|
50 |
<div class="highlight" ><pre> |
|
|
51 |
<span class="c">/**</span> |
|
|
52 |
<span class="c"> * The ArrayAssert object provides functions to test JavaScript array objects</span> |
|
|
53 |
<span class="c"> * for a variety of cases.</span> |
|
|
54 |
<span class="c"> *</span> |
|
|
55 |
<span class="c"> * @class ArrayAssert</span> |
|
|
56 |
<span class="c"> * @static</span> |
|
|
57 |
<span class="c"> */</span> |
|
|
58 |
|
|
|
59 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">ArrayAssert</span> <span class="o">=</span> <span class="o">{</span> |
|
|
60 |
|
|
|
61 |
<span class="c">/**</span> |
|
|
62 |
<span class="c"> * Asserts that a value is present in an array. This uses the triple equals </span> |
|
|
63 |
<span class="c"> * sign so no type cohersion may occur.</span> |
|
|
64 |
<span class="c"> * @param {Object} needle The value that is expected in the array.</span> |
|
|
65 |
<span class="c"> * @param {Array} haystack An array of values.</span> |
|
|
66 |
<span class="c"> * @param {String} message (Optional) The message to display if the assertion fails.</span> |
|
|
67 |
<span class="c"> * @method contains</span> |
|
|
68 |
<span class="c"> * @static</span> |
|
|
69 |
<span class="c"> */</span> |
|
|
70 |
<span class="nx">contains</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">needle</span><span class="o">,</span> <span class="nx">haystack</span><span class="o">,</span> |
|
|
71 |
<span class="nx">message</span><span class="o">)</span> <span class="o">{</span> |
|
|
72 |
|
|
|
73 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_increment</span><span class="o">();</span> |
|
|
74 |
|
|
|
75 |
<span class="k">if</span> <span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nb">Array</span><span class="o">.</span><span class="nx">indexOf</span><span class="o">(</span><span class="nx">haystack</span><span class="o">,</span> <span class="nx">needle</span><span class="o">)</span> <span class="o">==</span> <span class="o">-</span><span class="m">1</span><span class="o">){</span> |
|
|
76 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">fail</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Value "</span> <span class="o">+</span> <span class="nx">needle</span> <span class="o">+</span> <span class="s2">" ("</span> <span class="o">+</span> <span class="o">(</span><span class="k">typeof</span> <span class="nx">needle</span><span class="o">)</span> <span class="o">+</span> <span class="s2">") not found in array ["</span> <span class="o">+</span> <span class="nx">haystack</span> <span class="o">+</span> <span class="s2">"]."</span><span class="o">));</span> |
|
|
77 |
<span class="o">}</span> |
|
|
78 |
<span class="o">},</span> |
|
|
79 |
|
|
|
80 |
<span class="c">/**</span> |
|
|
81 |
<span class="c"> * Asserts that a set of values are present in an array. This uses the triple equals </span> |
|
|
82 |
<span class="c"> * sign so no type cohersion may occur. For this assertion to pass, all values must</span> |
|
|
83 |
<span class="c"> * be found.</span> |
|
|
84 |
<span class="c"> * @param {Object[]} needles An array of values that are expected in the array.</span> |
|
|
85 |
<span class="c"> * @param {Array} haystack An array of values to check.</span> |
|
|
86 |
<span class="c"> * @param {String} message (Optional) The message to display if the assertion fails.</span> |
|
|
87 |
<span class="c"> * @method containsItems</span> |
|
|
88 |
<span class="c"> * @static</span> |
|
|
89 |
<span class="c"> */</span> |
|
|
90 |
<span class="nx">containsItems</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">needles</span><span class="o">,</span> <span class="nx">haystack</span><span class="o">,</span> |
|
|
91 |
<span class="nx">message</span><span class="o">)</span> <span class="o">{</span> |
|
|
92 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_increment</span><span class="o">();</span> |
|
|
93 |
|
|
|
94 |
<span class="c">//begin checking values</span> |
|
|
95 |
<span class="c"></span> <span class="k">for</span> <span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span> <span class="o"><</span> <span class="nx">needles</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++){</span> |
|
|
96 |
<span class="k">if</span> <span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nb">Array</span><span class="o">.</span><span class="nx">indexOf</span><span class="o">(</span><span class="nx">haystack</span><span class="o">,</span> <span class="nx">needles</span><span class="o">[</span><span class="nx">i</span><span class="o">])</span> <span class="o">==</span> <span class="o">-</span><span class="m">1</span><span class="o">){</span> |
|
|
97 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">fail</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Value "</span> <span class="o">+</span> <span class="nx">needles</span><span class="o">[</span><span class="nx">i</span><span class="o">]</span> <span class="o">+</span> <span class="s2">" ("</span> <span class="o">+</span> <span class="o">(</span><span class="k">typeof</span> <span class="nx">needles</span><span class="o">[</span><span class="nx">i</span><span class="o">])</span> <span class="o">+</span> <span class="s2">") not found in array ["</span> <span class="o">+</span> <span class="nx">haystack</span> <span class="o">+</span> <span class="s2">"]."</span><span class="o">));</span> |
|
|
98 |
<span class="o">}</span> |
|
|
99 |
<span class="o">}</span> |
|
|
100 |
<span class="o">},</span> |
|
|
101 |
|
|
|
102 |
<span class="c">/**</span> |
|
|
103 |
<span class="c"> * Asserts that a value matching some condition is present in an array. This uses</span> |
|
|
104 |
<span class="c"> * a function to determine a match.</span> |
|
|
105 |
<span class="c"> * @param {Function} matcher A function that returns true if the items matches or false if not.</span> |
|
|
106 |
<span class="c"> * @param {Array} haystack An array of values.</span> |
|
|
107 |
<span class="c"> * @param {String} message (Optional) The message to display if the assertion fails.</span> |
|
|
108 |
<span class="c"> * @method containsMatch</span> |
|
|
109 |
<span class="c"> * @static</span> |
|
|
110 |
<span class="c"> */</span> |
|
|
111 |
<span class="nx">containsMatch</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">matcher</span><span class="o">,</span> <span class="nx">haystack</span><span class="o">,</span> |
|
|
112 |
<span class="nx">message</span><span class="o">)</span> <span class="o">{</span> |
|
|
113 |
|
|
|
114 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_increment</span><span class="o">();</span> |
|
|
115 |
<span class="c">//check for valid matcher</span> |
|
|
116 |
<span class="c"></span> <span class="k">if</span> <span class="o">(</span><span class="k">typeof</span> <span class="nx">matcher</span> <span class="o">!=</span> <span class="s2">"function"</span><span class="o">){</span> |
|
|
117 |
<span class="k">throw</span> <span class="k">new</span> <span class="nx">TypeError</span><span class="o">(</span><span class="s2">"ArrayAssert.containsMatch(): First argument must be a function."</span><span class="o">);</span> |
|
|
118 |
<span class="o">}</span> |
|
|
119 |
|
|
|
120 |
<span class="k">if</span> <span class="o">(!</span><span class="nx">Y</span><span class="o">.</span><span class="nb">Array</span><span class="o">.</span><span class="nx">some</span><span class="o">(</span><span class="nx">haystack</span><span class="o">,</span> <span class="nx">matcher</span><span class="o">)){</span> |
|
|
121 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">fail</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"No match found in array ["</span> <span class="o">+</span> <span class="nx">haystack</span> <span class="o">+</span> <span class="s2">"]."</span><span class="o">));</span> |
|
|
122 |
<span class="o">}</span> |
|
|
123 |
<span class="o">},</span> |
|
|
124 |
|
|
|
125 |
<span class="c">/**</span> |
|
|
126 |
<span class="c"> * Asserts that a value is not present in an array. This uses the triple equals </span> |
|
|
127 |
<span class="c"> * Asserts that a value is not present in an array. This uses the triple equals </span> |
|
|
128 |
<span class="c"> * sign so no type cohersion may occur.</span> |
|
|
129 |
<span class="c"> * @param {Object} needle The value that is expected in the array.</span> |
|
|
130 |
<span class="c"> * @param {Array} haystack An array of values.</span> |
|
|
131 |
<span class="c"> * @param {String} message (Optional) The message to display if the assertion fails.</span> |
|
|
132 |
<span class="c"> * @method doesNotContain</span> |
|
|
133 |
<span class="c"> * @static</span> |
|
|
134 |
<span class="c"> */</span> |
|
|
135 |
<span class="nx">doesNotContain</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">needle</span><span class="o">,</span> <span class="nx">haystack</span><span class="o">,</span> |
|
|
136 |
<span class="nx">message</span><span class="o">)</span> <span class="o">{</span> |
|
|
137 |
|
|
|
138 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_increment</span><span class="o">();</span> |
|
|
139 |
|
|
|
140 |
<span class="k">if</span> <span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nb">Array</span><span class="o">.</span><span class="nx">indexOf</span><span class="o">(</span><span class="nx">haystack</span><span class="o">,</span> <span class="nx">needle</span><span class="o">)</span> <span class="o">></span> <span class="o">-</span><span class="m">1</span><span class="o">){</span> |
|
|
141 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">fail</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Value found in array ["</span> <span class="o">+</span> <span class="nx">haystack</span> <span class="o">+</span> <span class="s2">"]."</span><span class="o">));</span> |
|
|
142 |
<span class="o">}</span> |
|
|
143 |
<span class="o">},</span> |
|
|
144 |
|
|
|
145 |
<span class="c">/**</span> |
|
|
146 |
<span class="c"> * Asserts that a set of values are not present in an array. This uses the triple equals </span> |
|
|
147 |
<span class="c"> * sign so no type cohersion may occur. For this assertion to pass, all values must</span> |
|
|
148 |
<span class="c"> * not be found.</span> |
|
|
149 |
<span class="c"> * @param {Object[]} needles An array of values that are not expected in the array.</span> |
|
|
150 |
<span class="c"> * @param {Array} haystack An array of values to check.</span> |
|
|
151 |
<span class="c"> * @param {String} message (Optional) The message to display if the assertion fails.</span> |
|
|
152 |
<span class="c"> * @method doesNotContainItems</span> |
|
|
153 |
<span class="c"> * @static</span> |
|
|
154 |
<span class="c"> */</span> |
|
|
155 |
<span class="nx">doesNotContainItems</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">needles</span><span class="o">,</span> <span class="nx">haystack</span><span class="o">,</span> |
|
|
156 |
<span class="nx">message</span><span class="o">)</span> <span class="o">{</span> |
|
|
157 |
|
|
|
158 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_increment</span><span class="o">();</span> |
|
|
159 |
|
|
|
160 |
<span class="k">for</span> <span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span> <span class="o"><</span> <span class="nx">needles</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++){</span> |
|
|
161 |
<span class="k">if</span> <span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nb">Array</span><span class="o">.</span><span class="nx">indexOf</span><span class="o">(</span><span class="nx">haystack</span><span class="o">,</span> <span class="nx">needles</span><span class="o">[</span><span class="nx">i</span><span class="o">])</span> <span class="o">></span> <span class="o">-</span><span class="m">1</span><span class="o">){</span> |
|
|
162 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">fail</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Value found in array ["</span> <span class="o">+</span> <span class="nx">haystack</span> <span class="o">+</span> <span class="s2">"]."</span><span class="o">));</span> |
|
|
163 |
<span class="o">}</span> |
|
|
164 |
<span class="o">}</span> |
|
|
165 |
|
|
|
166 |
<span class="o">},</span> |
|
|
167 |
|
|
|
168 |
<span class="c">/**</span> |
|
|
169 |
<span class="c"> * Asserts that no values matching a condition are present in an array. This uses</span> |
|
|
170 |
<span class="c"> * a function to determine a match.</span> |
|
|
171 |
<span class="c"> * @param {Function} matcher A function that returns true if the items matches or false if not.</span> |
|
|
172 |
<span class="c"> * @param {Array} haystack An array of values.</span> |
|
|
173 |
<span class="c"> * @param {String} message (Optional) The message to display if the assertion fails.</span> |
|
|
174 |
<span class="c"> * @method doesNotContainMatch</span> |
|
|
175 |
<span class="c"> * @static</span> |
|
|
176 |
<span class="c"> */</span> |
|
|
177 |
<span class="nx">doesNotContainMatch</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">matcher</span><span class="o">,</span> <span class="nx">haystack</span><span class="o">,</span> |
|
|
178 |
<span class="nx">message</span><span class="o">)</span> <span class="o">{</span> |
|
|
179 |
|
|
|
180 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_increment</span><span class="o">();</span> |
|
|
181 |
|
|
|
182 |
<span class="c">//check for valid matcher</span> |
|
|
183 |
<span class="c"></span> <span class="k">if</span> <span class="o">(</span><span class="k">typeof</span> <span class="nx">matcher</span> <span class="o">!=</span> <span class="s2">"function"</span><span class="o">){</span> |
|
|
184 |
<span class="k">throw</span> <span class="k">new</span> <span class="nx">TypeError</span><span class="o">(</span><span class="s2">"ArrayAssert.doesNotContainMatch(): First argument must be a function."</span><span class="o">);</span> |
|
|
185 |
<span class="o">}</span> |
|
|
186 |
|
|
|
187 |
<span class="k">if</span> <span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nb">Array</span><span class="o">.</span><span class="nx">some</span><span class="o">(</span><span class="nx">haystack</span><span class="o">,</span> <span class="nx">matcher</span><span class="o">)){</span> |
|
|
188 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">fail</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Value found in array ["</span> <span class="o">+</span> <span class="nx">haystack</span> <span class="o">+</span> <span class="s2">"]."</span><span class="o">));</span> |
|
|
189 |
<span class="o">}</span> |
|
|
190 |
<span class="o">},</span> |
|
|
191 |
|
|
|
192 |
<span class="c">/**</span> |
|
|
193 |
<span class="c"> * Asserts that the given value is contained in an array at the specified index.</span> |
|
|
194 |
<span class="c"> * This uses the triple equals sign so no type cohersion will occur.</span> |
|
|
195 |
<span class="c"> * @param {Object} needle The value to look for.</span> |
|
|
196 |
<span class="c"> * @param {Array} haystack The array to search in.</span> |
|
|
197 |
<span class="c"> * @param {int} index The index at which the value should exist.</span> |
|
|
198 |
<span class="c"> * @param {String} message (Optional) The message to display if the assertion fails.</span> |
|
|
199 |
<span class="c"> * @method indexOf</span> |
|
|
200 |
<span class="c"> * @static</span> |
|
|
201 |
<span class="c"> */</span> |
|
|
202 |
<span class="nx">indexOf</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">needle</span><span class="o">,</span> <span class="nx">haystack</span><span class="o">,</span> <span class="nx">index</span><span class="o">,</span> <span class="nx">message</span><span class="o">)</span> <span class="o">{</span> |
|
|
203 |
|
|
|
204 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_increment</span><span class="o">();</span> |
|
|
205 |
|
|
|
206 |
<span class="c">//try to find the value in the array</span> |
|
|
207 |
<span class="c"></span> <span class="k">for</span> <span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span> <span class="o"><</span> <span class="nx">haystack</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++){</span> |
|
|
208 |
<span class="k">if</span> <span class="o">(</span><span class="nx">haystack</span><span class="o">[</span><span class="nx">i</span><span class="o">]</span> <span class="o">===</span> <span class="nx">needle</span><span class="o">){</span> |
|
|
209 |
<span class="k">if</span> <span class="o">(</span><span class="nx">index</span> <span class="o">!=</span> <span class="nx">i</span><span class="o">){</span> |
|
|
210 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">fail</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Value exists at index "</span> <span class="o">+</span> <span class="nx">i</span> <span class="o">+</span> <span class="s2">" but should be at index "</span> <span class="o">+</span> <span class="nx">index</span> <span class="o">+</span> <span class="s2">"."</span><span class="o">));</span> |
|
|
211 |
<span class="o">}</span> |
|
|
212 |
<span class="k">return</span><span class="o">;</span> |
|
|
213 |
<span class="o">}</span> |
|
|
214 |
<span class="o">}</span> |
|
|
215 |
|
|
|
216 |
<span class="c">//if it makes it here, it wasn't found at all</span> |
|
|
217 |
<span class="c"></span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">fail</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Value doesn't exist in array ["</span> <span class="o">+</span> <span class="nx">haystack</span> <span class="o">+</span> <span class="s2">"]."</span><span class="o">));</span> |
|
|
218 |
<span class="o">},</span> |
|
|
219 |
|
|
|
220 |
<span class="c">/**</span> |
|
|
221 |
<span class="c"> * Asserts that the values in an array are equal, and in the same position,</span> |
|
|
222 |
<span class="c"> * as values in another array. This uses the double equals sign</span> |
|
|
223 |
<span class="c"> * so type cohersion may occur. Note that the array objects themselves</span> |
|
|
224 |
<span class="c"> * need not be the same for this test to pass.</span> |
|
|
225 |
<span class="c"> * @param {Array} expected An array of the expected values.</span> |
|
|
226 |
<span class="c"> * @param {Array} actual Any array of the actual values.</span> |
|
|
227 |
<span class="c"> * @param {String} message (Optional) The message to display if the assertion fails.</span> |
|
|
228 |
<span class="c"> * @method itemsAreEqual</span> |
|
|
229 |
<span class="c"> * @static</span> |
|
|
230 |
<span class="c"> */</span> |
|
|
231 |
<span class="nx">itemsAreEqual</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">expected</span><span class="o">,</span> <span class="nx">actual</span><span class="o">,</span> |
|
|
232 |
<span class="nx">message</span><span class="o">)</span> <span class="o">{</span> |
|
|
233 |
|
|
|
234 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_increment</span><span class="o">();</span> |
|
|
235 |
|
|
|
236 |
<span class="c">//first check array length</span> |
|
|
237 |
<span class="c"></span> <span class="k">if</span> <span class="o">(</span><span class="nx">expected</span><span class="o">.</span><span class="nx">length</span> <span class="o">!=</span> <span class="nx">actual</span><span class="o">.</span><span class="nx">length</span><span class="o">){</span> |
|
|
238 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">fail</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Array should have a length of "</span> <span class="o">+</span> <span class="nx">expected</span><span class="o">.</span><span class="nx">length</span> <span class="o">+</span> <span class="s2">" but has a length of "</span> <span class="o">+</span> <span class="nx">actual</span><span class="o">.</span><span class="nx">length</span><span class="o">));</span> |
|
|
239 |
<span class="o">}</span> |
|
|
240 |
|
|
|
241 |
<span class="c">//begin checking values</span> |
|
|
242 |
<span class="c"></span> <span class="k">for</span> <span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span> <span class="o"><</span> <span class="nx">expected</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++){</span> |
|
|
243 |
<span class="k">if</span> <span class="o">(</span><span class="nx">expected</span><span class="o">[</span><span class="nx">i</span><span class="o">]</span> <span class="o">!=</span> <span class="nx">actual</span><span class="o">[</span><span class="nx">i</span><span class="o">]){</span> |
|
|
244 |
<span class="k">throw</span> <span class="k">new</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">ComparisonFailure</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Values in position "</span> <span class="o">+</span> <span class="nx">i</span> <span class="o">+</span> <span class="s2">" are not equal."</span><span class="o">),</span> <span class="nx">expected</span><span class="o">[</span><span class="nx">i</span><span class="o">],</span> <span class="nx">actual</span><span class="o">[</span><span class="nx">i</span><span class="o">]);</span> |
|
|
245 |
<span class="o">}</span> |
|
|
246 |
<span class="o">}</span> |
|
|
247 |
<span class="o">},</span> |
|
|
248 |
|
|
|
249 |
<span class="c">/**</span> |
|
|
250 |
<span class="c"> * Asserts that the values in an array are equivalent, and in the same position,</span> |
|
|
251 |
<span class="c"> * as values in another array. This uses a function to determine if the values</span> |
|
|
252 |
<span class="c"> * are equivalent. Note that the array objects themselves</span> |
|
|
253 |
<span class="c"> * need not be the same for this test to pass.</span> |
|
|
254 |
<span class="c"> * @param {Array} expected An array of the expected values.</span> |
|
|
255 |
<span class="c"> * @param {Array} actual Any array of the actual values.</span> |
|
|
256 |
<span class="c"> * @param {Function} comparator A function that returns true if the values are equivalent</span> |
|
|
257 |
<span class="c"> * or false if not.</span> |
|
|
258 |
<span class="c"> * @param {String} message (Optional) The message to display if the assertion fails.</span> |
|
|
259 |
<span class="c"> * @return {Void}</span> |
|
|
260 |
<span class="c"> * @method itemsAreEquivalent</span> |
|
|
261 |
<span class="c"> * @static</span> |
|
|
262 |
<span class="c"> */</span> |
|
|
263 |
<span class="nx">itemsAreEquivalent</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">expected</span><span class="o">,</span> <span class="nx">actual</span><span class="o">,</span> |
|
|
264 |
<span class="nx">comparator</span><span class="o">,</span> <span class="nx">message</span><span class="o">)</span> <span class="o">{</span> |
|
|
265 |
|
|
|
266 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_increment</span><span class="o">();</span> |
|
|
267 |
|
|
|
268 |
<span class="c">//make sure the comparator is valid</span> |
|
|
269 |
<span class="c"></span> <span class="k">if</span> <span class="o">(</span><span class="k">typeof</span> <span class="nx">comparator</span> <span class="o">!=</span> <span class="s2">"function"</span><span class="o">){</span> |
|
|
270 |
<span class="k">throw</span> <span class="k">new</span> <span class="nx">TypeError</span><span class="o">(</span><span class="s2">"ArrayAssert.itemsAreEquivalent(): Third argument must be a function."</span><span class="o">);</span> |
|
|
271 |
<span class="o">}</span> |
|
|
272 |
|
|
|
273 |
<span class="c">//first check array length</span> |
|
|
274 |
<span class="c"></span> <span class="k">if</span> <span class="o">(</span><span class="nx">expected</span><span class="o">.</span><span class="nx">length</span> <span class="o">!=</span> <span class="nx">actual</span><span class="o">.</span><span class="nx">length</span><span class="o">){</span> |
|
|
275 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">fail</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Array should have a length of "</span> <span class="o">+</span> <span class="nx">expected</span><span class="o">.</span><span class="nx">length</span> <span class="o">+</span> <span class="s2">" but has a length of "</span> <span class="o">+</span> <span class="nx">actual</span><span class="o">.</span><span class="nx">length</span><span class="o">));</span> |
|
|
276 |
<span class="o">}</span> |
|
|
277 |
|
|
|
278 |
<span class="c">//begin checking values</span> |
|
|
279 |
<span class="c"></span> <span class="k">for</span> <span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span> <span class="o"><</span> <span class="nx">expected</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++){</span> |
|
|
280 |
<span class="k">if</span> <span class="o">(!</span><span class="nx">comparator</span><span class="o">(</span><span class="nx">expected</span><span class="o">[</span><span class="nx">i</span><span class="o">],</span> <span class="nx">actual</span><span class="o">[</span><span class="nx">i</span><span class="o">])){</span> |
|
|
281 |
<span class="k">throw</span> <span class="k">new</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">ComparisonFailure</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Values in position "</span> <span class="o">+</span> <span class="nx">i</span> <span class="o">+</span> <span class="s2">" are not equivalent."</span><span class="o">),</span> <span class="nx">expected</span><span class="o">[</span><span class="nx">i</span><span class="o">],</span> <span class="nx">actual</span><span class="o">[</span><span class="nx">i</span><span class="o">]);</span> |
|
|
282 |
<span class="o">}</span> |
|
|
283 |
<span class="o">}</span> |
|
|
284 |
<span class="o">},</span> |
|
|
285 |
|
|
|
286 |
<span class="c">/**</span> |
|
|
287 |
<span class="c"> * Asserts that an array is empty.</span> |
|
|
288 |
<span class="c"> * @param {Array} actual The array to test.</span> |
|
|
289 |
<span class="c"> * @param {String} message (Optional) The message to display if the assertion fails.</span> |
|
|
290 |
<span class="c"> * @method isEmpty</span> |
|
|
291 |
<span class="c"> * @static</span> |
|
|
292 |
<span class="c"> */</span> |
|
|
293 |
<span class="nx">isEmpty</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">actual</span><span class="o">,</span> <span class="nx">message</span><span class="o">)</span> <span class="o">{</span> |
|
|
294 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_increment</span><span class="o">();</span> |
|
|
295 |
<span class="k">if</span> <span class="o">(</span><span class="nx">actual</span><span class="o">.</span><span class="nx">length</span> <span class="o">></span> <span class="m">0</span><span class="o">){</span> |
|
|
296 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">fail</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Array should be empty."</span><span class="o">));</span> |
|
|
297 |
<span class="o">}</span> |
|
|
298 |
<span class="o">},</span> |
|
|
299 |
|
|
|
300 |
<span class="c">/**</span> |
|
|
301 |
<span class="c"> * Asserts that an array is not empty.</span> |
|
|
302 |
<span class="c"> * @param {Array} actual The array to test.</span> |
|
|
303 |
<span class="c"> * @param {String} message (Optional) The message to display if the assertion fails.</span> |
|
|
304 |
<span class="c"> * @method isNotEmpty</span> |
|
|
305 |
<span class="c"> * @static</span> |
|
|
306 |
<span class="c"> */</span> |
|
|
307 |
<span class="nx">isNotEmpty</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">actual</span><span class="o">,</span> <span class="nx">message</span><span class="o">)</span> <span class="o">{</span> |
|
|
308 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_increment</span><span class="o">();</span> |
|
|
309 |
<span class="k">if</span> <span class="o">(</span><span class="nx">actual</span><span class="o">.</span><span class="nx">length</span> <span class="o">===</span> <span class="m">0</span><span class="o">){</span> |
|
|
310 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">fail</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Array should not be empty."</span><span class="o">));</span> |
|
|
311 |
<span class="o">}</span> |
|
|
312 |
<span class="o">},</span> |
|
|
313 |
|
|
|
314 |
<span class="c">/**</span> |
|
|
315 |
<span class="c"> * Asserts that the values in an array are the same, and in the same position,</span> |
|
|
316 |
<span class="c"> * as values in another array. This uses the triple equals sign</span> |
|
|
317 |
<span class="c"> * so no type cohersion will occur. Note that the array objects themselves</span> |
|
|
318 |
<span class="c"> * need not be the same for this test to pass.</span> |
|
|
319 |
<span class="c"> * @param {Array} expected An array of the expected values.</span> |
|
|
320 |
<span class="c"> * @param {Array} actual Any array of the actual values.</span> |
|
|
321 |
<span class="c"> * @param {String} message (Optional) The message to display if the assertion fails.</span> |
|
|
322 |
<span class="c"> * @method itemsAreSame</span> |
|
|
323 |
<span class="c"> * @static</span> |
|
|
324 |
<span class="c"> */</span> |
|
|
325 |
<span class="nx">itemsAreSame</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">expected</span><span class="o">,</span> <span class="nx">actual</span><span class="o">,</span> |
|
|
326 |
<span class="nx">message</span><span class="o">)</span> <span class="o">{</span> |
|
|
327 |
|
|
|
328 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_increment</span><span class="o">();</span> |
|
|
329 |
|
|
|
330 |
<span class="c">//first check array length</span> |
|
|
331 |
<span class="c"></span> <span class="k">if</span> <span class="o">(</span><span class="nx">expected</span><span class="o">.</span><span class="nx">length</span> <span class="o">!=</span> <span class="nx">actual</span><span class="o">.</span><span class="nx">length</span><span class="o">){</span> |
|
|
332 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">fail</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Array should have a length of "</span> <span class="o">+</span> <span class="nx">expected</span><span class="o">.</span><span class="nx">length</span> <span class="o">+</span> <span class="s2">" but has a length of "</span> <span class="o">+</span> <span class="nx">actual</span><span class="o">.</span><span class="nx">length</span><span class="o">));</span> |
|
|
333 |
<span class="o">}</span> |
|
|
334 |
|
|
|
335 |
<span class="c">//begin checking values</span> |
|
|
336 |
<span class="c"></span> <span class="k">for</span> <span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span> <span class="o"><</span> <span class="nx">expected</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++){</span> |
|
|
337 |
<span class="k">if</span> <span class="o">(</span><span class="nx">expected</span><span class="o">[</span><span class="nx">i</span><span class="o">]</span> <span class="o">!==</span> <span class="nx">actual</span><span class="o">[</span><span class="nx">i</span><span class="o">]){</span> |
|
|
338 |
<span class="k">throw</span> <span class="k">new</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">ComparisonFailure</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Values in position "</span> <span class="o">+</span> <span class="nx">i</span> <span class="o">+</span> <span class="s2">" are not the same."</span><span class="o">),</span> <span class="nx">expected</span><span class="o">[</span><span class="nx">i</span><span class="o">],</span> <span class="nx">actual</span><span class="o">[</span><span class="nx">i</span><span class="o">]);</span> |
|
|
339 |
<span class="o">}</span> |
|
|
340 |
<span class="o">}</span> |
|
|
341 |
<span class="o">},</span> |
|
|
342 |
|
|
|
343 |
<span class="c">/**</span> |
|
|
344 |
<span class="c"> * Asserts that the given value is contained in an array at the specified index,</span> |
|
|
345 |
<span class="c"> * starting from the back of the array.</span> |
|
|
346 |
<span class="c"> * This uses the triple equals sign so no type cohersion will occur.</span> |
|
|
347 |
<span class="c"> * @param {Object} needle The value to look for.</span> |
|
|
348 |
<span class="c"> * @param {Array} haystack The array to search in.</span> |
|
|
349 |
<span class="c"> * @param {int} index The index at which the value should exist.</span> |
|
|
350 |
<span class="c"> * @param {String} message (Optional) The message to display if the assertion fails.</span> |
|
|
351 |
<span class="c"> * @method lastIndexOf</span> |
|
|
352 |
<span class="c"> * @static</span> |
|
|
353 |
<span class="c"> */</span> |
|
|
354 |
<span class="nx">lastIndexOf</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">needle</span><span class="o">,</span> <span class="nx">haystack</span><span class="o">,</span> <span class="nx">index</span><span class="o">,</span> <span class="nx">message</span><span class="o">)</span> <span class="o">{</span> |
|
|
355 |
|
|
|
356 |
<span class="c">//try to find the value in the array</span> |
|
|
357 |
<span class="c"></span> <span class="k">for</span> <span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="nx">haystack</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span> <span class="o">>=</span> <span class="m">0</span><span class="o">;</span> <span class="nx">i</span><span class="o">--){</span> |
|
|
358 |
<span class="k">if</span> <span class="o">(</span><span class="nx">haystack</span><span class="o">[</span><span class="nx">i</span><span class="o">]</span> <span class="o">===</span> <span class="nx">needle</span><span class="o">){</span> |
|
|
359 |
<span class="k">if</span> <span class="o">(</span><span class="nx">index</span> <span class="o">!=</span> <span class="nx">i</span><span class="o">){</span> |
|
|
360 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">fail</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Value exists at index "</span> <span class="o">+</span> <span class="nx">i</span> <span class="o">+</span> <span class="s2">" but should be at index "</span> <span class="o">+</span> <span class="nx">index</span> <span class="o">+</span> <span class="s2">"."</span><span class="o">));</span> |
|
|
361 |
<span class="o">}</span> |
|
|
362 |
<span class="k">return</span><span class="o">;</span> |
|
|
363 |
<span class="o">}</span> |
|
|
364 |
<span class="o">}</span> |
|
|
365 |
|
|
|
366 |
<span class="c">//if it makes it here, it wasn't found at all</span> |
|
|
367 |
<span class="c"></span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">fail</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Assert</span><span class="o">.</span><span class="nx">_formatMessage</span><span class="o">(</span><span class="nx">message</span><span class="o">,</span> <span class="s2">"Value doesn't exist in array."</span><span class="o">));</span> |
|
|
368 |
<span class="o">}</span> |
|
|
369 |
|
|
|
370 |
<span class="o">};</span> |
|
|
371 |
</pre></div> |
|
|
372 |
|
|
|
373 |
</div> |
|
|
374 |
</div> |
|
|
375 |
</div> |
|
|
376 |
<div class="yui-b"> |
|
|
377 |
<div class="nav"> |
|
|
378 |
|
|
|
379 |
<div id="moduleList" class="module"> |
|
|
380 |
<h4>Modules</h4> |
|
|
381 |
<ul class="content"> |
|
|
382 |
<li class=""><a href="module_anim.html" title="anim">anim</a></li> |
|
|
383 |
<li class=""><a href="module_async-queue.html" title="async-queue">async-queue</a></li> |
|
|
384 |
<li class=""><a href="module_attribute.html" title="attribute">attribute</a></li> |
|
|
385 |
<li class=""><a href="module_base.html" title="base">base</a></li> |
|
|
386 |
<li class=""><a href="module_cache.html" title="cache">cache</a></li> |
|
|
387 |
<li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li> |
|
|
388 |
<li class=""><a href="module_collection.html" title="collection">collection</a></li> |
|
|
389 |
<li class=""><a href="module_console.html" title="console">console</a></li> |
|
|
390 |
<li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li> |
|
|
391 |
<li class=""><a href="module_cookie.html" title="cookie">cookie</a></li> |
|
|
392 |
<li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li> |
|
|
393 |
<li class=""><a href="module_datasource.html" title="datasource">datasource</a></li> |
|
|
394 |
<li class=""><a href="module_datatype.html" title="datatype">datatype</a></li> |
|
|
395 |
<li class=""><a href="module_dd.html" title="dd">dd</a></li> |
|
|
396 |
<li class=""><a href="module_dom.html" title="dom">dom</a></li> |
|
|
397 |
<li class=""><a href="module_dump.html" title="dump">dump</a></li> |
|
|
398 |
<li class=""><a href="module_event.html" title="event">event</a></li> |
|
|
399 |
<li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li> |
|
|
400 |
<li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li> |
|
|
401 |
<li class=""><a href="module_history.html" title="history">history</a></li> |
|
|
402 |
<li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li> |
|
|
403 |
<li class=""><a href="module_io.html" title="io">io</a></li> |
|
|
404 |
<li class=""><a href="module_json.html" title="json">json</a></li> |
|
|
405 |
<li class=""><a href="module_node.html" title="node">node</a></li> |
|
|
406 |
<li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li> |
|
|
407 |
<li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li> |
|
|
408 |
<li class=""><a href="module_oop.html" title="oop">oop</a></li> |
|
|
409 |
<li class=""><a href="module_overlay.html" title="overlay">overlay</a></li> |
|
|
410 |
<li class=""><a href="module_plugin.html" title="plugin">plugin</a></li> |
|
|
411 |
<li class=""><a href="module_profiler.html" title="profiler">profiler</a></li> |
|
|
412 |
<li class=""><a href="module_queue-promote.html" title="queue-promote">queue-promote</a></li> |
|
|
413 |
<li class=""><a href="module_slider.html" title="slider">slider</a></li> |
|
|
414 |
<li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li> |
|
|
415 |
<li class=""><a href="module_substitute.html" title="substitute">substitute</a></li> |
|
|
416 |
<li class="selected"><a href="module_test.html" title="test">test</a></li> |
|
|
417 |
<li class=""><a href="module_widget.html" title="widget">widget</a></li> |
|
|
418 |
<li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li> |
|
|
419 |
<li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li> |
|
|
420 |
<li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li> |
|
|
421 |
<li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li> |
|
|
422 |
<li class=""><a href="module_yui.html" title="yui">yui</a></li> |
|
|
423 |
</ul> |
|
|
424 |
</div> |
|
|
425 |
|
|
|
426 |
<div id="classList" class="module"> |
|
|
427 |
<h4>Classes</h4> |
|
|
428 |
<ul class="content"> |
|
|
429 |
<li class=""><a href="Assert.html" title="Assert">Assert</a></li> |
|
|
430 |
<li class=""><a href="Assert.ComparisonFailure.html" title="Assert.ComparisonFailure">Assert.ComparisonFailure</a></li> |
|
|
431 |
<li class=""><a href="Assert.Error.html" title="Assert.Error">Assert.Error</a></li> |
|
|
432 |
<li class=""><a href="Assert.ObjectAssert.html" title="Assert.ObjectAssert">Assert.ObjectAssert</a></li> |
|
|
433 |
<li class=""><a href="Assert.ShouldError.html" title="Assert.ShouldError">Assert.ShouldError</a></li> |
|
|
434 |
<li class=""><a href="Assert.ShouldFail.html" title="Assert.ShouldFail">Assert.ShouldFail</a></li> |
|
|
435 |
<li class=""><a href="Assert.UnexpectedError.html" title="Assert.UnexpectedError">Assert.UnexpectedError</a></li> |
|
|
436 |
<li class=""><a href="Assert.UnexpectedValue.html" title="Assert.UnexpectedValue">Assert.UnexpectedValue</a></li> |
|
|
437 |
<li class=""><a href="Test.ArrayAssert.html" title="Test.ArrayAssert">Test.ArrayAssert</a></li> |
|
|
438 |
<li class=""><a href="Test.Case.html" title="Test.Case">Test.Case</a></li> |
|
|
439 |
<li class=""><a href="Test.DateAssert.html" title="Test.DateAssert">Test.DateAssert</a></li> |
|
|
440 |
<li class=""><a href="Test.Format.Mock.html" title="Test.Format.Mock">Test.Format.Mock</a></li> |
|
|
441 |
<li class=""><a href="Test.Manager.html" title="Test.Manager">Test.Manager</a></li> |
|
|
442 |
<li class=""><a href="Test.Reporter.html" title="Test.Reporter">Test.Reporter</a></li> |
|
|
443 |
<li class=""><a href="Test.Runner.html" title="Test.Runner">Test.Runner</a></li> |
|
|
444 |
<li class=""><a href="Test.Suite.html" title="Test.Suite">Test.Suite</a></li> |
|
|
445 |
<li class=""><a href="Test.TestNode.html" title="Test.TestNode">Test.TestNode</a></li> |
|
|
446 |
<li class=""><a href="Test.Wait.html" title="Test.Wait">Test.Wait</a></li> |
|
|
447 |
</ul> |
|
|
448 |
</div> |
|
|
449 |
|
|
|
450 |
<div id="fileList" class="module"> |
|
|
451 |
<h4>Files</h4> |
|
|
452 |
<ul class="content"> |
|
|
453 |
<li class="selected"><a href="ArrayAssert.js.html" title="ArrayAssert.js">ArrayAssert.js</a></li> |
|
|
454 |
<li class=""><a href="Assert.js.html" title="Assert.js">Assert.js</a></li> |
|
|
455 |
<li class=""><a href="DateAssert.js.html" title="DateAssert.js">DateAssert.js</a></li> |
|
|
456 |
<li class=""><a href="Mock.js.html" title="Mock.js">Mock.js</a></li> |
|
|
457 |
<li class=""><a href="ObjectAssert.js.html" title="ObjectAssert.js">ObjectAssert.js</a></li> |
|
|
458 |
<li class=""><a href="TestCase.js.html" title="TestCase.js">TestCase.js</a></li> |
|
|
459 |
<li class=""><a href="TestFormat.js.html" title="TestFormat.js">TestFormat.js</a></li> |
|
|
460 |
<li class=""><a href="TestManager.js.html" title="TestManager.js">TestManager.js</a></li> |
|
|
461 |
<li class=""><a href="TestReporter.js.html" title="TestReporter.js">TestReporter.js</a></li> |
|
|
462 |
<li class=""><a href="TestRunner.js.html" title="TestRunner.js">TestRunner.js</a></li> |
|
|
463 |
<li class=""><a href="TestSuite.js.html" title="TestSuite.js">TestSuite.js</a></li> |
|
|
464 |
</ul> |
|
|
465 |
</div> |
|
|
466 |
|
|
|
467 |
|
|
|
468 |
|
|
|
469 |
|
|
|
470 |
|
|
|
471 |
</div> |
|
|
472 |
</div> |
|
|
473 |
</div> |
|
|
474 |
<div id="ft"> |
|
|
475 |
<hr /> |
|
|
476 |
Copyright © 2009 Yahoo! Inc. All rights reserved. |
|
|
477 |
</div> |
|
|
478 |
</div> |
|
|
479 |
<script type="text/javascript"> |
|
|
480 |
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": "", "host": "Test.Reporter", "name": "addField", "url": "Test.Reporter.html#method_addField", "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": "", "host": "Test.ArrayAssert", "name": "contains", "url": "Test.ArrayAssert.html#method_contains", "type": "method"}, {"access": "", "host": "Test.ArrayAssert", "name": "containsItems", "url": "Test.ArrayAssert.html#method_containsItems", "type": "method"}, {"access": "", "host": "Test.ArrayAssert", "name": "containsMatch", "url": "Test.ArrayAssert.html#method_containsMatch", "type": "method"}, {"access": "private", "host": "Test.Runner", "name": "_cur", "url": "Test.Runner.html#property__cur", "type": "property"}, {"access": "private", "host": "Test.Manager", "name": "_curPage", "url": "Test.Manager.html#property__curPage", "type": "property"}, {"access": "", "host": "Test.DateAssert", "name": "datesAreEqual", "url": "Test.DateAssert.html#method_datesAreEqual", "type": "method"}, {"access": "", "host": "Test.Wait", "name": "delay", "url": "Test.Wait.html#property_delay", "type": "property"}, {"access": "", "host": "Test.Reporter", "name": "destroy", "url": "Test.Reporter.html#method_destroy", "type": "method"}, {"access": "", "host": "Test.Runner", "name": "disableLogging", "url": "Test.Runner.html#method_disableLogging", "type": "method"}, {"access": "", "host": "Test.ArrayAssert", "name": "doesNotContain", "url": "Test.ArrayAssert.html#method_doesNotContain", "type": "method"}, {"access": "", "host": "Test.ArrayAssert", "name": "doesNotContainItems", "url": "Test.ArrayAssert.html#method_doesNotContainItems", "type": "method"}, {"access": "", "host": "Test.ArrayAssert", "name": "doesNotContainMatch", "url": "Test.ArrayAssert.html#method_doesNotContainMatch", "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": "private", "host": "Test.Reporter", "name": "_fields", "url": "Test.Reporter.html#property__fields", "type": "property"}, {"access": "", "host": "Test.TestNode", "name": "firstChild", "url": "Test.TestNode.html#property_firstChild", "type": "property"}, {"access": "private", "host": "Test.Reporter", "name": "_form", "url": "Test.Reporter.html#property__form", "type": "property"}, {"access": "", "host": "Test.Reporter", "name": "format", "url": "Test.Reporter.html#property_format", "type": "property"}, {"access": "protected", "host": "Assert", "name": "_formatMessage", "url": "Assert.html#method__formatMessage", "type": "method"}, {"access": "private", "host": "Test.Manager", "name": "_frame", "url": "Test.Manager.html#property__frame", "type": "property"}, {"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": "private", "host": "Test.Manager", "name": "_handleTestRunnerComplete", "url": "Test.Manager.html#method__handleTestRunnerComplete", "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": "private", "host": "Test.Reporter", "name": "_iframe", "url": "Test.Reporter.html#property__iframe", "type": "property"}, {"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": "Test.ArrayAssert", "name": "indexOf", "url": "Test.ArrayAssert.html#method_indexOf", "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": "Test.ArrayAssert", "name": "isEmpty", "url": "Test.ArrayAssert.html#method_isEmpty", "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": "Test.ArrayAssert", "name": "isNotEmpty", "url": "Test.ArrayAssert.html#method_isNotEmpty", "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.ArrayAssert", "name": "itemsAreEqual", "url": "Test.ArrayAssert.html#method_itemsAreEqual", "type": "method"}, {"access": "", "host": "Test.ArrayAssert", "name": "itemsAreEquivalent", "url": "Test.ArrayAssert.html#method_itemsAreEquivalent", "type": "method"}, {"access": "", "host": "Test.ArrayAssert", "name": "itemsAreSame", "url": "Test.ArrayAssert.html#method_itemsAreSame", "type": "method"}, {"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": "", "host": "Test.ArrayAssert", "name": "lastIndexOf", "url": "Test.ArrayAssert.html#method_lastIndexOf", "type": "method"}, {"access": "", "host": "Test.Manager", "name": "load", "url": "Test.Manager.html#method_load", "type": "method"}, {"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.Manager", "name": "_logger", "url": "Test.Manager.html#property__logger", "type": "property"}, {"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": "private", "host": "Test.Manager", "name": "_pages", "url": "Test.Manager.html#property__pages", "type": "property"}, {"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": "private", "host": "Test.Manager", "name": "_processResults", "url": "Test.Manager.html#method__processResults", "type": "method"}, {"access": "", "host": "Test.Reporter", "name": "report", "url": "Test.Reporter.html#method_report", "type": "method"}, {"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": "private", "host": "Test.Manager", "name": "_results", "url": "Test.Manager.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.Manager", "name": "_run", "url": "Test.Manager.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.Manager", "name": "setPages", "url": "Test.Manager.html#method_setPages", "type": "method"}, {"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.Manager", "name": "start", "url": "Test.Manager.html#method_start", "type": "method"}, {"access": "", "host": "Test.Manager", "name": "stop", "url": "Test.Manager.html#method_stop", "type": "method"}, {"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.Manager", "name": "testmanagerbegin", "url": "Test.Manager.html#event_testmanagerbegin", "type": "event"}, {"access": "", "host": "Test.Manager", "name": "TEST_MANAGER_BEGIN_EVENT", "url": "Test.Manager.html#property_TEST_MANAGER_BEGIN_EVENT", "type": "property"}, {"access": "", "host": "Test.Manager", "name": "testmanagercomplete", "url": "Test.Manager.html#event_testmanagercomplete", "type": "event"}, {"access": "", "host": "Test.Manager", "name": "TEST_MANAGER_COMPLETE_EVENT", "url": "Test.Manager.html#property_TEST_MANAGER_COMPLETE_EVENT", "type": "property"}, {"access": "", "host": "Test.TestNode", "name": "testObject", "url": "Test.TestNode.html#property_testObject", "type": "property"}, {"access": "", "host": "Test.Manager", "name": "testpagebegin", "url": "Test.Manager.html#event_testpagebegin", "type": "event"}, {"access": "", "host": "Test.Manager", "name": "TEST_PAGE_BEGIN_EVENT", "url": "Test.Manager.html#property_TEST_PAGE_BEGIN_EVENT", "type": "property"}, {"access": "", "host": "Test.Manager", "name": "testpagecomplete", "url": "Test.Manager.html#event_testpagecomplete", "type": "event"}, {"access": "", "host": "Test.Manager", "name": "TEST_PAGE_COMPLETE_EVENT", "url": "Test.Manager.html#property_TEST_PAGE_COMPLETE_EVENT", "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": "private", "host": "Test.Manager", "name": "_timeoutId", "url": "Test.Manager.html#property__timeoutId", "type": "property"}, {"access": "", "host": "Test.DateAssert", "name": "timesAreEqual", "url": "Test.DateAssert.html#method_timesAreEqual", "type": "method"}, {"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": "Test.Reporter", "name": "url", "url": "Test.Reporter.html#property_url", "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"}]; |
|
|
481 |
</script> |
|
|
482 |
</body> |
|
|
483 |
</html> |