| changeset 0 | 40c8f766c9b8 |
| -1:000000000000 | 0:40c8f766c9b8 |
|---|---|
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 TestReporter.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.0b1</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 > TestReporter.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"> * An object capable of sending test results to a server.</span> |
|
54 <span class="c"> * @param {String} url The URL to submit the results to.</span> |
|
55 <span class="c"> * @param {Function} format (Optiona) A function that outputs the results in a specific format.</span> |
|
56 <span class="c"> * Default is Y.Test.Format.XML.</span> |
|
57 <span class="c"> * @constructor</span> |
|
58 <span class="c"> * @namespace Test</span> |
|
59 <span class="c"> * @class Reporter</span> |
|
60 <span class="c"> */</span> |
|
61 <span class="nx">Y</span><span class="o">.</span><span class="nx">Test</span><span class="o">.</span><span class="nx">Reporter</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">url</span><span class="o">,</span> <span class="nx">format</span><span class="o">)</span> <span class="o">{</span> |
|
62 |
|
63 <span class="c">/**</span> |
|
64 <span class="c"> * The URL to submit the data to.</span> |
|
65 <span class="c"> * @type String</span> |
|
66 <span class="c"> * @property url</span> |
|
67 <span class="c"> */</span> |
|
68 <span class="k">this</span><span class="o">.</span><span class="nx">url</span> <span class="o">=</span> <span class="nx">url</span><span class="o">;</span> |
|
69 |
|
70 <span class="c">/**</span> |
|
71 <span class="c"> * The formatting function to call when submitting the data.</span> |
|
72 <span class="c"> * @type Function</span> |
|
73 <span class="c"> * @property format</span> |
|
74 <span class="c"> */</span> |
|
75 <span class="k">this</span><span class="o">.</span><span class="nx">format</span> <span class="o">=</span> <span class="nx">format</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">Format</span><span class="o">.</span><span class="nx">XML</span><span class="o">;</span> |
|
76 |
|
77 <span class="c">/**</span> |
|
78 <span class="c"> * Extra fields to submit with the request.</span> |
|
79 <span class="c"> * @type Object</span> |
|
80 <span class="c"> * @property _fields</span> |
|
81 <span class="c"> * @private</span> |
|
82 <span class="c"> */</span> |
|
83 <span class="k">this</span><span class="o">.</span><span class="nx">_fields</span> <span class="o">=</span> <span class="k">new</span> <span class="nb">Object</span><span class="o">();</span> |
|
84 |
|
85 <span class="c">/**</span> |
|
86 <span class="c"> * The form element used to submit the results.</span> |
|
87 <span class="c"> * @type HTMLFormElement</span> |
|
88 <span class="c"> * @property _form</span> |
|
89 <span class="c"> * @private</span> |
|
90 <span class="c"> */</span> |
|
91 <span class="k">this</span><span class="o">.</span><span class="nx">_form</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span> |
|
92 |
|
93 <span class="c">/**</span> |
|
94 <span class="c"> * Iframe used as a target for form submission.</span> |
|
95 <span class="c"> * @type HTMLIFrameElement</span> |
|
96 <span class="c"> * @property _iframe</span> |
|
97 <span class="c"> * @private</span> |
|
98 <span class="c"> */</span> |
|
99 <span class="k">this</span><span class="o">.</span><span class="nx">_iframe</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span> |
|
100 <span class="o">};</span> |
|
101 |
|
102 <span class="nx">Y</span><span class="o">.</span><span class="nx">Test</span><span class="o">.</span><span class="nx">Reporter</span><span class="o">.</span><span class="nx">prototype</span> <span class="o">=</span> <span class="o">{</span> |
|
103 |
|
104 <span class="c">//restore missing constructor</span> |
|
105 <span class="c"></span> <span class="nx">constructor</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">Reporter</span><span class="o">,</span> |
|
106 |
|
107 <span class="c">/**</span> |
|
108 <span class="c"> * Adds a field to the form that submits the results.</span> |
|
109 <span class="c"> * @param {String} name The name of the field.</span> |
|
110 <span class="c"> * @param {Variant} value The value of the field.</span> |
|
111 <span class="c"> * @return {Void}</span> |
|
112 <span class="c"> * @method addField</span> |
|
113 <span class="c"> */</span> |
|
114 <span class="nx">addField</span> <span class="o">:</span> <span class="k">function</span> <span class="o">(</span><span class="nx">name</span><span class="o">,</span> <span class="nx">value</span><span class="o">){</span> |
|
115 <span class="k">this</span><span class="o">.</span><span class="nx">_fields</span><span class="o">[</span><span class="nx">name</span><span class="o">]</span> <span class="o">=</span> <span class="nx">value</span><span class="o">;</span> |
|
116 <span class="o">},</span> |
|
117 |
|
118 <span class="c">/**</span> |
|
119 <span class="c"> * Removes all previous defined fields.</span> |
|
120 <span class="c"> * @return {Void}</span> |
|
121 <span class="c"> * @method addField</span> |
|
122 <span class="c"> */</span> |
|
123 <span class="nx">clearFields</span> <span class="o">:</span> <span class="k">function</span><span class="o">(){</span> |
|
124 <span class="k">this</span><span class="o">.</span><span class="nx">_fields</span> <span class="o">=</span> <span class="k">new</span> <span class="nb">Object</span><span class="o">();</span> |
|
125 <span class="o">},</span> |
|
126 |
|
127 <span class="c">/**</span> |
|
128 <span class="c"> * Cleans up the memory associated with the TestReporter, removing DOM elements</span> |
|
129 <span class="c"> * that were created.</span> |
|
130 <span class="c"> * @return {Void}</span> |
|
131 <span class="c"> * @method destroy</span> |
|
132 <span class="c"> */</span> |
|
133 <span class="nx">destroy</span> <span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span> |
|
134 <span class="k">if</span> <span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_form</span><span class="o">){</span> |
|
135 <span class="k">this</span><span class="o">.</span><span class="nx">_form</span><span class="o">.</span><span class="nx">parentNode</span><span class="o">.</span><span class="nx">removeChild</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_form</span><span class="o">);</span> |
|
136 <span class="k">this</span><span class="o">.</span><span class="nx">_form</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span> |
|
137 <span class="o">}</span> |
|
138 <span class="k">if</span> <span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_iframe</span><span class="o">){</span> |
|
139 <span class="k">this</span><span class="o">.</span><span class="nx">_iframe</span><span class="o">.</span><span class="nx">parentNode</span><span class="o">.</span><span class="nx">removeChild</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_iframe</span><span class="o">);</span> |
|
140 <span class="k">this</span><span class="o">.</span><span class="nx">_iframe</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span> |
|
141 <span class="o">}</span> |
|
142 <span class="k">this</span><span class="o">.</span><span class="nx">_fields</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span> |
|
143 <span class="o">},</span> |
|
144 |
|
145 <span class="c">/**</span> |
|
146 <span class="c"> * Sends the report to the server.</span> |
|
147 <span class="c"> * @param {Object} results The results object created by TestRunner.</span> |
|
148 <span class="c"> * @return {Void}</span> |
|
149 <span class="c"> * @method report</span> |
|
150 <span class="c"> */</span> |
|
151 <span class="nx">report</span> <span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">results</span><span class="o">){</span> |
|
152 |
|
153 <span class="c">//if the form hasn't been created yet, create it</span> |
|
154 <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">_form</span><span class="o">){</span> |
|
155 <span class="k">this</span><span class="o">.</span><span class="nx">_form</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">"form"</span><span class="o">);</span> |
|
156 <span class="k">this</span><span class="o">.</span><span class="nx">_form</span><span class="o">.</span><span class="nx">method</span> <span class="o">=</span> <span class="s2">"post"</span><span class="o">;</span> |
|
157 <span class="k">this</span><span class="o">.</span><span class="nx">_form</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> |
|
158 <span class="k">this</span><span class="o">.</span><span class="nx">_form</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> |
|
159 <span class="k">this</span><span class="o">.</span><span class="nx">_form</span><span class="o">.</span><span class="nx">style</span><span class="o">.</span><span class="nx">top</span> <span class="o">=</span> <span class="m">0</span><span class="o">;</span> |
|
160 <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="k">this</span><span class="o">.</span><span class="nx">_form</span><span class="o">);</span> |
|
161 |
|
162 <span class="c">//IE won't let you assign a name using the DOM, must do it the hacky way</span> |
|
163 <span class="c"></span> <span class="k">if</span> <span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">UA</span><span class="o">.</span><span class="nx">ie</span><span class="o">){</span> |
|
164 <span class="k">this</span><span class="o">.</span><span class="nx">_iframe</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 name=\"yuiTestTarget\" />"</span><span class="o">);</span> |
|
165 <span class="o">}</span> <span class="k">else</span> <span class="o">{</span> |
|
166 <span class="k">this</span><span class="o">.</span><span class="nx">_iframe</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> |
|
167 <span class="k">this</span><span class="o">.</span><span class="nx">_iframe</span><span class="o">.</span><span class="nx">name</span> <span class="o">=</span> <span class="s2">"yuiTestTarget"</span><span class="o">;</span> |
|
168 <span class="o">}</span> |
|
169 |
|
170 <span class="k">this</span><span class="o">.</span><span class="nx">_iframe</span><span class="o">.</span><span class="nx">src</span> <span class="o">=</span> <span class="s2">"javascript:false"</span><span class="o">;</span> |
|
171 <span class="k">this</span><span class="o">.</span><span class="nx">_iframe</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> |
|
172 <span class="k">this</span><span class="o">.</span><span class="nx">_iframe</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> |
|
173 <span class="k">this</span><span class="o">.</span><span class="nx">_iframe</span><span class="o">.</span><span class="nx">style</span><span class="o">.</span><span class="nx">top</span> <span class="o">=</span> <span class="m">0</span><span class="o">;</span> |
|
174 <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="k">this</span><span class="o">.</span><span class="nx">_iframe</span><span class="o">);</span> |
|
175 |
|
176 <span class="k">this</span><span class="o">.</span><span class="nx">_form</span><span class="o">.</span><span class="nx">target</span> <span class="o">=</span> <span class="s2">"yuiTestTarget"</span><span class="o">;</span> |
|
177 <span class="o">}</span> |
|
178 |
|
179 <span class="c">//set the form's action</span> |
|
180 <span class="c"></span> <span class="k">this</span><span class="o">.</span><span class="nx">_form</span><span class="o">.</span><span class="nx">action</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">url</span><span class="o">;</span> |
|
181 |
|
182 <span class="c">//remove any existing fields</span> |
|
183 <span class="c"></span> <span class="k">while</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_form</span><span class="o">.</span><span class="nx">hasChildNodes</span><span class="o">()){</span> |
|
184 <span class="k">this</span><span class="o">.</span><span class="nx">_form</span><span class="o">.</span><span class="nx">removeChild</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_form</span><span class="o">.</span><span class="nx">lastChild</span><span class="o">);</span> |
|
185 <span class="o">}</span> |
|
186 |
|
187 <span class="c">//create default fields</span> |
|
188 <span class="c"></span> <span class="k">this</span><span class="o">.</span><span class="nx">_fields</span><span class="o">.</span><span class="nx">results</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">format</span><span class="o">(</span><span class="nx">results</span><span class="o">);</span> |
|
189 <span class="k">this</span><span class="o">.</span><span class="nx">_fields</span><span class="o">.</span><span class="nx">useragent</span> <span class="o">=</span> <span class="nx">navigator</span><span class="o">.</span><span class="nx">userAgent</span><span class="o">;</span> |
|
190 <span class="k">this</span><span class="o">.</span><span class="nx">_fields</span><span class="o">.</span><span class="nx">timestamp</span> <span class="o">=</span> <span class="o">(</span><span class="k">new</span> <span class="nb">Date</span><span class="o">()).</span><span class="nx">toLocaleString</span><span class="o">();</span> |
|
191 |
|
192 <span class="c">//add fields to the form</span> |
|
193 <span class="c"></span> <span class="nx">Y</span><span class="o">.</span><span class="nb">Object</span><span class="o">.</span><span class="nx">each</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">_fields</span><span class="o">,</span> <span class="k">function</span><span class="o">(</span><span class="nx">value</span><span class="o">,</span> <span class="nx">prop</span><span class="o">){</span> |
|
194 <span class="k">if</span> <span class="o">(</span><span class="k">typeof</span> <span class="nx">value</span> <span class="o">!=</span> <span class="s2">"function"</span><span class="o">){</span> |
|
195 <span class="k">var</span> <span class="nx">input</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">"input"</span><span class="o">);</span> |
|
196 <span class="nx">input</span><span class="o">.</span><span class="nx">type</span> <span class="o">=</span> <span class="s2">"hidden"</span><span class="o">;</span> |
|
197 <span class="nx">input</span><span class="o">.</span><span class="nx">name</span> <span class="o">=</span> <span class="nx">prop</span><span class="o">;</span> |
|
198 <span class="nx">input</span><span class="o">.</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">value</span><span class="o">;</span> |
|
199 <span class="k">this</span><span class="o">.</span><span class="nx">_form</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="nx">input</span><span class="o">);</span> |
|
200 <span class="o">}</span> |
|
201 <span class="o">},</span> <span class="k">this</span><span class="o">);</span> |
|
202 |
|
203 <span class="c">//remove default fields</span> |
|
204 <span class="c"></span> <span class="nx">delete</span> <span class="k">this</span><span class="o">.</span><span class="nx">_fields</span><span class="o">.</span><span class="nx">results</span><span class="o">;</span> |
|
205 <span class="nx">delete</span> <span class="k">this</span><span class="o">.</span><span class="nx">_fields</span><span class="o">.</span><span class="nx">useragent</span><span class="o">;</span> |
|
206 <span class="nx">delete</span> <span class="k">this</span><span class="o">.</span><span class="nx">_fields</span><span class="o">.</span><span class="nx">timestamp</span><span class="o">;</span> |
|
207 |
|
208 <span class="k">if</span> <span class="o">(</span><span class="nx">arguments</span><span class="o">[</span><span class="m">1</span><span class="o">]</span> <span class="o">!==</span> <span class="kc">false</span><span class="o">){</span> |
|
209 <span class="k">this</span><span class="o">.</span><span class="nx">_form</span><span class="o">.</span><span class="nx">submit</span><span class="o">();</span> |
|
210 <span class="o">}</span> |
|
211 |
|
212 <span class="o">}</span> |
|
213 |
|
214 <span class="o">};</span> |
|
215 </pre></div> |
|
216 </div> |
|
217 </div> |
|
218 </div> |
|
219 <div class="yui-b"> |
|
220 <div class="nav"> |
|
221 |
|
222 <div id="moduleList" class="module"> |
|
223 <h4>Modules</h4> |
|
224 <ul class="content"> |
|
225 <li class=""><a href="module_anim.html" title="anim">anim</a></li> |
|
226 <li class=""><a href="module_attribute.html" title="attribute">attribute</a></li> |
|
227 <li class=""><a href="module_base.html" title="base">base</a></li> |
|
228 <li class=""><a href="module_cache.html" title="cache">cache</a></li> |
|
229 <li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li> |
|
230 <li class=""><a href="module_collection.html" title="collection">collection</a></li> |
|
231 <li class=""><a href="module_console.html" title="console">console</a></li> |
|
232 <li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li> |
|
233 <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li> |
|
234 <li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li> |
|
235 <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li> |
|
236 <li class=""><a href="module_datatype.html" title="datatype">datatype</a></li> |
|
237 <li class=""><a href="module_dd.html" title="dd">dd</a></li> |
|
238 <li class=""><a href="module_dom.html" title="dom">dom</a></li> |
|
239 <li class=""><a href="module_dump.html" title="dump">dump</a></li> |
|
240 <li class=""><a href="module_event.html" title="event">event</a></li> |
|
241 <li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li> |
|
242 <li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li> |
|
243 <li class=""><a href="module_history.html" title="history">history</a></li> |
|
244 <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li> |
|
245 <li class=""><a href="module_io.html" title="io">io</a></li> |
|
246 <li class=""><a href="module_json.html" title="json">json</a></li> |
|
247 <li class=""><a href="module_node.html" title="node">node</a></li> |
|
248 <li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li> |
|
249 <li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li> |
|
250 <li class=""><a href="module_oop.html" title="oop">oop</a></li> |
|
251 <li class=""><a href="module_overlay.html" title="overlay">overlay</a></li> |
|
252 <li class=""><a href="module_plugin.html" title="plugin">plugin</a></li> |
|
253 <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li> |
|
254 <li class=""><a href="module_queue.html" title="queue">queue</a></li> |
|
255 <li class=""><a href="module_slider.html" title="slider">slider</a></li> |
|
256 <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li> |
|
257 <li class=""><a href="module_substitute.html" title="substitute">substitute</a></li> |
|
258 <li class="selected"><a href="module_test.html" title="test">test</a></li> |
|
259 <li class=""><a href="module_widget.html" title="widget">widget</a></li> |
|
260 <li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li> |
|
261 <li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li> |
|
262 <li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li> |
|
263 <li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li> |
|
264 <li class=""><a href="module_yui.html" title="yui">yui</a></li> |
|
265 </ul> |
|
266 </div> |
|
267 |
|
268 <div id="classList" class="module"> |
|
269 <h4>Classes</h4> |
|
270 <ul class="content"> |
|
271 <li class=""><a href="Assert.html" title="Assert">Assert</a></li> |
|
272 <li class=""><a href="Assert.ComparisonFailure.html" title="Assert.ComparisonFailure">Assert.ComparisonFailure</a></li> |
|
273 <li class=""><a href="Assert.Error.html" title="Assert.Error">Assert.Error</a></li> |
|
274 <li class=""><a href="Assert.ObjectAssert.html" title="Assert.ObjectAssert">Assert.ObjectAssert</a></li> |
|
275 <li class=""><a href="Assert.ShouldError.html" title="Assert.ShouldError">Assert.ShouldError</a></li> |
|
276 <li class=""><a href="Assert.ShouldFail.html" title="Assert.ShouldFail">Assert.ShouldFail</a></li> |
|
277 <li class=""><a href="Assert.UnexpectedError.html" title="Assert.UnexpectedError">Assert.UnexpectedError</a></li> |
|
278 <li class=""><a href="Assert.UnexpectedValue.html" title="Assert.UnexpectedValue">Assert.UnexpectedValue</a></li> |
|
279 <li class=""><a href="Test.ArrayAssert.html" title="Test.ArrayAssert">Test.ArrayAssert</a></li> |
|
280 <li class=""><a href="Test.Case.html" title="Test.Case">Test.Case</a></li> |
|
281 <li class=""><a href="Test.DateAssert.html" title="Test.DateAssert">Test.DateAssert</a></li> |
|
282 <li class=""><a href="Test.Format.Mock.html" title="Test.Format.Mock">Test.Format.Mock</a></li> |
|
283 <li class=""><a href="Test.Manager.html" title="Test.Manager">Test.Manager</a></li> |
|
284 <li class=""><a href="Test.Reporter.html" title="Test.Reporter">Test.Reporter</a></li> |
|
285 <li class=""><a href="Test.Runner.html" title="Test.Runner">Test.Runner</a></li> |
|
286 <li class=""><a href="Test.Suite.html" title="Test.Suite">Test.Suite</a></li> |
|
287 <li class=""><a href="Test.TestNode.html" title="Test.TestNode">Test.TestNode</a></li> |
|
288 <li class=""><a href="Test.Wait.html" title="Test.Wait">Test.Wait</a></li> |
|
289 </ul> |
|
290 </div> |
|
291 |
|
292 <div id="fileList" class="module"> |
|
293 <h4>Files</h4> |
|
294 <ul class="content"> |
|
295 <li class=""><a href="ArrayAssert.js.html" title="ArrayAssert.js">ArrayAssert.js</a></li> |
|
296 <li class=""><a href="Assert.js.html" title="Assert.js">Assert.js</a></li> |
|
297 <li class=""><a href="DateAssert.js.html" title="DateAssert.js">DateAssert.js</a></li> |
|
298 <li class=""><a href="Mock.js.html" title="Mock.js">Mock.js</a></li> |
|
299 <li class=""><a href="ObjectAssert.js.html" title="ObjectAssert.js">ObjectAssert.js</a></li> |
|
300 <li class=""><a href="TestCase.js.html" title="TestCase.js">TestCase.js</a></li> |
|
301 <li class=""><a href="TestFormat.js.html" title="TestFormat.js">TestFormat.js</a></li> |
|
302 <li class=""><a href="TestManager.js.html" title="TestManager.js">TestManager.js</a></li> |
|
303 <li class="selected"><a href="TestReporter.js.html" title="TestReporter.js">TestReporter.js</a></li> |
|
304 <li class=""><a href="TestRunner.js.html" title="TestRunner.js">TestRunner.js</a></li> |
|
305 <li class=""><a href="TestSuite.js.html" title="TestSuite.js">TestSuite.js</a></li> |
|
306 </ul> |
|
307 </div> |
|
308 |
|
309 |
|
310 |
|
311 |
|
312 |
|
313 </div> |
|
314 </div> |
|
315 </div> |
|
316 <div id="ft"> |
|
317 <hr /> |
|
318 Copyright © 2009 Yahoo! Inc. All rights reserved. |
|
319 </div> |
|
320 </div> |
|
321 <script type="text/javascript"> |
|
322 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.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"}]; |
|
323 </script> |
|
324 </body> |
|
325 </html> |