|
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 TestManager.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 |
> TestManager.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> <span class="nx">Y</span><span class="o">.</span><span class="nx">namespace</span><span class="o">(</span><span class="s2">"Test"</span><span class="o">);</span> |
|
|
51 |
|
|
|
52 |
<span class="c">/**</span> |
|
|
53 |
<span class="c"> * Runs pages containing test suite definitions.</span> |
|
|
54 |
<span class="c"> * @namespace Test</span> |
|
|
55 |
<span class="c"> * @class Manager</span> |
|
|
56 |
<span class="c"> * @static</span> |
|
|
57 |
<span class="c"> */</span> |
|
|
58 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">Test</span><span class="o">.</span><span class="nx">Manager</span> <span class="o">=</span> <span class="o">{</span> |
|
|
59 |
|
|
|
60 |
<span class="c">/**</span> |
|
|
61 |
<span class="c"> * Constant for the testpagebegin custom event</span> |
|
|
62 |
<span class="c"> * @property TEST_PAGE_BEGIN_EVENT</span> |
|
|
63 |
<span class="c"> * @static</span> |
|
|
64 |
<span class="c"> * @type string</span> |
|
|
65 |
<span class="c"> * @final</span> |
|
|
66 |
<span class="c"> */</span> |
|
|
67 |
<span class="nx">TEST_PAGE_BEGIN_EVENT</span> <span class="o">:</span> <span class="s2">"testpagebegin"</span><span class="o">,</span> |
|
|
68 |
|
|
|
69 |
<span class="c">/**</span> |
|
|
70 |
<span class="c"> * Constant for the testpagecomplete custom event</span> |
|
|
71 |
<span class="c"> * @property TEST_PAGE_COMPLETE_EVENT</span> |
|
|
72 |
<span class="c"> * @static</span> |
|
|
73 |
<span class="c"> * @type string</span> |
|
|
74 |
<span class="c"> * @final</span> |
|
|
75 |
<span class="c"> */</span> |
|
|
76 |
<span class="nx">TEST_PAGE_COMPLETE_EVENT</span> <span class="o">:</span> <span class="s2">"testpagecomplete"</span><span class="o">,</span> |
|
|
77 |
|
|
|
78 |
<span class="c">/**</span> |
|
|
79 |
<span class="c"> * Constant for the testmanagerbegin custom event</span> |
|
|
80 |
<span class="c"> * @property TEST_MANAGER_BEGIN_EVENT</span> |
|
|
81 |
<span class="c"> * @static</span> |
|
|
82 |
<span class="c"> * @type string</span> |
|
|
83 |
<span class="c"> * @final</span> |
|
|
84 |
<span class="c"> */</span> |
|
|
85 |
<span class="nx">TEST_MANAGER_BEGIN_EVENT</span> <span class="o">:</span> <span class="s2">"testmanagerbegin"</span><span class="o">,</span> |
|
|
86 |
|
|
|
87 |
<span class="c">/**</span> |
|
|
88 |
<span class="c"> * Constant for the testmanagercomplete custom event</span> |
|
|
89 |
<span class="c"> * @property TEST_MANAGER_COMPLETE_EVENT</span> |
|
|
90 |
<span class="c"> * @static</span> |
|
|
91 |
<span class="c"> * @type string</span> |
|
|
92 |
<span class="c"> * @final</span> |
|
|
93 |
<span class="c"> */</span> |
|
|
94 |
<span class="nx">TEST_MANAGER_COMPLETE_EVENT</span> <span class="o">:</span> <span class="s2">"testmanagercomplete"</span><span class="o">,</span> |
|
|
95 |
|
|
|
96 |
<span class="c">//-------------------------------------------------------------------------</span> |
|
|
97 |
<span class="c"></span> <span class="c">// Private Properties</span> |
|
|
98 |
<span class="c"></span> <span class="c">//-------------------------------------------------------------------------</span> |
|
|
99 |
<span class="c"></span> |
|
|
100 |
|
|
|
101 |
<span class="c">/**</span> |
|
|
102 |
<span class="c"> * The URL of the page currently being executed.</span> |
|
|
103 |
<span class="c"> * @type String</span> |
|
|
104 |
<span class="c"> * @private</span> |
|
|
105 |
<span class="c"> * @property _curPage</span> |
|
|
106 |
<span class="c"> * @static</span> |
|
|
107 |
<span class="c"> */</span> |
|
|
108 |
<span class="nx">_curPage</span> <span class="o">:</span> <span class="kc">null</span><span class="o">,</span> |
|
|
109 |
|
|
|
110 |
<span class="c">/**</span> |
|
|
111 |
<span class="c"> * The frame used to load and run tests.</span> |
|
|
112 |
<span class="c"> * @type Window</span> |
|
|
113 |
<span class="c"> * @private</span> |
|
|
114 |
<span class="c"> * @property _frame</span> |
|
|
115 |
<span class="c"> * @static</span> |
|
|
116 |
<span class="c"> */</span> |
|
|
117 |
<span class="nx">_frame</span> <span class="o">:</span> <span class="kc">null</span><span class="o">,</span> |
|
|
118 |
|
|
|
119 |
<span class="c">/**</span> |
|
|
120 |
<span class="c"> * The logger used to output results from the various tests.</span> |
|
|
121 |
<span class="c"> * @type YAHOO.tool.TestLogger</span> |
|
|
122 |
<span class="c"> * @private</span> |
|
|
123 |
<span class="c"> * @property _logger</span> |
|
|
124 |
<span class="c"> * @static</span> |
|
|
125 |
<span class="c"> */</span> |
|
|
126 |
<span class="nx">_logger</span> <span class="o">:</span> <span class="kc">null</span><span class="o">,</span> |
|
|
127 |
|
|
|
128 |
<span class="c">/**</span> |
|
|
129 |
<span class="c"> * The timeout ID for the next iteration through the tests.</span> |
|
|
130 |
<span class="c"> * @type int</span> |
|
|
131 |
<span class="c"> * @private</span> |
|
|
132 |
<span class="c"> * @property _timeoutId</span> |
|
|
133 |
<span class="c"> * @static</span> |
|
|
134 |
<span class="c"> */</span> |
|
|
135 |
<span class="nx">_timeoutId</span> <span class="o">:</span> <span class="m">0</span><span class="o">,</span> |
|
|
136 |
|
|
|
137 |
<span class="c">/**</span> |
|
|
138 |
<span class="c"> * Array of pages to load.</span> |
|
|
139 |
<span class="c"> * @type String[]</span> |
|
|
140 |
<span class="c"> * @private</span> |
|
|
141 |
<span class="c"> * @property _pages</span> |
|
|
142 |
<span class="c"> * @static</span> |
|
|
143 |
<span class="c"> */</span> |
|
|
144 |
<span class="nx">_pages</span> <span class="o">:</span> <span class="o">[],</span> |
|
|
145 |
|
|
|
146 |
<span class="c">/**</span> |
|
|
147 |
<span class="c"> * Aggregated results</span> |
|
|
148 |
<span class="c"> * @type Object</span> |
|
|
149 |
<span class="c"> * @private</span> |
|
|
150 |
<span class="c"> * @property _results</span> |
|
|
151 |
<span class="c"> * @static</span> |
|
|
152 |
<span class="c"> */</span> |
|
|
153 |
<span class="nx">_results</span><span class="o">:</span> <span class="kc">null</span><span class="o">,</span> |
|
|
154 |
|
|
|
155 |
<span class="c">//-------------------------------------------------------------------------</span> |
|
|
156 |
<span class="c"></span> <span class="c">// Private Methods</span> |
|
|
157 |
<span class="c"></span> <span class="c">//-------------------------------------------------------------------------</span> |
|
|
158 |
<span class="c"></span> |
|
|
159 |
<span class="c">/**</span> |
|
|
160 |
<span class="c"> * Handles TestRunner.COMPLETE_EVENT, storing the results and beginning</span> |
|
|
161 |
<span class="c"> * the loop again.</span> |
|
|
162 |
<span class="c"> * @param {Object} data Data about the event.</span> |
|
|
163 |
<span class="c"> * @return {Void}</span> |
|
|
164 |
<span class="c"> * @private</span> |
|
|
165 |
<span class="c"> * @static</span> |
|
|
166 |
<span class="c"> */</span> |
|
|
167 |
<span class="nx">_handleTestRunnerComplete</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">data</span><span class="o">)</span> <span class="o">{</span> |
|
|
168 |
|
|
|
169 |
<span class="k">this</span><span class="o">.</span><span class="nx">fireEvent</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">TEST_PAGE_COMPLETE_EVENT</span><span class="o">,</span> <span class="o">{</span> |
|
|
170 |
<span class="nx">page</span><span class="o">:</span> <span class="k">this</span><span class="o">.</span><span class="nx">_curPage</span><span class="o">,</span> |
|
|
171 |
<span class="nx">results</span><span class="o">:</span> <span class="nx">data</span><span class="o">.</span><span class="nx">results</span> |
|
|
172 |
<span class="o">});</span> |
|
|
173 |
|
|
|
174 |
<span class="c">//save results</span> |
|
|
175 |
<span class="c"></span> <span class="c">//this._results[this.curPage] = data.results;</span> |
|
|
176 |
<span class="c"></span> |
|
|
177 |
<span class="c">//process 'em</span> |
|
|
178 |
<span class="c"></span> <span class="k">this</span><span class="o">.</span><span class="nx">_processResults</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_curPage</span><span class="o">,</span> <span class="nx">data</span><span class="o">.</span><span class="nx">results</span><span class="o">);</span> |
|
|
179 |
|
|
|
180 |
<span class="k">this</span><span class="o">.</span><span class="nx">_logger</span><span class="o">.</span><span class="nx">clearTestRunner</span><span class="o">();</span> |
|
|
181 |
|
|
|
182 |
<span class="c">//if there's more to do, set a timeout to begin again</span> |
|
|
183 |
<span class="c"></span> <span class="k">if</span> <span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_pages</span><span class="o">.</span><span class="nx">length</span><span class="o">){</span> |
|
|
184 |
<span class="k">this</span><span class="o">.</span><span class="nx">_timeoutId</span> <span class="o">=</span> <span class="nx">setTimeout</span><span class="o">(</span><span class="k">function</span><span class="o">(){</span> |
|
|
185 |
<span class="nx">YAHOO</span><span class="o">.</span><span class="nx">tool</span><span class="o">.</span><span class="nx">TestManager</span><span class="o">.</span><span class="nx">_run</span><span class="o">();</span> |
|
|
186 |
<span class="o">},</span> <span class="m">1000</span><span class="o">);</span> |
|
|
187 |
<span class="o">}</span> <span class="k">else</span> <span class="o">{</span> |
|
|
188 |
<span class="k">this</span><span class="o">.</span><span class="nx">fireEvent</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">TEST_MANAGER_COMPLETE_EVENT</span><span class="o">,</span> <span class="k">this</span><span class="o">.</span><span class="nx">_results</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"> * Processes the results of a test page run, outputting log messages</span> |
|
|
194 |
<span class="c"> * for failed tests.</span> |
|
|
195 |
<span class="c"> * @return {Void}</span> |
|
|
196 |
<span class="c"> * @private</span> |
|
|
197 |
<span class="c"> * @static</span> |
|
|
198 |
<span class="c"> */</span> |
|
|
199 |
<span class="nx">_processResults</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">page</span><span class="o">,</span> <span class="nx">results</span><span class="o">)</span> <span class="o">{</span> |
|
|
200 |
|
|
|
201 |
<span class="k">var</span> <span class="nx">r</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_results</span><span class="o">;</span> |
|
|
202 |
|
|
|
203 |
<span class="nx">r</span><span class="o">.</span><span class="nx">passed</span> <span class="o">+=</span> <span class="nx">results</span><span class="o">.</span><span class="nx">passed</span><span class="o">;</span> |
|
|
204 |
<span class="nx">r</span><span class="o">.</span><span class="nx">failed</span> <span class="o">+=</span> <span class="nx">results</span><span class="o">.</span><span class="nx">failed</span><span class="o">;</span> |
|
|
205 |
<span class="nx">r</span><span class="o">.</span><span class="nx">ignored</span> <span class="o">+=</span> <span class="nx">results</span><span class="o">.</span><span class="nx">ignored</span><span class="o">;</span> |
|
|
206 |
<span class="nx">r</span><span class="o">.</span><span class="nx">total</span> <span class="o">+=</span> <span class="nx">results</span><span class="o">.</span><span class="nx">total</span><span class="o">;</span> |
|
|
207 |
|
|
|
208 |
<span class="k">if</span> <span class="o">(</span><span class="nx">results</span><span class="o">.</span><span class="nx">failed</span><span class="o">){</span> |
|
|
209 |
<span class="nx">r</span><span class="o">.</span><span class="nx">failedPages</span><span class="o">.</span><span class="nx">push</span><span class="o">(</span><span class="nx">page</span><span class="o">);</span> |
|
|
210 |
<span class="o">}</span> <span class="k">else</span> <span class="o">{</span> |
|
|
211 |
<span class="nx">r</span><span class="o">.</span><span class="nx">passedPages</span><span class="o">.</span><span class="nx">push</span><span class="o">(</span><span class="nx">page</span><span class="o">);</span> |
|
|
212 |
<span class="o">}</span> |
|
|
213 |
|
|
|
214 |
<span class="nx">results</span><span class="o">.</span><span class="nx">name</span> <span class="o">=</span> <span class="nx">page</span><span class="o">;</span> |
|
|
215 |
<span class="nx">results</span><span class="o">.</span><span class="nx">type</span> <span class="o">=</span> <span class="s2">"page"</span><span class="o">;</span> |
|
|
216 |
|
|
|
217 |
<span class="nx">r</span><span class="o">[</span><span class="nx">page</span><span class="o">]</span> <span class="o">=</span> <span class="nx">results</span><span class="o">;</span> |
|
|
218 |
<span class="o">},</span> |
|
|
219 |
|
|
|
220 |
<span class="c">/**</span> |
|
|
221 |
<span class="c"> * Loads the next test page into the iframe.</span> |
|
|
222 |
<span class="c"> * @return {Void}</span> |
|
|
223 |
<span class="c"> * @static</span> |
|
|
224 |
<span class="c"> * @private</span> |
|
|
225 |
<span class="c"> */</span> |
|
|
226 |
<span class="nx">_run</span> <span class="o">:</span> <span class="k">function</span> <span class="o">()</span> <span class="o">{</span> |
|
|
227 |
|
|
|
228 |
<span class="c">//set the current page</span> |
|
|
229 |
<span class="c"></span> <span class="k">this</span><span class="o">.</span><span class="nx">_curPage</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_pages</span><span class="o">.</span><span class="nx">shift</span><span class="o">();</span> |
|
|
230 |
|
|
|
231 |
<span class="k">this</span><span class="o">.</span><span class="nx">fireEvent</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">TEST_PAGE_BEGIN_EVENT</span><span class="o">,</span> <span class="k">this</span><span class="o">.</span><span class="nx">_curPage</span><span class="o">);</span> |
|
|
232 |
|
|
|
233 |
<span class="c">//load the frame - destroy history in case there are other iframes that</span> |
|
|
234 |
<span class="c"></span> <span class="c">//need testing</span> |
|
|
235 |
<span class="c"></span> <span class="k">this</span><span class="o">.</span><span class="nx">_frame</span><span class="o">.</span><span class="nx">location</span><span class="o">.</span><span class="nx">replace</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_curPage</span><span class="o">);</span> |
|
|
236 |
|
|
|
237 |
<span class="o">},</span> |
|
|
238 |
|
|
|
239 |
<span class="c">//-------------------------------------------------------------------------</span> |
|
|
240 |
<span class="c"></span> <span class="c">// Public Methods</span> |
|
|
241 |
<span class="c"></span> <span class="c">//-------------------------------------------------------------------------</span> |
|
|
242 |
<span class="c"></span> |
|
|
243 |
<span class="c">/**</span> |
|
|
244 |
<span class="c"> * Signals that a test page has been loaded. This should be called from</span> |
|
|
245 |
<span class="c"> * within the test page itself to notify the TestManager that it is ready.</span> |
|
|
246 |
<span class="c"> * @return {Void}</span> |
|
|
247 |
<span class="c"> * @static</span> |
|
|
248 |
<span class="c"> */</span> |
|
|
249 |
<span class="nx">load</span> <span class="o">:</span> <span class="k">function</span> <span class="o">()</span> <span class="o">{</span> |
|
|
250 |
<span class="k">if</span> <span class="o">(</span><span class="nx">parent</span><span class="o">.</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">tool</span><span class="o">.</span><span class="nx">TestManager</span> <span class="o">!==</span> <span class="k">this</span><span class="o">){</span> |
|
|
251 |
<span class="nx">parent</span><span class="o">.</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">tool</span><span class="o">.</span><span class="nx">TestManager</span><span class="o">.</span><span class="nx">load</span><span class="o">();</span> |
|
|
252 |
<span class="o">}</span> <span class="k">else</span> <span class="o">{</span> |
|
|
253 |
|
|
|
254 |
<span class="k">if</span> <span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_frame</span><span class="o">)</span> <span class="o">{</span> |
|
|
255 |
<span class="c">//assign event handling</span> |
|
|
256 |
<span class="c"></span> <span class="k">var</span> <span class="nx">TestRunner</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">_frame</span><span class="o">.</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">tool</span><span class="o">.</span><span class="nx">TestRunner</span><span class="o">;</span> |
|
|
257 |
|
|
|
258 |
<span class="k">this</span><span class="o">.</span><span class="nx">_logger</span><span class="o">.</span><span class="nx">setTestRunner</span><span class="o">(</span><span class="nx">TestRunner</span><span class="o">);</span> |
|
|
259 |
<span class="nx">TestRunner</span><span class="o">.</span><span class="nx">subscribe</span><span class="o">(</span><span class="nx">TestRunner</span><span class="o">.</span><span class="nx">COMPLETE_EVENT</span><span class="o">,</span> <span class="k">this</span><span class="o">.</span><span class="nx">_handleTestRunnerComplete</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="o">);</span> |
|
|
260 |
|
|
|
261 |
<span class="c">//run it</span> |
|
|
262 |
<span class="c"></span> <span class="nx">TestRunner</span><span class="o">.</span><span class="nx">run</span><span class="o">();</span> |
|
|
263 |
<span class="o">}</span> |
|
|
264 |
<span class="o">}</span> |
|
|
265 |
<span class="o">},</span> |
|
|
266 |
|
|
|
267 |
<span class="c">/**</span> |
|
|
268 |
<span class="c"> * Sets the pages to be loaded.</span> |
|
|
269 |
<span class="c"> * @param {String[]} pages An array of URLs to load.</span> |
|
|
270 |
<span class="c"> * @return {Void}</span> |
|
|
271 |
<span class="c"> * @static</span> |
|
|
272 |
<span class="c"> */</span> |
|
|
273 |
<span class="nx">setPages</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">pages</span><span class="o">)</span> <span class="o">{</span> |
|
|
274 |
<span class="k">this</span><span class="o">.</span><span class="nx">_pages</span> <span class="o">=</span> <span class="nx">pages</span><span class="o">;</span> |
|
|
275 |
<span class="o">},</span> |
|
|
276 |
|
|
|
277 |
<span class="c">/**</span> |
|
|
278 |
<span class="c"> * Begins the process of running the tests.</span> |
|
|
279 |
<span class="c"> * @return {Void}</span> |
|
|
280 |
<span class="c"> * @static</span> |
|
|
281 |
<span class="c"> */</span> |
|
|
282 |
<span class="nx">start</span> <span class="o">:</span> <span class="k">function</span> <span class="o">()</span> <span class="o">{</span> |
|
|
283 |
|
|
|
284 |
<span class="k">if</span> <span class="o">(!</span><span class="k">this</span><span class="o">.</span><span class="nx">_initialized</span><span class="o">)</span> <span class="o">{</span> |
|
|
285 |
|
|
|
286 |
<span class="c">/**</span> |
|
|
287 |
<span class="c"> * Fires when loading a test page</span> |
|
|
288 |
<span class="c"> * @event testpagebegin</span> |
|
|
289 |
<span class="c"> * @param curPage {string} the page being loaded</span> |
|
|
290 |
<span class="c"> * @static</span> |
|
|
291 |
<span class="c"> */</span> |
|
|
292 |
<span class="k">this</span><span class="o">.</span><span class="nx">createEvent</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">TEST_PAGE_BEGIN_EVENT</span><span class="o">);</span> |
|
|
293 |
|
|
|
294 |
<span class="c">/**</span> |
|
|
295 |
<span class="c"> * Fires when a test page is complete</span> |
|
|
296 |
<span class="c"> * @event testpagecomplete</span> |
|
|
297 |
<span class="c"> * @param obj {page: string, results: object} the name of the</span> |
|
|
298 |
<span class="c"> * page that was loaded, and the test suite results</span> |
|
|
299 |
<span class="c"> * @static</span> |
|
|
300 |
<span class="c"> */</span> |
|
|
301 |
<span class="k">this</span><span class="o">.</span><span class="nx">createEvent</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">TEST_PAGE_COMPLETE_EVENT</span><span class="o">);</span> |
|
|
302 |
|
|
|
303 |
<span class="c">/**</span> |
|
|
304 |
<span class="c"> * Fires when the test manager starts running all test pages</span> |
|
|
305 |
<span class="c"> * @event testmanagerbegin</span> |
|
|
306 |
<span class="c"> * @static</span> |
|
|
307 |
<span class="c"> */</span> |
|
|
308 |
<span class="k">this</span><span class="o">.</span><span class="nx">createEvent</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">TEST_MANAGER_BEGIN_EVENT</span><span class="o">);</span> |
|
|
309 |
|
|
|
310 |
<span class="c">/**</span> |
|
|
311 |
<span class="c"> * Fires when the test manager finishes running all test pages. External</span> |
|
|
312 |
<span class="c"> * test runners should subscribe to this event in order to get the</span> |
|
|
313 |
<span class="c"> * aggregated test results.</span> |
|
|
314 |
<span class="c"> * @event testmanagercomplete</span> |
|
|
315 |
<span class="c"> * @param obj { pages_passed: int, pages_failed: int, tests_passed: int</span> |
|
|
316 |
<span class="c"> * tests_failed: int, passed: string[], failed: string[],</span> |
|
|
317 |
<span class="c"> * page_results: {} }</span> |
|
|
318 |
<span class="c"> * @static</span> |
|
|
319 |
<span class="c"> */</span> |
|
|
320 |
<span class="k">this</span><span class="o">.</span><span class="nx">createEvent</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">TEST_MANAGER_COMPLETE_EVENT</span><span class="o">);</span> |
|
|
321 |
|
|
|
322 |
<span class="c">//create iframe if not already available</span> |
|
|
323 |
<span class="c"></span> <span class="k">if</span> <span class="o">(!</span><span class="k">this</span><span class="o">.</span><span class="nx">_frame</span><span class="o">){</span> |
|
|
324 |
<span class="k">var</span> <span class="nx">frame</span> <span class="o">=</span> <span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">"iframe"</span><span class="o">);</span> |
|
|
325 |
<span class="nx">frame</span><span class="o">.</span><span class="nx">style</span><span class="o">.</span><span class="nx">visibility</span> <span class="o">=</span> <span class="s2">"hidden"</span><span class="o">;</span> |
|
|
326 |
<span class="nx">frame</span><span class="o">.</span><span class="nx">style</span><span class="o">.</span><span class="nx">position</span> <span class="o">=</span> <span class="s2">"absolute"</span><span class="o">;</span> |
|
|
327 |
<span class="nb">document</span><span class="o">.</span><span class="nx">body</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nx">frame</span><span class="o">);</span> |
|
|
328 |
<span class="k">this</span><span class="o">.</span><span class="nx">_frame</span> <span class="o">=</span> <span class="nx">frame</span><span class="o">.</span><span class="nx">contentWindow</span> <span class="o">||</span> <span class="nx">frame</span><span class="o">.</span><span class="nx">contentDocument</span><span class="o">.</span><span class="nx">parentWindow</span><span class="o">;</span> |
|
|
329 |
<span class="o">}</span> |
|
|
330 |
|
|
|
331 |
<span class="c">//create test logger if not already available</span> |
|
|
332 |
<span class="c"></span> <span class="c">//if (!this._logger){</span> |
|
|
333 |
<span class="c"></span> <span class="c">// this._logger = new YAHOO.tool.TestLogger();</span> |
|
|
334 |
<span class="c"></span> <span class="c">//}</span> |
|
|
335 |
<span class="c"></span> |
|
|
336 |
<span class="k">this</span><span class="o">.</span><span class="nx">_initialized</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span> |
|
|
337 |
<span class="o">}</span> |
|
|
338 |
|
|
|
339 |
|
|
|
340 |
<span class="c">// reset the results cache</span> |
|
|
341 |
<span class="c"></span> <span class="k">this</span><span class="o">.</span><span class="nx">_results</span> <span class="o">=</span> <span class="o">{</span> |
|
|
342 |
|
|
|
343 |
<span class="nx">passed</span><span class="o">:</span> <span class="m">0</span><span class="o">,</span> |
|
|
344 |
<span class="nx">failed</span><span class="o">:</span> <span class="m">0</span><span class="o">,</span> |
|
|
345 |
<span class="nx">ignored</span><span class="o">:</span> <span class="m">0</span><span class="o">,</span> |
|
|
346 |
<span class="nx">total</span><span class="o">:</span> <span class="m">0</span><span class="o">,</span> |
|
|
347 |
<span class="nx">type</span><span class="o">:</span> <span class="s2">"report"</span><span class="o">,</span> |
|
|
348 |
<span class="nx">name</span><span class="o">:</span> <span class="s2">"YUI Test Results"</span><span class="o">,</span> |
|
|
349 |
<span class="nx">failedPages</span><span class="o">:[],</span> |
|
|
350 |
<span class="nx">passedPages</span><span class="o">:[]</span> |
|
|
351 |
<span class="c">/*</span> |
|
|
352 |
<span class="c"> // number of pages that pass</span> |
|
|
353 |
<span class="c"> pages_passed: 0,</span> |
|
|
354 |
<span class="c"> // number of pages that fail</span> |
|
|
355 |
<span class="c"> pages_failed: 0,</span> |
|
|
356 |
<span class="c"> // total number of tests passed</span> |
|
|
357 |
<span class="c"> tests_passed: 0,</span> |
|
|
358 |
<span class="c"> // total number of tests failed</span> |
|
|
359 |
<span class="c"> tests_failed: 0,</span> |
|
|
360 |
<span class="c"> // array of pages that passed</span> |
|
|
361 |
<span class="c"> passed: [],</span> |
|
|
362 |
<span class="c"> // array of pages that failed</span> |
|
|
363 |
<span class="c"> failed: [],</span> |
|
|
364 |
<span class="c"> // map of full results for each page</span> |
|
|
365 |
<span class="c"> page_results: {}*/</span> |
|
|
366 |
<span class="o">};</span> |
|
|
367 |
|
|
|
368 |
<span class="k">this</span><span class="o">.</span><span class="nx">fireEvent</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">TEST_MANAGER_BEGIN_EVENT</span><span class="o">,</span> <span class="kc">null</span><span class="o">);</span> |
|
|
369 |
<span class="k">this</span><span class="o">.</span><span class="nx">_run</span><span class="o">();</span> |
|
|
370 |
|
|
|
371 |
<span class="o">},</span> |
|
|
372 |
|
|
|
373 |
<span class="c">/**</span> |
|
|
374 |
<span class="c"> * Stops the execution of tests.</span> |
|
|
375 |
<span class="c"> * @return {Void}</span> |
|
|
376 |
<span class="c"> * @static</span> |
|
|
377 |
<span class="c"> */</span> |
|
|
378 |
<span class="nx">stop</span> <span class="o">:</span> <span class="k">function</span> <span class="o">()</span> <span class="o">{</span> |
|
|
379 |
<span class="nx">clearTimeout</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_timeoutId</span><span class="o">);</span> |
|
|
380 |
<span class="o">}</span> |
|
|
381 |
|
|
|
382 |
<span class="o">};</span> |
|
|
383 |
|
|
|
384 |
<span class="nx">Y</span><span class="o">.</span><span class="nx">mix</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">Test</span><span class="o">.</span><span class="nx">Manager</span><span class="o">,</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Event</span><span class="o">.</span><span class="nx">Target</span><span class="o">.</span><span class="nx">prototype</span><span class="o">);</span> |
|
|
385 |
</pre></div> |
|
|
386 |
|
|
|
387 |
</div> |
|
|
388 |
</div> |
|
|
389 |
</div> |
|
|
390 |
<div class="yui-b"> |
|
|
391 |
<div class="nav"> |
|
|
392 |
|
|
|
393 |
<div id="moduleList" class="module"> |
|
|
394 |
<h4>Modules</h4> |
|
|
395 |
<ul class="content"> |
|
|
396 |
<li class=""><a href="module_anim.html" title="anim">anim</a></li> |
|
|
397 |
<li class=""><a href="module_async-queue.html" title="async-queue">async-queue</a></li> |
|
|
398 |
<li class=""><a href="module_attribute.html" title="attribute">attribute</a></li> |
|
|
399 |
<li class=""><a href="module_base.html" title="base">base</a></li> |
|
|
400 |
<li class=""><a href="module_cache.html" title="cache">cache</a></li> |
|
|
401 |
<li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li> |
|
|
402 |
<li class=""><a href="module_collection.html" title="collection">collection</a></li> |
|
|
403 |
<li class=""><a href="module_console.html" title="console">console</a></li> |
|
|
404 |
<li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li> |
|
|
405 |
<li class=""><a href="module_cookie.html" title="cookie">cookie</a></li> |
|
|
406 |
<li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li> |
|
|
407 |
<li class=""><a href="module_datasource.html" title="datasource">datasource</a></li> |
|
|
408 |
<li class=""><a href="module_datatype.html" title="datatype">datatype</a></li> |
|
|
409 |
<li class=""><a href="module_dd.html" title="dd">dd</a></li> |
|
|
410 |
<li class=""><a href="module_dom.html" title="dom">dom</a></li> |
|
|
411 |
<li class=""><a href="module_dump.html" title="dump">dump</a></li> |
|
|
412 |
<li class=""><a href="module_event.html" title="event">event</a></li> |
|
|
413 |
<li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li> |
|
|
414 |
<li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li> |
|
|
415 |
<li class=""><a href="module_history.html" title="history">history</a></li> |
|
|
416 |
<li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li> |
|
|
417 |
<li class=""><a href="module_io.html" title="io">io</a></li> |
|
|
418 |
<li class=""><a href="module_json.html" title="json">json</a></li> |
|
|
419 |
<li class=""><a href="module_node.html" title="node">node</a></li> |
|
|
420 |
<li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li> |
|
|
421 |
<li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li> |
|
|
422 |
<li class=""><a href="module_oop.html" title="oop">oop</a></li> |
|
|
423 |
<li class=""><a href="module_overlay.html" title="overlay">overlay</a></li> |
|
|
424 |
<li class=""><a href="module_plugin.html" title="plugin">plugin</a></li> |
|
|
425 |
<li class=""><a href="module_profiler.html" title="profiler">profiler</a></li> |
|
|
426 |
<li class=""><a href="module_queue-promote.html" title="queue-promote">queue-promote</a></li> |
|
|
427 |
<li class=""><a href="module_slider.html" title="slider">slider</a></li> |
|
|
428 |
<li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li> |
|
|
429 |
<li class=""><a href="module_substitute.html" title="substitute">substitute</a></li> |
|
|
430 |
<li class="selected"><a href="module_test.html" title="test">test</a></li> |
|
|
431 |
<li class=""><a href="module_widget.html" title="widget">widget</a></li> |
|
|
432 |
<li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li> |
|
|
433 |
<li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li> |
|
|
434 |
<li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li> |
|
|
435 |
<li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li> |
|
|
436 |
<li class=""><a href="module_yui.html" title="yui">yui</a></li> |
|
|
437 |
</ul> |
|
|
438 |
</div> |
|
|
439 |
|
|
|
440 |
<div id="classList" class="module"> |
|
|
441 |
<h4>Classes</h4> |
|
|
442 |
<ul class="content"> |
|
|
443 |
<li class=""><a href="Assert.html" title="Assert">Assert</a></li> |
|
|
444 |
<li class=""><a href="Assert.ComparisonFailure.html" title="Assert.ComparisonFailure">Assert.ComparisonFailure</a></li> |
|
|
445 |
<li class=""><a href="Assert.Error.html" title="Assert.Error">Assert.Error</a></li> |
|
|
446 |
<li class=""><a href="Assert.ObjectAssert.html" title="Assert.ObjectAssert">Assert.ObjectAssert</a></li> |
|
|
447 |
<li class=""><a href="Assert.ShouldError.html" title="Assert.ShouldError">Assert.ShouldError</a></li> |
|
|
448 |
<li class=""><a href="Assert.ShouldFail.html" title="Assert.ShouldFail">Assert.ShouldFail</a></li> |
|
|
449 |
<li class=""><a href="Assert.UnexpectedError.html" title="Assert.UnexpectedError">Assert.UnexpectedError</a></li> |
|
|
450 |
<li class=""><a href="Assert.UnexpectedValue.html" title="Assert.UnexpectedValue">Assert.UnexpectedValue</a></li> |
|
|
451 |
<li class=""><a href="Test.ArrayAssert.html" title="Test.ArrayAssert">Test.ArrayAssert</a></li> |
|
|
452 |
<li class=""><a href="Test.Case.html" title="Test.Case">Test.Case</a></li> |
|
|
453 |
<li class=""><a href="Test.DateAssert.html" title="Test.DateAssert">Test.DateAssert</a></li> |
|
|
454 |
<li class=""><a href="Test.Format.Mock.html" title="Test.Format.Mock">Test.Format.Mock</a></li> |
|
|
455 |
<li class=""><a href="Test.Manager.html" title="Test.Manager">Test.Manager</a></li> |
|
|
456 |
<li class=""><a href="Test.Reporter.html" title="Test.Reporter">Test.Reporter</a></li> |
|
|
457 |
<li class=""><a href="Test.Runner.html" title="Test.Runner">Test.Runner</a></li> |
|
|
458 |
<li class=""><a href="Test.Suite.html" title="Test.Suite">Test.Suite</a></li> |
|
|
459 |
<li class=""><a href="Test.TestNode.html" title="Test.TestNode">Test.TestNode</a></li> |
|
|
460 |
<li class=""><a href="Test.Wait.html" title="Test.Wait">Test.Wait</a></li> |
|
|
461 |
</ul> |
|
|
462 |
</div> |
|
|
463 |
|
|
|
464 |
<div id="fileList" class="module"> |
|
|
465 |
<h4>Files</h4> |
|
|
466 |
<ul class="content"> |
|
|
467 |
<li class=""><a href="ArrayAssert.js.html" title="ArrayAssert.js">ArrayAssert.js</a></li> |
|
|
468 |
<li class=""><a href="Assert.js.html" title="Assert.js">Assert.js</a></li> |
|
|
469 |
<li class=""><a href="DateAssert.js.html" title="DateAssert.js">DateAssert.js</a></li> |
|
|
470 |
<li class=""><a href="Mock.js.html" title="Mock.js">Mock.js</a></li> |
|
|
471 |
<li class=""><a href="ObjectAssert.js.html" title="ObjectAssert.js">ObjectAssert.js</a></li> |
|
|
472 |
<li class=""><a href="TestCase.js.html" title="TestCase.js">TestCase.js</a></li> |
|
|
473 |
<li class=""><a href="TestFormat.js.html" title="TestFormat.js">TestFormat.js</a></li> |
|
|
474 |
<li class="selected"><a href="TestManager.js.html" title="TestManager.js">TestManager.js</a></li> |
|
|
475 |
<li class=""><a href="TestReporter.js.html" title="TestReporter.js">TestReporter.js</a></li> |
|
|
476 |
<li class=""><a href="TestRunner.js.html" title="TestRunner.js">TestRunner.js</a></li> |
|
|
477 |
<li class=""><a href="TestSuite.js.html" title="TestSuite.js">TestSuite.js</a></li> |
|
|
478 |
</ul> |
|
|
479 |
</div> |
|
|
480 |
|
|
|
481 |
|
|
|
482 |
|
|
|
483 |
|
|
|
484 |
|
|
|
485 |
</div> |
|
|
486 |
</div> |
|
|
487 |
</div> |
|
|
488 |
<div id="ft"> |
|
|
489 |
<hr /> |
|
|
490 |
Copyright © 2009 Yahoo! Inc. All rights reserved. |
|
|
491 |
</div> |
|
|
492 |
</div> |
|
|
493 |
<script type="text/javascript"> |
|
|
494 |
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"}]; |
|
|
495 |
</script> |
|
|
496 |
</body> |
|
|
497 |
</html> |