|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
2 <html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#"> |
|
3 <head> |
|
4 <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
|
5 <title>API: test Assert.UnexpectedValue (YUI Library)</title> |
|
6 |
|
7 <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" /> |
|
8 <link rel="stylesheet" type="text/css" href="assets/api.css" /> |
|
9 |
|
10 <script type="text/javascript" src="assets/api-js"></script> |
|
11 <script type="text/javascript" src="assets/ac-js"></script> |
|
12 </head> |
|
13 |
|
14 <body id="yahoo-com"> |
|
15 |
|
16 <div id="doc3" class="yui-t2"> |
|
17 <div id="hd"> |
|
18 <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1> |
|
19 <h3>test <span class="subtitle">3.0.0</span></h3> |
|
20 <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> |
|
21 > <a href="./module_test.html" title="test">test</a> |
|
22 > Assert.UnexpectedValue |
|
23 |
|
24 <form onsubmit="return false"> |
|
25 <div id="propertysearch"> |
|
26 Search: <input autocomplete="off" id="searchinput" /> |
|
27 <div id="searchresults"> |
|
28 |
|
29 </div> |
|
30 </div> |
|
31 </form> |
|
32 </div> |
|
33 |
|
34 <div id="bd"> |
|
35 <div id="yui-main"> |
|
36 <div class="yui-b"> |
|
37 <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form"> |
|
38 <fieldset> |
|
39 <legend>Filters</legend> |
|
40 <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span> |
|
41 <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span> |
|
42 <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span> |
|
43 </fieldset> |
|
44 </form> |
|
45 |
|
46 <h2> |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 Class <b property="yui:name">Assert.UnexpectedValue</b> |
|
52 <span class="extends"> |
|
53 - extends <a href="Assert.Error.html" title="Assert.Error">Assert.Error</a> |
|
54 </span> |
|
55 |
|
56 </h2> |
|
57 <!-- class tree goes here --> |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 <div class="summary description" property="yui:description"> |
|
63 UnexpectedValue is subclass of Error that is thrown whenever |
|
64 a value was unexpected in its scope. This typically means that a test |
|
65 was performed to determine that a value was *not* equal to a certain |
|
66 value. |
|
67 </div> |
|
68 |
|
69 <div class="section constructor details" rel="yui:constructor" resource="#constructor"> |
|
70 <h3 id="constructor">Constructor</h3> |
|
71 <div class="content"> |
|
72 <div class="detail"> |
|
73 <strong property="yui:name">Assert.UnexpectedValue</strong> |
|
74 <code> |
|
75 ( |
|
76 |
|
77 |
|
78 |
|
79 message |
|
80 |
|
81 , |
|
82 unexpected |
|
83 ) |
|
84 </code> |
|
85 <div class="description"> |
|
86 <dl rel="yui:parameters"> |
|
87 <dt>Parameters:</dt> |
|
88 <dd rel="yui:parameter"> |
|
89 <code><span property="yui:name">message</span> |
|
90 <<span property="yui:type">String</span>> |
|
91 </code> |
|
92 <span property="yui:description"> The message to display when the error occurs.</span> |
|
93 </dd> |
|
94 <dd rel="yui:parameter"> |
|
95 <code><span property="yui:name">unexpected</span> |
|
96 <<span property="yui:type">Object</span>> |
|
97 </code> |
|
98 <span property="yui:description"> The unexpected value.</span> |
|
99 </dd> |
|
100 </dl> |
|
101 |
|
102 |
|
103 </div> |
|
104 </div> |
|
105 </div> |
|
106 </div> |
|
107 |
|
108 <div rel="yui:properties" resource="#properties"> |
|
109 <div class="section field details"> |
|
110 <h3 id="properties">Properties</h3> |
|
111 <div class="content"> |
|
112 <div class="" rel="yui:property" resource="#property_name"> |
|
113 <h4><a name="property_name" property="yui:name">name</a> |
|
114 - <code><span property="yui:type">String</span></code> |
|
115 </h4> |
|
116 <div class="detail"> |
|
117 <div class="description" property="yui:description"> |
|
118 The name of the error that occurred. |
|
119 </div> |
|
120 </div> |
|
121 |
|
122 |
|
123 |
|
124 |
|
125 <hr /> |
|
126 </div> |
|
127 <div class="" rel="yui:property" resource="#property_unexpected"> |
|
128 <h4><a name="property_unexpected" property="yui:name">unexpected</a> |
|
129 - <code><span property="yui:type">Object</span></code> |
|
130 </h4> |
|
131 <div class="detail"> |
|
132 <div class="description" property="yui:description"> |
|
133 The unexpected value. |
|
134 </div> |
|
135 </div> |
|
136 |
|
137 |
|
138 |
|
139 |
|
140 <hr /> |
|
141 </div> |
|
142 </div> |
|
143 </div> |
|
144 |
|
145 <div rel="yui:inheritance"> |
|
146 <div class="section field inheritance" rel="yui:superclass" resource="Assert.Error.html"> |
|
147 <h4>Properties inherited from <a href="Assert.Error.html" property="yui:name" title="Assert.Error">Assert.Error</a>:</h4> |
|
148 <div class="content" rel="yui:properties"> |
|
149 <code> |
|
150 |
|
151 <span rel="yui:property" resource="Assert.Error.html#property_name"> |
|
152 <a class="" href="Assert.Error.html#property_name" property="yui:name" title="name">name</a> |
|
153 </span> |
|
154 |
|
155 </code> |
|
156 </div> |
|
157 </div> |
|
158 </div> |
|
159 </div> |
|
160 |
|
161 <div rel="yui:methods" resource="#methods"> |
|
162 <div class="section method details"> |
|
163 <h3 id="methods">Methods</h3> |
|
164 <div class="content"> |
|
165 <div class="" rel="yui:method" resource="#method_getMessage"> |
|
166 <h4> |
|
167 <a name="method_getMessage">getMessage</a></h4> |
|
168 <div class="detail" > |
|
169 <code> |
|
170 |
|
171 |
|
172 |
|
173 String |
|
174 <strong property="yui:name">getMessage</strong> |
|
175 ( |
|
176 ) |
|
177 </code> |
|
178 |
|
179 <div class="description" property="yui:description"> |
|
180 Returns a fully formatted error for an assertion failure. The message |
|
181 contains information about the unexpected value that was encountered. |
|
182 </div> |
|
183 |
|
184 <div class="description"> |
|
185 |
|
186 |
|
187 <dl> |
|
188 <dt>Returns: |
|
189 <code property="yui:return"> |
|
190 String |
|
191 </code></dt> |
|
192 <dd property="yui:returnInfo">A string describing the error.</dd> |
|
193 </dl> |
|
194 |
|
195 |
|
196 |
|
197 |
|
198 </div> |
|
199 |
|
200 </div> |
|
201 <hr /> |
|
202 </div> |
|
203 </div> |
|
204 </div> |
|
205 |
|
206 <div rel="yui:inheritance"> |
|
207 <div class="section field inheritance" rel="yui:superclass" resource="Assert.Error.html"> |
|
208 <h4>Methods inherited from <a href="Assert.Error.html" property="yui:name" title="Assert.Error">Assert.Error</a>:</h4> |
|
209 <div class="content" rel="yui:methods"> |
|
210 <code> |
|
211 <span rel="yui:method" resource="Assert.Error.html#method_getMessage"> |
|
212 <a class="" href="Assert.Error.html#method_getMessage" property="yui:name" title="getMessage">getMessage</a><span class="">,</span> |
|
213 </span> |
|
214 <span rel="yui:method" resource="Assert.Error.html#method_toString"> |
|
215 <a class="" href="Assert.Error.html#method_toString" property="yui:name" title="toString">toString</a><span class="">,</span> |
|
216 </span> |
|
217 <span rel="yui:method" resource="Assert.Error.html#method_valueOf"> |
|
218 <a class="" href="Assert.Error.html#method_valueOf" property="yui:name" title="valueOf">valueOf</a> |
|
219 </span> |
|
220 </code> |
|
221 </div> |
|
222 </div> |
|
223 </div> |
|
224 </div> |
|
225 |
|
226 <div rel="yui:events" resource="#events"> |
|
227 |
|
228 |
|
229 </div> |
|
230 |
|
231 <div rel="yui:attributes" resource="#configattributes"> |
|
232 |
|
233 </div> |
|
234 |
|
235 </div> |
|
236 </div> |
|
237 <div class="yui-b"> |
|
238 <div class="nav"> |
|
239 |
|
240 <div id="moduleList" class="module"> |
|
241 <h4>Modules</h4> |
|
242 <ul class="content"> |
|
243 <li class=""><a href="module_anim.html" title="anim">anim</a></li> |
|
244 <li class=""><a href="module_async-queue.html" title="async-queue">async-queue</a></li> |
|
245 <li class=""><a href="module_attribute.html" title="attribute">attribute</a></li> |
|
246 <li class=""><a href="module_base.html" title="base">base</a></li> |
|
247 <li class=""><a href="module_cache.html" title="cache">cache</a></li> |
|
248 <li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li> |
|
249 <li class=""><a href="module_collection.html" title="collection">collection</a></li> |
|
250 <li class=""><a href="module_console.html" title="console">console</a></li> |
|
251 <li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li> |
|
252 <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li> |
|
253 <li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li> |
|
254 <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li> |
|
255 <li class=""><a href="module_datatype.html" title="datatype">datatype</a></li> |
|
256 <li class=""><a href="module_dd.html" title="dd">dd</a></li> |
|
257 <li class=""><a href="module_dom.html" title="dom">dom</a></li> |
|
258 <li class=""><a href="module_dump.html" title="dump">dump</a></li> |
|
259 <li class=""><a href="module_event.html" title="event">event</a></li> |
|
260 <li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li> |
|
261 <li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li> |
|
262 <li class=""><a href="module_history.html" title="history">history</a></li> |
|
263 <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li> |
|
264 <li class=""><a href="module_io.html" title="io">io</a></li> |
|
265 <li class=""><a href="module_json.html" title="json">json</a></li> |
|
266 <li class=""><a href="module_node.html" title="node">node</a></li> |
|
267 <li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li> |
|
268 <li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li> |
|
269 <li class=""><a href="module_oop.html" title="oop">oop</a></li> |
|
270 <li class=""><a href="module_overlay.html" title="overlay">overlay</a></li> |
|
271 <li class=""><a href="module_plugin.html" title="plugin">plugin</a></li> |
|
272 <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li> |
|
273 <li class=""><a href="module_queue-promote.html" title="queue-promote">queue-promote</a></li> |
|
274 <li class=""><a href="module_slider.html" title="slider">slider</a></li> |
|
275 <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li> |
|
276 <li class=""><a href="module_substitute.html" title="substitute">substitute</a></li> |
|
277 <li class="selected"><a href="module_test.html" title="test">test</a></li> |
|
278 <li class=""><a href="module_widget.html" title="widget">widget</a></li> |
|
279 <li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li> |
|
280 <li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li> |
|
281 <li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li> |
|
282 <li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li> |
|
283 <li class=""><a href="module_yui.html" title="yui">yui</a></li> |
|
284 </ul> |
|
285 </div> |
|
286 |
|
287 <div id="classList" class="module"> |
|
288 <h4>Classes</h4> |
|
289 <ul class="content"> |
|
290 <li class=""><a href="Assert.html" title="Assert">Assert</a></li> |
|
291 <li class=""><a href="Assert.ComparisonFailure.html" title="Assert.ComparisonFailure">Assert.ComparisonFailure</a></li> |
|
292 <li class=""><a href="Assert.Error.html" title="Assert.Error">Assert.Error</a></li> |
|
293 <li class=""><a href="Assert.ObjectAssert.html" title="Assert.ObjectAssert">Assert.ObjectAssert</a></li> |
|
294 <li class=""><a href="Assert.ShouldError.html" title="Assert.ShouldError">Assert.ShouldError</a></li> |
|
295 <li class=""><a href="Assert.ShouldFail.html" title="Assert.ShouldFail">Assert.ShouldFail</a></li> |
|
296 <li class=""><a href="Assert.UnexpectedError.html" title="Assert.UnexpectedError">Assert.UnexpectedError</a></li> |
|
297 <li class="selected"><a href="Assert.UnexpectedValue.html" title="Assert.UnexpectedValue">Assert.UnexpectedValue</a></li> |
|
298 <li class=""><a href="Test.ArrayAssert.html" title="Test.ArrayAssert">Test.ArrayAssert</a></li> |
|
299 <li class=""><a href="Test.Case.html" title="Test.Case">Test.Case</a></li> |
|
300 <li class=""><a href="Test.DateAssert.html" title="Test.DateAssert">Test.DateAssert</a></li> |
|
301 <li class=""><a href="Test.Format.Mock.html" title="Test.Format.Mock">Test.Format.Mock</a></li> |
|
302 <li class=""><a href="Test.Manager.html" title="Test.Manager">Test.Manager</a></li> |
|
303 <li class=""><a href="Test.Reporter.html" title="Test.Reporter">Test.Reporter</a></li> |
|
304 <li class=""><a href="Test.Runner.html" title="Test.Runner">Test.Runner</a></li> |
|
305 <li class=""><a href="Test.Suite.html" title="Test.Suite">Test.Suite</a></li> |
|
306 <li class=""><a href="Test.TestNode.html" title="Test.TestNode">Test.TestNode</a></li> |
|
307 <li class=""><a href="Test.Wait.html" title="Test.Wait">Test.Wait</a></li> |
|
308 </ul> |
|
309 </div> |
|
310 |
|
311 <div id="fileList" class="module"> |
|
312 <h4>Files</h4> |
|
313 <ul class="content"> |
|
314 <li class=""><a href="ArrayAssert.js.html" title="ArrayAssert.js">ArrayAssert.js</a></li> |
|
315 <li class=""><a href="Assert.js.html" title="Assert.js">Assert.js</a></li> |
|
316 <li class=""><a href="DateAssert.js.html" title="DateAssert.js">DateAssert.js</a></li> |
|
317 <li class=""><a href="Mock.js.html" title="Mock.js">Mock.js</a></li> |
|
318 <li class=""><a href="ObjectAssert.js.html" title="ObjectAssert.js">ObjectAssert.js</a></li> |
|
319 <li class=""><a href="TestCase.js.html" title="TestCase.js">TestCase.js</a></li> |
|
320 <li class=""><a href="TestFormat.js.html" title="TestFormat.js">TestFormat.js</a></li> |
|
321 <li class=""><a href="TestManager.js.html" title="TestManager.js">TestManager.js</a></li> |
|
322 <li class=""><a href="TestReporter.js.html" title="TestReporter.js">TestReporter.js</a></li> |
|
323 <li class=""><a href="TestRunner.js.html" title="TestRunner.js">TestRunner.js</a></li> |
|
324 <li class=""><a href="TestSuite.js.html" title="TestSuite.js">TestSuite.js</a></li> |
|
325 </ul> |
|
326 </div> |
|
327 |
|
328 <div id="propertyList" class="module"> |
|
329 <h4>Properties</h4> |
|
330 <ul class="content"> |
|
331 <li class=""><a href="#property_name" title="name">name</a></li> |
|
332 <li class=""><a href="#property_unexpected" title="unexpected">unexpected</a></li> |
|
333 </ul> |
|
334 </div> |
|
335 |
|
336 <div id="methodsList" class="module"> |
|
337 <h4>Methods</h4> |
|
338 <ul class="content"> |
|
339 <li class=""><a href="#method_getMessage" title="getMessage">getMessage</a></li> |
|
340 </ul> |
|
341 </div> |
|
342 |
|
343 |
|
344 |
|
345 </div> |
|
346 </div> |
|
347 </div> |
|
348 <div id="ft"> |
|
349 <hr /> |
|
350 Copyright © 2009 Yahoo! Inc. All rights reserved. |
|
351 </div> |
|
352 </div> |
|
353 <script type="text/javascript"> |
|
354 ALL_YUI_PROPS = [{"access": "", "host": "Assert.ComparisonFailure", "name": "actual", "url": "Assert.ComparisonFailure.html#property_actual", "type": "property"}, {"access": "", "host": "Assert", "name": "areEqual", "url": "Assert.html#method_areEqual", "type": "method"}, {"access": "", "host": "Assert", "name": "areNotEqual", "url": "Assert.html#method_areNotEqual", "type": "method"}, {"access": "", "host": "Assert", "name": "areNotSame", "url": "Assert.html#method_areNotSame", "type": "method"}, {"access": "", "host": "Assert", "name": "areSame", "url": "Assert.html#method_areSame", "type": "method"}, {"access": "private", "host": "Assert", "name": "_asserts", "url": "Assert.html#property__asserts", "type": "property"}, {"access": "", "host": "Assert.ComparisonFailure", "name": "expected", "url": "Assert.ComparisonFailure.html#property_expected", "type": "property"}, {"access": "", "host": "Assert", "name": "fail", "url": "Assert.html#method_fail", "type": "method"}, {"access": "protected", "host": "Assert", "name": "_formatMessage", "url": "Assert.html#method__formatMessage", "type": "method"}, {"access": "protected", "host": "Assert", "name": "_getCount", "url": "Assert.html#method__getCount", "type": "method"}, {"access": "", "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": "protected", "host": "Assert", "name": "_increment", "url": "Assert.html#method__increment", "type": "method"}, {"access": "", "host": "Assert", "name": "isArray", "url": "Assert.html#method_isArray", "type": "method"}, {"access": "", "host": "Assert", "name": "isBoolean", "url": "Assert.html#method_isBoolean", "type": "method"}, {"access": "", "host": "Assert", "name": "isFalse", "url": "Assert.html#method_isFalse", "type": "method"}, {"access": "", "host": "Assert", "name": "isFunction", "url": "Assert.html#method_isFunction", "type": "method"}, {"access": "", "host": "Assert", "name": "isInstanceOf", "url": "Assert.html#method_isInstanceOf", "type": "method"}, {"access": "", "host": "Assert", "name": "isNaN", "url": "Assert.html#method_isNaN", "type": "method"}, {"access": "", "host": "Assert", "name": "isNotNaN", "url": "Assert.html#method_isNotNaN", "type": "method"}, {"access": "", "host": "Assert", "name": "isNotNull", "url": "Assert.html#method_isNotNull", "type": "method"}, {"access": "", "host": "Assert", "name": "isNotUndefined", "url": "Assert.html#method_isNotUndefined", "type": "method"}, {"access": "", "host": "Assert", "name": "isNull", "url": "Assert.html#method_isNull", "type": "method"}, {"access": "", "host": "Assert", "name": "isNumber", "url": "Assert.html#method_isNumber", "type": "method"}, {"access": "", "host": "Assert", "name": "isObject", "url": "Assert.html#method_isObject", "type": "method"}, {"access": "", "host": "Assert", "name": "isString", "url": "Assert.html#method_isString", "type": "method"}, {"access": "", "host": "Assert", "name": "isTrue", "url": "Assert.html#method_isTrue", "type": "method"}, {"access": "", "host": "Assert", "name": "isTypeOf", "url": "Assert.html#method_isTypeOf", "type": "method"}, {"access": "", "host": "Assert", "name": "isUndefined", "url": "Assert.html#method_isUndefined", "type": "method"}, {"access": "", "host": "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": "protected", "host": "Assert", "name": "_reset", "url": "Assert.html#method__reset", "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": "Assert.Error", "name": "valueOf", "url": "Assert.Error.html#method_valueOf", "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"}]; |
|
355 </script> |
|
356 </body> |
|
357 </html> |