smparkes-jazrb 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +20 -0
- data/README.rdoc +41 -0
- data/bin/autojaz +4 -0
- data/bin/jazrb +11 -0
- data/doc/jasmine/files.html +292 -0
- data/doc/jasmine/index.html +322 -0
- data/doc/jasmine/symbols/_global_.html +918 -0
- data/doc/jasmine/symbols/jasmine.Block.html +349 -0
- data/doc/jasmine/symbols/jasmine.Env.html +517 -0
- data/doc/jasmine/symbols/jasmine.EnvjsReporter.html +326 -0
- data/doc/jasmine/symbols/jasmine.JsApiReporter.html +326 -0
- data/doc/jasmine/symbols/jasmine.Matchers.html +885 -0
- data/doc/jasmine/symbols/jasmine.MultiReporter.html +326 -0
- data/doc/jasmine/symbols/jasmine.NestedResults.html +710 -0
- data/doc/jasmine/symbols/jasmine.Reporter.html +326 -0
- data/doc/jasmine/symbols/jasmine.Runner.html +337 -0
- data/doc/jasmine/symbols/jasmine.Spec.html +406 -0
- data/doc/jasmine/symbols/jasmine.Spy.html +855 -0
- data/doc/jasmine/symbols/jasmine.Suite.html +355 -0
- data/doc/jasmine/symbols/jasmine.html +770 -0
- data/doc/jasmine/symbols/jasmine.util.html +326 -0
- data/doc/jasmine/symbols/src/lib_EnvjsReporter.js.html +149 -0
- data/doc/jasmine/symbols/src/lib_TrivialReporter.js.html +127 -0
- data/doc/jasmine/symbols/src/lib_consolex.js.html +35 -0
- data/doc/jasmine/symbols/src/lib_jasmine-0.10.0.js.html +2302 -0
- data/doc/jasmine/symbols/src/lib_jasmine-0.9.0.js.html +2212 -0
- data/doc/jasmine/symbols/src/lib_json2.js.html +486 -0
- data/lib/autotest/discover.rb +3 -0
- data/lib/autotest/jazrb.rb +55 -0
- data/lib/jazrb/intro.js +18 -0
- data/lib/jazrb/jasmine/EnvjsReporter.js +141 -0
- data/lib/jazrb/jasmine/TrivialReporter.js +119 -0
- data/lib/jazrb/jasmine/consolex.js +28 -0
- data/lib/jazrb/jasmine/jasmine-0.10.0.js +2294 -0
- data/lib/jazrb/jasmine/jasmine.js +2294 -0
- data/lib/jazrb/jasmine/json2.js +478 -0
- data/lib/jazrb/outro.js +3 -0
- data/lib/jazrb.rb +0 -0
- data/test/jazrb_test.rb +7 -0
- data/test/test_helper.rb +10 -0
- metadata +116 -0
@@ -0,0 +1,885 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
6
|
+
<meta name="generator" content="JsDoc Toolkit" />
|
7
|
+
|
8
|
+
<title>JsDoc Reference - jasmine.Matchers</title>
|
9
|
+
|
10
|
+
<style type="text/css">
|
11
|
+
/* default.css */
|
12
|
+
body
|
13
|
+
{
|
14
|
+
font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
|
15
|
+
width: 800px;
|
16
|
+
}
|
17
|
+
|
18
|
+
.header
|
19
|
+
{
|
20
|
+
clear: both;
|
21
|
+
background-color: #ccc;
|
22
|
+
padding: 8px;
|
23
|
+
}
|
24
|
+
|
25
|
+
h1
|
26
|
+
{
|
27
|
+
font-size: 150%;
|
28
|
+
font-weight: bold;
|
29
|
+
padding: 0;
|
30
|
+
margin: 1em 0 0 .3em;
|
31
|
+
}
|
32
|
+
|
33
|
+
hr
|
34
|
+
{
|
35
|
+
border: none 0;
|
36
|
+
border-top: 1px solid #7F8FB1;
|
37
|
+
height: 1px;
|
38
|
+
}
|
39
|
+
|
40
|
+
pre.code
|
41
|
+
{
|
42
|
+
display: block;
|
43
|
+
padding: 8px;
|
44
|
+
border: 1px dashed #ccc;
|
45
|
+
}
|
46
|
+
|
47
|
+
#index
|
48
|
+
{
|
49
|
+
margin-top: 24px;
|
50
|
+
float: left;
|
51
|
+
width: 160px;
|
52
|
+
position: absolute;
|
53
|
+
left: 8px;
|
54
|
+
background-color: #F3F3F3;
|
55
|
+
padding: 8px;
|
56
|
+
}
|
57
|
+
|
58
|
+
#content
|
59
|
+
{
|
60
|
+
margin-left: 190px;
|
61
|
+
width: 600px;
|
62
|
+
}
|
63
|
+
|
64
|
+
.classList
|
65
|
+
{
|
66
|
+
list-style-type: none;
|
67
|
+
padding: 0;
|
68
|
+
margin: 0 0 0 8px;
|
69
|
+
font-family: arial, sans-serif;
|
70
|
+
font-size: 1em;
|
71
|
+
overflow: auto;
|
72
|
+
}
|
73
|
+
|
74
|
+
.classList li
|
75
|
+
{
|
76
|
+
padding: 0;
|
77
|
+
margin: 0 0 8px 0;
|
78
|
+
}
|
79
|
+
|
80
|
+
.summaryTable { width: 100%; }
|
81
|
+
|
82
|
+
h1.classTitle
|
83
|
+
{
|
84
|
+
font-size:170%;
|
85
|
+
line-height:130%;
|
86
|
+
}
|
87
|
+
|
88
|
+
h2 { font-size: 110%; }
|
89
|
+
caption, div.sectionTitle
|
90
|
+
{
|
91
|
+
background-color: #7F8FB1;
|
92
|
+
color: #fff;
|
93
|
+
font-size:130%;
|
94
|
+
text-align: left;
|
95
|
+
padding: 2px 6px 2px 6px;
|
96
|
+
border: 1px #7F8FB1 solid;
|
97
|
+
}
|
98
|
+
|
99
|
+
div.sectionTitle { margin-bottom: 8px; }
|
100
|
+
.summaryTable thead { display: none; }
|
101
|
+
|
102
|
+
.summaryTable td
|
103
|
+
{
|
104
|
+
vertical-align: top;
|
105
|
+
padding: 4px;
|
106
|
+
border-bottom: 1px #7F8FB1 solid;
|
107
|
+
border-right: 1px #7F8FB1 solid;
|
108
|
+
}
|
109
|
+
|
110
|
+
/*col#summaryAttributes {}*/
|
111
|
+
.summaryTable td.attributes
|
112
|
+
{
|
113
|
+
border-left: 1px #7F8FB1 solid;
|
114
|
+
width: 140px;
|
115
|
+
text-align: right;
|
116
|
+
}
|
117
|
+
|
118
|
+
td.attributes, .fixedFont
|
119
|
+
{
|
120
|
+
line-height: 15px;
|
121
|
+
color: #002EBE;
|
122
|
+
font-family: "Courier New",Courier,monospace;
|
123
|
+
font-size: 13px;
|
124
|
+
}
|
125
|
+
|
126
|
+
.summaryTable td.nameDescription
|
127
|
+
{
|
128
|
+
text-align: left;
|
129
|
+
font-size: 13px;
|
130
|
+
line-height: 15px;
|
131
|
+
}
|
132
|
+
|
133
|
+
.summaryTable td.nameDescription, .description
|
134
|
+
{
|
135
|
+
line-height: 15px;
|
136
|
+
padding: 4px;
|
137
|
+
padding-left: 4px;
|
138
|
+
}
|
139
|
+
|
140
|
+
.summaryTable { margin-bottom: 8px; }
|
141
|
+
|
142
|
+
ul.inheritsList
|
143
|
+
{
|
144
|
+
list-style: square;
|
145
|
+
margin-left: 20px;
|
146
|
+
padding-left: 0;
|
147
|
+
}
|
148
|
+
|
149
|
+
.detailList {
|
150
|
+
margin-left: 20px;
|
151
|
+
line-height: 15px;
|
152
|
+
}
|
153
|
+
.detailList dt { margin-left: 20px; }
|
154
|
+
|
155
|
+
.detailList .heading
|
156
|
+
{
|
157
|
+
font-weight: bold;
|
158
|
+
padding-bottom: 6px;
|
159
|
+
margin-left: 0;
|
160
|
+
}
|
161
|
+
|
162
|
+
.light, td.attributes, .light a:link, .light a:visited
|
163
|
+
{
|
164
|
+
color: #777;
|
165
|
+
font-style: italic;
|
166
|
+
}
|
167
|
+
|
168
|
+
.fineprint
|
169
|
+
{
|
170
|
+
text-align: right;
|
171
|
+
font-size: 10px;
|
172
|
+
}
|
173
|
+
</style>
|
174
|
+
</head>
|
175
|
+
|
176
|
+
<body>
|
177
|
+
<!-- ============================== header ================================= -->
|
178
|
+
<!-- begin static/header.html -->
|
179
|
+
<div id="header">
|
180
|
+
</div>
|
181
|
+
<!-- end static/header.html -->
|
182
|
+
|
183
|
+
<!-- ============================== classes index ============================ -->
|
184
|
+
<div id="index">
|
185
|
+
<!-- begin publish.classesIndex -->
|
186
|
+
<div align="center"><a href="../index.html">Class Index</a>
|
187
|
+
| <a href="../files.html">File Index</a></div>
|
188
|
+
<hr />
|
189
|
+
<h2>Classes</h2>
|
190
|
+
<ul class="classList">
|
191
|
+
|
192
|
+
<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
|
193
|
+
|
194
|
+
<li><a href="../symbols/jasmine.html">jasmine</a></li>
|
195
|
+
|
196
|
+
<li><a href="../symbols/jasmine.Block.html">jasmine.Block</a></li>
|
197
|
+
|
198
|
+
<li><a href="../symbols/jasmine.Env.html">jasmine.Env</a></li>
|
199
|
+
|
200
|
+
<li><a href="../symbols/jasmine.EnvjsReporter.html">jasmine.EnvjsReporter</a></li>
|
201
|
+
|
202
|
+
<li><a href="../symbols/jasmine.JsApiReporter.html">jasmine.JsApiReporter</a></li>
|
203
|
+
|
204
|
+
<li><a href="../symbols/jasmine.Matchers.html">jasmine.Matchers</a></li>
|
205
|
+
|
206
|
+
<li><a href="../symbols/jasmine.MultiReporter.html">jasmine.MultiReporter</a></li>
|
207
|
+
|
208
|
+
<li><a href="../symbols/jasmine.NestedResults.html">jasmine.NestedResults</a></li>
|
209
|
+
|
210
|
+
<li><a href="../symbols/jasmine.Reporter.html">jasmine.Reporter</a></li>
|
211
|
+
|
212
|
+
<li><a href="../symbols/jasmine.Runner.html">jasmine.Runner</a></li>
|
213
|
+
|
214
|
+
<li><a href="../symbols/jasmine.Spec.html">jasmine.Spec</a></li>
|
215
|
+
|
216
|
+
<li><a href="../symbols/jasmine.Spy.html">jasmine.Spy</a></li>
|
217
|
+
|
218
|
+
<li><a href="../symbols/jasmine.Suite.html">jasmine.Suite</a></li>
|
219
|
+
|
220
|
+
<li><a href="../symbols/jasmine.util.html">jasmine.util</a></li>
|
221
|
+
|
222
|
+
</ul>
|
223
|
+
<hr />
|
224
|
+
<!-- end publish.classesIndex -->
|
225
|
+
</div>
|
226
|
+
|
227
|
+
<div id="content">
|
228
|
+
<!-- ============================== class title ============================ -->
|
229
|
+
<h1 class="classTitle">
|
230
|
+
|
231
|
+
Class jasmine.Matchers
|
232
|
+
</h1>
|
233
|
+
|
234
|
+
<!-- ============================== class summary ========================== -->
|
235
|
+
<p class="description">
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
<br /><i>Defined in: </i> <a href="../symbols/src/lib_jasmine-0.10.0.js.html">jasmine-0.10.0.js</a>.
|
242
|
+
|
243
|
+
</p>
|
244
|
+
|
245
|
+
<!-- ============================== constructor summary ==================== -->
|
246
|
+
|
247
|
+
<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class jasmine.Matchers.">
|
248
|
+
<caption>Class Summary</caption>
|
249
|
+
<thead>
|
250
|
+
<tr>
|
251
|
+
<th scope="col">Constructor Attributes</th>
|
252
|
+
<th scope="col">Constructor Name and Description</th>
|
253
|
+
</tr>
|
254
|
+
</thead>
|
255
|
+
<tbody>
|
256
|
+
<tr>
|
257
|
+
<td class="attributes"> </td>
|
258
|
+
<td class="nameDescription" >
|
259
|
+
<div class="fixedFont">
|
260
|
+
<b><a href="../symbols/jasmine.Matchers.html">jasmine.Matchers</a></b>(env, actual, results)
|
261
|
+
</div>
|
262
|
+
<div class="description"></div>
|
263
|
+
</td>
|
264
|
+
</tr>
|
265
|
+
</tbody>
|
266
|
+
</table>
|
267
|
+
|
268
|
+
|
269
|
+
<!-- ============================== properties summary ===================== -->
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
<table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class jasmine.Matchers.">
|
274
|
+
<caption>Field Summary</caption>
|
275
|
+
<thead>
|
276
|
+
<tr>
|
277
|
+
<th scope="col">Field Attributes</th>
|
278
|
+
<th scope="col">Field Name and Description</th>
|
279
|
+
</tr>
|
280
|
+
</thead>
|
281
|
+
<tbody>
|
282
|
+
|
283
|
+
<tr>
|
284
|
+
<td class="attributes"> </td>
|
285
|
+
<td class="nameDescription">
|
286
|
+
<div class="fixedFont">
|
287
|
+
<b><a href="../symbols/jasmine.Matchers.html#toBe">toBe</a></b>
|
288
|
+
</div>
|
289
|
+
<div class="description">toBe: compares the actual to the expected using ===</div>
|
290
|
+
</td>
|
291
|
+
</tr>
|
292
|
+
|
293
|
+
<tr>
|
294
|
+
<td class="attributes"> </td>
|
295
|
+
<td class="nameDescription">
|
296
|
+
<div class="fixedFont">
|
297
|
+
<b><a href="../symbols/jasmine.Matchers.html#toBeDefined">toBeDefined</a></b>
|
298
|
+
</div>
|
299
|
+
<div class="description">Matcher that compares the acutal to undefined.</div>
|
300
|
+
</td>
|
301
|
+
</tr>
|
302
|
+
|
303
|
+
<tr>
|
304
|
+
<td class="attributes"> </td>
|
305
|
+
<td class="nameDescription">
|
306
|
+
<div class="fixedFont">
|
307
|
+
<b><a href="../symbols/jasmine.Matchers.html#toBeFalsy">toBeFalsy</a></b>
|
308
|
+
</div>
|
309
|
+
<div class="description">Matcher that boolean nots the actual.</div>
|
310
|
+
</td>
|
311
|
+
</tr>
|
312
|
+
|
313
|
+
<tr>
|
314
|
+
<td class="attributes"> </td>
|
315
|
+
<td class="nameDescription">
|
316
|
+
<div class="fixedFont">
|
317
|
+
<b><a href="../symbols/jasmine.Matchers.html#toBeNull">toBeNull</a></b>
|
318
|
+
</div>
|
319
|
+
<div class="description">Matcher that compares the actual to null.</div>
|
320
|
+
</td>
|
321
|
+
</tr>
|
322
|
+
|
323
|
+
<tr>
|
324
|
+
<td class="attributes"> </td>
|
325
|
+
<td class="nameDescription">
|
326
|
+
<div class="fixedFont">
|
327
|
+
<b><a href="../symbols/jasmine.Matchers.html#toBeTruthy">toBeTruthy</a></b>
|
328
|
+
</div>
|
329
|
+
<div class="description">Matcher that boolean not-nots the actual.</div>
|
330
|
+
</td>
|
331
|
+
</tr>
|
332
|
+
|
333
|
+
<tr>
|
334
|
+
<td class="attributes"> </td>
|
335
|
+
<td class="nameDescription">
|
336
|
+
<div class="fixedFont">
|
337
|
+
<b><a href="../symbols/jasmine.Matchers.html#toBeUndefined">toBeUndefined</a></b>
|
338
|
+
</div>
|
339
|
+
<div class="description">Matcher that compares the acutal to undefined.</div>
|
340
|
+
</td>
|
341
|
+
</tr>
|
342
|
+
|
343
|
+
<tr>
|
344
|
+
<td class="attributes"> </td>
|
345
|
+
<td class="nameDescription">
|
346
|
+
<div class="fixedFont">
|
347
|
+
<b><a href="../symbols/jasmine.Matchers.html#toContain">toContain</a></b>
|
348
|
+
</div>
|
349
|
+
<div class="description">Matcher that checks that the expected item is an element in the actual Array.</div>
|
350
|
+
</td>
|
351
|
+
</tr>
|
352
|
+
|
353
|
+
<tr>
|
354
|
+
<td class="attributes"> </td>
|
355
|
+
<td class="nameDescription">
|
356
|
+
<div class="fixedFont">
|
357
|
+
<b><a href="../symbols/jasmine.Matchers.html#toEqual">toEqual</a></b>
|
358
|
+
</div>
|
359
|
+
<div class="description">toEqual: compares the actual to the expected using common sense equality.</div>
|
360
|
+
</td>
|
361
|
+
</tr>
|
362
|
+
|
363
|
+
<tr>
|
364
|
+
<td class="attributes"> </td>
|
365
|
+
<td class="nameDescription">
|
366
|
+
<div class="fixedFont">
|
367
|
+
<b><a href="../symbols/jasmine.Matchers.html#toMatch">toMatch</a></b>
|
368
|
+
</div>
|
369
|
+
<div class="description">Matcher that compares the actual to the expected using a regular expression.</div>
|
370
|
+
</td>
|
371
|
+
</tr>
|
372
|
+
|
373
|
+
<tr>
|
374
|
+
<td class="attributes"> </td>
|
375
|
+
<td class="nameDescription">
|
376
|
+
<div class="fixedFont">
|
377
|
+
<b><a href="../symbols/jasmine.Matchers.html#toNotBe">toNotBe</a></b>
|
378
|
+
</div>
|
379
|
+
<div class="description">toNotBe: compares the actual to the expected using !==</div>
|
380
|
+
</td>
|
381
|
+
</tr>
|
382
|
+
|
383
|
+
<tr>
|
384
|
+
<td class="attributes"> </td>
|
385
|
+
<td class="nameDescription">
|
386
|
+
<div class="fixedFont">
|
387
|
+
<b><a href="../symbols/jasmine.Matchers.html#toNotContain">toNotContain</a></b>
|
388
|
+
</div>
|
389
|
+
<div class="description">Matcher that checks that the expected item is NOT an element in the actual Array.</div>
|
390
|
+
</td>
|
391
|
+
</tr>
|
392
|
+
|
393
|
+
<tr>
|
394
|
+
<td class="attributes"> </td>
|
395
|
+
<td class="nameDescription">
|
396
|
+
<div class="fixedFont">
|
397
|
+
<b><a href="../symbols/jasmine.Matchers.html#toNotEqual">toNotEqual</a></b>
|
398
|
+
</div>
|
399
|
+
<div class="description">toNotEqual: compares the actual to the expected using the ! of jasmine.Matchers.toEqual</div>
|
400
|
+
</td>
|
401
|
+
</tr>
|
402
|
+
|
403
|
+
<tr>
|
404
|
+
<td class="attributes"> </td>
|
405
|
+
<td class="nameDescription">
|
406
|
+
<div class="fixedFont">
|
407
|
+
<b><a href="../symbols/jasmine.Matchers.html#toNotMatch">toNotMatch</a></b>
|
408
|
+
</div>
|
409
|
+
<div class="description">Matcher that compares the actual to the expected using the boolean inverse of jasmine.Matchers.toMatch</div>
|
410
|
+
</td>
|
411
|
+
</tr>
|
412
|
+
|
413
|
+
<tr>
|
414
|
+
<td class="attributes"> </td>
|
415
|
+
<td class="nameDescription">
|
416
|
+
<div class="fixedFont">
|
417
|
+
<b><a href="../symbols/jasmine.Matchers.html#toThrow">toThrow</a></b>
|
418
|
+
</div>
|
419
|
+
<div class="description">Matcher that checks that the expected exception was thrown by the actual.</div>
|
420
|
+
</td>
|
421
|
+
</tr>
|
422
|
+
|
423
|
+
<tr>
|
424
|
+
<td class="attributes"> </td>
|
425
|
+
<td class="nameDescription">
|
426
|
+
<div class="fixedFont">
|
427
|
+
<b><a href="../symbols/jasmine.Matchers.html#wasCalled">wasCalled</a></b>
|
428
|
+
</div>
|
429
|
+
<div class="description">Matcher that checks to see if the acutal, a Jasmine spy, was called.</div>
|
430
|
+
</td>
|
431
|
+
</tr>
|
432
|
+
|
433
|
+
<tr>
|
434
|
+
<td class="attributes"> </td>
|
435
|
+
<td class="nameDescription">
|
436
|
+
<div class="fixedFont">
|
437
|
+
<b><a href="../symbols/jasmine.Matchers.html#wasNotCalled">wasNotCalled</a></b>
|
438
|
+
</div>
|
439
|
+
<div class="description">Matcher that checks to see if the acutal, a Jasmine spy, was not called.</div>
|
440
|
+
</td>
|
441
|
+
</tr>
|
442
|
+
|
443
|
+
</tbody>
|
444
|
+
</table>
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
<!-- ============================== methods summary ======================== -->
|
451
|
+
|
452
|
+
<!-- ============================== events summary ======================== -->
|
453
|
+
|
454
|
+
|
455
|
+
<!-- ============================== constructor details ==================== -->
|
456
|
+
|
457
|
+
<div class="details"><a name="constructor"> </a>
|
458
|
+
<div class="sectionTitle">
|
459
|
+
Class Detail
|
460
|
+
</div>
|
461
|
+
|
462
|
+
<div class="fixedFont">
|
463
|
+
<b>jasmine.Matchers</b>(env, actual, results)
|
464
|
+
</div>
|
465
|
+
|
466
|
+
<div class="description">
|
467
|
+
|
468
|
+
|
469
|
+
</div>
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
<dl class="detailList">
|
476
|
+
<dt class="heading">Parameters:</dt>
|
477
|
+
|
478
|
+
<dt>
|
479
|
+
<span class="light fixedFont">{<a href="../symbols/jasmine.Env.html">jasmine.Env</a>}</span> <b>env</b>
|
480
|
+
|
481
|
+
</dt>
|
482
|
+
<dd></dd>
|
483
|
+
|
484
|
+
<dt>
|
485
|
+
<b>actual</b>
|
486
|
+
|
487
|
+
</dt>
|
488
|
+
<dd></dd>
|
489
|
+
|
490
|
+
<dt>
|
491
|
+
<span class="light fixedFont">{<a href="../symbols/jasmine.NestedResults.html">jasmine.NestedResults</a>}</span> <b>results</b>
|
492
|
+
|
493
|
+
</dt>
|
494
|
+
<dd></dd>
|
495
|
+
|
496
|
+
</dl>
|
497
|
+
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
</div>
|
506
|
+
|
507
|
+
|
508
|
+
<!-- ============================== field details ========================== -->
|
509
|
+
|
510
|
+
<div class="sectionTitle">
|
511
|
+
Field Detail
|
512
|
+
</div>
|
513
|
+
|
514
|
+
<a name="toBe"> </a>
|
515
|
+
<div class="fixedFont">
|
516
|
+
|
517
|
+
|
518
|
+
<b>toBe</b>
|
519
|
+
|
520
|
+
</div>
|
521
|
+
<div class="description">
|
522
|
+
toBe: compares the actual to the expected using ===
|
523
|
+
|
524
|
+
|
525
|
+
</div>
|
526
|
+
|
527
|
+
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
|
534
|
+
<hr />
|
535
|
+
|
536
|
+
<a name="toBeDefined"> </a>
|
537
|
+
<div class="fixedFont">
|
538
|
+
|
539
|
+
|
540
|
+
<b>toBeDefined</b>
|
541
|
+
|
542
|
+
</div>
|
543
|
+
<div class="description">
|
544
|
+
Matcher that compares the acutal to undefined.
|
545
|
+
|
546
|
+
|
547
|
+
</div>
|
548
|
+
|
549
|
+
|
550
|
+
|
551
|
+
|
552
|
+
|
553
|
+
|
554
|
+
|
555
|
+
|
556
|
+
<hr />
|
557
|
+
|
558
|
+
<a name="toBeFalsy"> </a>
|
559
|
+
<div class="fixedFont">
|
560
|
+
|
561
|
+
|
562
|
+
<b>toBeFalsy</b>
|
563
|
+
|
564
|
+
</div>
|
565
|
+
<div class="description">
|
566
|
+
Matcher that boolean nots the actual.
|
567
|
+
|
568
|
+
|
569
|
+
</div>
|
570
|
+
|
571
|
+
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
|
578
|
+
<hr />
|
579
|
+
|
580
|
+
<a name="toBeNull"> </a>
|
581
|
+
<div class="fixedFont">
|
582
|
+
|
583
|
+
|
584
|
+
<b>toBeNull</b>
|
585
|
+
|
586
|
+
</div>
|
587
|
+
<div class="description">
|
588
|
+
Matcher that compares the actual to null.
|
589
|
+
|
590
|
+
|
591
|
+
</div>
|
592
|
+
|
593
|
+
|
594
|
+
|
595
|
+
|
596
|
+
|
597
|
+
|
598
|
+
|
599
|
+
|
600
|
+
<hr />
|
601
|
+
|
602
|
+
<a name="toBeTruthy"> </a>
|
603
|
+
<div class="fixedFont">
|
604
|
+
|
605
|
+
|
606
|
+
<b>toBeTruthy</b>
|
607
|
+
|
608
|
+
</div>
|
609
|
+
<div class="description">
|
610
|
+
Matcher that boolean not-nots the actual.
|
611
|
+
|
612
|
+
|
613
|
+
</div>
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
|
622
|
+
<hr />
|
623
|
+
|
624
|
+
<a name="toBeUndefined"> </a>
|
625
|
+
<div class="fixedFont">
|
626
|
+
|
627
|
+
|
628
|
+
<b>toBeUndefined</b>
|
629
|
+
|
630
|
+
</div>
|
631
|
+
<div class="description">
|
632
|
+
Matcher that compares the acutal to undefined.
|
633
|
+
|
634
|
+
|
635
|
+
</div>
|
636
|
+
|
637
|
+
|
638
|
+
|
639
|
+
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
|
644
|
+
<hr />
|
645
|
+
|
646
|
+
<a name="toContain"> </a>
|
647
|
+
<div class="fixedFont">
|
648
|
+
|
649
|
+
|
650
|
+
<b>toContain</b>
|
651
|
+
|
652
|
+
</div>
|
653
|
+
<div class="description">
|
654
|
+
Matcher that checks that the expected item is an element in the actual Array.
|
655
|
+
|
656
|
+
|
657
|
+
</div>
|
658
|
+
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
<hr />
|
667
|
+
|
668
|
+
<a name="toEqual"> </a>
|
669
|
+
<div class="fixedFont">
|
670
|
+
|
671
|
+
|
672
|
+
<b>toEqual</b>
|
673
|
+
|
674
|
+
</div>
|
675
|
+
<div class="description">
|
676
|
+
toEqual: compares the actual to the expected using common sense equality. Handles Objects, Arrays, etc.
|
677
|
+
|
678
|
+
|
679
|
+
</div>
|
680
|
+
|
681
|
+
|
682
|
+
|
683
|
+
|
684
|
+
|
685
|
+
|
686
|
+
|
687
|
+
|
688
|
+
<hr />
|
689
|
+
|
690
|
+
<a name="toMatch"> </a>
|
691
|
+
<div class="fixedFont">
|
692
|
+
|
693
|
+
|
694
|
+
<b>toMatch</b>
|
695
|
+
|
696
|
+
</div>
|
697
|
+
<div class="description">
|
698
|
+
Matcher that compares the actual to the expected using a regular expression. Constructs a RegExp, so takes
|
699
|
+
a pattern or a String.
|
700
|
+
|
701
|
+
|
702
|
+
</div>
|
703
|
+
|
704
|
+
|
705
|
+
|
706
|
+
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
|
711
|
+
<hr />
|
712
|
+
|
713
|
+
<a name="toNotBe"> </a>
|
714
|
+
<div class="fixedFont">
|
715
|
+
|
716
|
+
|
717
|
+
<b>toNotBe</b>
|
718
|
+
|
719
|
+
</div>
|
720
|
+
<div class="description">
|
721
|
+
toNotBe: compares the actual to the expected using !==
|
722
|
+
|
723
|
+
|
724
|
+
</div>
|
725
|
+
|
726
|
+
|
727
|
+
|
728
|
+
|
729
|
+
|
730
|
+
|
731
|
+
|
732
|
+
|
733
|
+
<hr />
|
734
|
+
|
735
|
+
<a name="toNotContain"> </a>
|
736
|
+
<div class="fixedFont">
|
737
|
+
|
738
|
+
|
739
|
+
<b>toNotContain</b>
|
740
|
+
|
741
|
+
</div>
|
742
|
+
<div class="description">
|
743
|
+
Matcher that checks that the expected item is NOT an element in the actual Array.
|
744
|
+
|
745
|
+
|
746
|
+
</div>
|
747
|
+
|
748
|
+
|
749
|
+
|
750
|
+
|
751
|
+
|
752
|
+
|
753
|
+
|
754
|
+
|
755
|
+
<hr />
|
756
|
+
|
757
|
+
<a name="toNotEqual"> </a>
|
758
|
+
<div class="fixedFont">
|
759
|
+
|
760
|
+
|
761
|
+
<b>toNotEqual</b>
|
762
|
+
|
763
|
+
</div>
|
764
|
+
<div class="description">
|
765
|
+
toNotEqual: compares the actual to the expected using the ! of jasmine.Matchers.toEqual
|
766
|
+
|
767
|
+
|
768
|
+
</div>
|
769
|
+
|
770
|
+
|
771
|
+
|
772
|
+
|
773
|
+
|
774
|
+
|
775
|
+
|
776
|
+
|
777
|
+
<hr />
|
778
|
+
|
779
|
+
<a name="toNotMatch"> </a>
|
780
|
+
<div class="fixedFont">
|
781
|
+
|
782
|
+
|
783
|
+
<b>toNotMatch</b>
|
784
|
+
|
785
|
+
</div>
|
786
|
+
<div class="description">
|
787
|
+
Matcher that compares the actual to the expected using the boolean inverse of jasmine.Matchers.toMatch
|
788
|
+
|
789
|
+
|
790
|
+
</div>
|
791
|
+
|
792
|
+
|
793
|
+
|
794
|
+
|
795
|
+
|
796
|
+
|
797
|
+
|
798
|
+
|
799
|
+
<hr />
|
800
|
+
|
801
|
+
<a name="toThrow"> </a>
|
802
|
+
<div class="fixedFont">
|
803
|
+
|
804
|
+
|
805
|
+
<b>toThrow</b>
|
806
|
+
|
807
|
+
</div>
|
808
|
+
<div class="description">
|
809
|
+
Matcher that checks that the expected exception was thrown by the actual.
|
810
|
+
|
811
|
+
|
812
|
+
</div>
|
813
|
+
|
814
|
+
|
815
|
+
|
816
|
+
|
817
|
+
|
818
|
+
|
819
|
+
|
820
|
+
|
821
|
+
<hr />
|
822
|
+
|
823
|
+
<a name="wasCalled"> </a>
|
824
|
+
<div class="fixedFont">
|
825
|
+
|
826
|
+
|
827
|
+
<b>wasCalled</b>
|
828
|
+
|
829
|
+
</div>
|
830
|
+
<div class="description">
|
831
|
+
Matcher that checks to see if the acutal, a Jasmine spy, was called.
|
832
|
+
|
833
|
+
|
834
|
+
</div>
|
835
|
+
|
836
|
+
|
837
|
+
|
838
|
+
|
839
|
+
|
840
|
+
|
841
|
+
|
842
|
+
|
843
|
+
<hr />
|
844
|
+
|
845
|
+
<a name="wasNotCalled"> </a>
|
846
|
+
<div class="fixedFont">
|
847
|
+
|
848
|
+
|
849
|
+
<b>wasNotCalled</b>
|
850
|
+
|
851
|
+
</div>
|
852
|
+
<div class="description">
|
853
|
+
Matcher that checks to see if the acutal, a Jasmine spy, was not called.
|
854
|
+
|
855
|
+
|
856
|
+
</div>
|
857
|
+
|
858
|
+
|
859
|
+
|
860
|
+
|
861
|
+
|
862
|
+
|
863
|
+
|
864
|
+
|
865
|
+
|
866
|
+
|
867
|
+
|
868
|
+
|
869
|
+
<!-- ============================== method details ========================= -->
|
870
|
+
|
871
|
+
|
872
|
+
<!-- ============================== event details ========================= -->
|
873
|
+
|
874
|
+
|
875
|
+
<hr />
|
876
|
+
</div>
|
877
|
+
|
878
|
+
|
879
|
+
<!-- ============================== footer ================================= -->
|
880
|
+
<div class="fineprint" style="clear:both">
|
881
|
+
|
882
|
+
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Mon Nov 02 2009 16:15:59 GMT-0800 (PST)
|
883
|
+
</div>
|
884
|
+
</body>
|
885
|
+
</html>
|