shuriken 0.1.2.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Rakefile +28 -0
- data/coffeescripts/shuriken/test/assertions.coffee +111 -0
- data/coffeescripts/shuriken/test/reporters.coffee +61 -0
- data/coffeescripts/shuriken/test.coffee +117 -0
- data/coffeescripts/shuriken.coffee +2 -2
- data/javascripts/shuriken/mixins/callbacks.js +45 -0
- data/javascripts/shuriken/mixins.js +58 -0
- data/javascripts/shuriken/test/assertions.js +117 -0
- data/javascripts/shuriken/test/reporters.js +84 -0
- data/javascripts/shuriken/test.js +165 -0
- data/javascripts/shuriken.js +195 -0
- data/lib/shuriken.rb +1 -1
- data/shuriken.gemspec +84 -4
- data/tests/basic_namespace_tests.coffee +114 -0
- data/tests/template.erb +26 -0
- data/tests.watchr +6 -0
- data/vendor/jasmine-0.10.0/MIT.LICENSE +20 -0
- data/vendor/jasmine-0.10.0/README.markdown +437 -0
- data/vendor/jasmine-0.10.0/doc/files.html +460 -0
- data/vendor/jasmine-0.10.0/doc/index.html +322 -0
- data/vendor/jasmine-0.10.0/doc/symbols/_global_.html +918 -0
- data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Block.html +417 -0
- data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Clock.html +678 -0
- data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Env.html +1169 -0
- data/vendor/jasmine-0.10.0/doc/symbols/jasmine.JsApiReporter.html +822 -0
- data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Matchers.html +1461 -0
- data/vendor/jasmine-0.10.0/doc/symbols/jasmine.MultiReporter.html +394 -0
- data/vendor/jasmine-0.10.0/doc/symbols/jasmine.NestedResults.html +710 -0
- data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Reporter.html +574 -0
- data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Runner.html +710 -0
- data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Spec.html +1259 -0
- data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Spy.html +855 -0
- data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Suite.html +705 -0
- data/vendor/jasmine-0.10.0/doc/symbols/jasmine.html +1345 -0
- data/vendor/jasmine-0.10.0/doc/symbols/jasmine.util.html +535 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/lib_TrivialReporter.js.html +124 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_Block.js.html +29 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_Env.js.html +240 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_JsApiReporter.js.html +111 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_Matchers.js.html +328 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_MultiReporter.js.html +36 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_NestedResults.js.html +88 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_PrettyPrinter.js.html +130 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_Queue.js.html +102 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_Reporter.js.html +35 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_Reporters.js.html +51 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_Runner.js.html +75 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_Spec.js.html +211 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_Suite.js.html +77 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_WaitsBlock.js.html +21 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_WaitsForBlock.js.html +45 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_base.js.html +555 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_mock-timeout.js.html +185 -0
- data/vendor/jasmine-0.10.0/doc/symbols/src/src_util.js.html +75 -0
- data/vendor/jasmine-0.10.0/example/example_runner.html +25 -0
- data/vendor/jasmine-0.10.0/example/spec/example_suite.js +11 -0
- data/vendor/jasmine-0.10.0/lib/TrivialReporter.js +117 -0
- data/vendor/jasmine-0.10.0/lib/consolex.js +28 -0
- data/vendor/jasmine-0.10.0/lib/jasmine-0.10.0.js +2261 -0
- data/vendor/jasmine-0.10.0/lib/jasmine.css +86 -0
- data/vendor/jasmine-0.10.0/spec/runner.html +63 -0
- data/vendor/jasmine-0.10.0/spec/suites/CustomMatchersSpec.js +112 -0
- data/vendor/jasmine-0.10.0/spec/suites/EnvSpec.js +71 -0
- data/vendor/jasmine-0.10.0/spec/suites/ExceptionsSpec.js +107 -0
- data/vendor/jasmine-0.10.0/spec/suites/JsApiReporterSpec.js +82 -0
- data/vendor/jasmine-0.10.0/spec/suites/MatchersSpec.js +589 -0
- data/vendor/jasmine-0.10.0/spec/suites/MockClockSpec.js +34 -0
- data/vendor/jasmine-0.10.0/spec/suites/MultiReporterSpec.js +30 -0
- data/vendor/jasmine-0.10.0/spec/suites/NestedResultsSpec.js +54 -0
- data/vendor/jasmine-0.10.0/spec/suites/PrettyPrintSpec.js +93 -0
- data/vendor/jasmine-0.10.0/spec/suites/QueueSpec.js +23 -0
- data/vendor/jasmine-0.10.0/spec/suites/ReporterSpec.js +60 -0
- data/vendor/jasmine-0.10.0/spec/suites/RunnerSpec.js +258 -0
- data/vendor/jasmine-0.10.0/spec/suites/SpecRunningSpec.js +1086 -0
- data/vendor/jasmine-0.10.0/spec/suites/SpecSpec.js +110 -0
- data/vendor/jasmine-0.10.0/spec/suites/SpySpec.js +187 -0
- data/vendor/jasmine-0.10.0/spec/suites/SuiteSpec.js +101 -0
- data/vendor/jasmine-0.10.0/spec/suites/TrivialReporterSpec.js +140 -0
- data/vendor/jasmine-0.10.0/spec/suites/UtilSpec.js +23 -0
- data/vendor/jquery.js +154 -0
- data/wip-coffeescripts/example_test.coffee +0 -0
- data/wip-coffeescripts/test/assertions.coffee +111 -0
- data/wip-coffeescripts/test/reporters.coffee +61 -0
- data/wip-coffeescripts/test.coffee +96 -15
- metadata +83 -4
@@ -0,0 +1,1461 @@
|
|
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.Clock.html">jasmine.Clock</a></li>
|
199
|
+
|
200
|
+
<li><a href="../symbols/jasmine.Env.html">jasmine.Env</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/src_Matchers.js.html">Matchers.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, spec)
|
261
|
+
</div>
|
262
|
+
<div class="description"></div>
|
263
|
+
</td>
|
264
|
+
</tr>
|
265
|
+
</tbody>
|
266
|
+
</table>
|
267
|
+
|
268
|
+
|
269
|
+
<!-- ============================== properties summary ===================== -->
|
270
|
+
|
271
|
+
|
272
|
+
<!-- ============================== methods summary ======================== -->
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class jasmine.Matchers.">
|
277
|
+
<caption>Method Summary</caption>
|
278
|
+
<thead>
|
279
|
+
<tr>
|
280
|
+
<th scope="col">Method Attributes</th>
|
281
|
+
<th scope="col">Method Name and Description</th>
|
282
|
+
</tr>
|
283
|
+
</thead>
|
284
|
+
<tbody>
|
285
|
+
|
286
|
+
<tr>
|
287
|
+
<td class="attributes"><static> </td>
|
288
|
+
<td class="nameDescription">
|
289
|
+
<div class="fixedFont">jasmine.Matchers.<b><a href="../symbols/jasmine.Matchers.html#.Any">Any</a></b>(expectedClass)
|
290
|
+
</div>
|
291
|
+
<div class="description"></div>
|
292
|
+
</td>
|
293
|
+
</tr>
|
294
|
+
|
295
|
+
<tr>
|
296
|
+
<td class="attributes"><static> </td>
|
297
|
+
<td class="nameDescription">
|
298
|
+
<div class="fixedFont">jasmine.Matchers.<b><a href="../symbols/jasmine.Matchers.html#.matcherFn_">matcherFn_</a></b>(matcherName, matcherFunction)
|
299
|
+
</div>
|
300
|
+
<div class="description"></div>
|
301
|
+
</td>
|
302
|
+
</tr>
|
303
|
+
|
304
|
+
<tr>
|
305
|
+
<td class="attributes"> </td>
|
306
|
+
<td class="nameDescription">
|
307
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#message">message</a></b>()
|
308
|
+
</div>
|
309
|
+
<div class="description"></div>
|
310
|
+
</td>
|
311
|
+
</tr>
|
312
|
+
|
313
|
+
<tr>
|
314
|
+
<td class="attributes"><static> </td>
|
315
|
+
<td class="nameDescription">
|
316
|
+
<div class="fixedFont">jasmine.Matchers.<b><a href="../symbols/jasmine.Matchers.html#.pp">pp</a></b>(str)
|
317
|
+
</div>
|
318
|
+
<div class="description"></div>
|
319
|
+
</td>
|
320
|
+
</tr>
|
321
|
+
|
322
|
+
<tr>
|
323
|
+
<td class="attributes"> </td>
|
324
|
+
<td class="nameDescription">
|
325
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#report">report</a></b>(result, failing_message, details)
|
326
|
+
</div>
|
327
|
+
<div class="description"></div>
|
328
|
+
</td>
|
329
|
+
</tr>
|
330
|
+
|
331
|
+
<tr>
|
332
|
+
<td class="attributes"> </td>
|
333
|
+
<td class="nameDescription">
|
334
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBe">toBe</a></b>(expected)
|
335
|
+
</div>
|
336
|
+
<div class="description">toBe: compares the actual to the expected using ===</div>
|
337
|
+
</td>
|
338
|
+
</tr>
|
339
|
+
|
340
|
+
<tr>
|
341
|
+
<td class="attributes"> </td>
|
342
|
+
<td class="nameDescription">
|
343
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBeDefined">toBeDefined</a></b>()
|
344
|
+
</div>
|
345
|
+
<div class="description">Matcher that compares the actual to jasmine.undefined.</div>
|
346
|
+
</td>
|
347
|
+
</tr>
|
348
|
+
|
349
|
+
<tr>
|
350
|
+
<td class="attributes"> </td>
|
351
|
+
<td class="nameDescription">
|
352
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBeFalsy">toBeFalsy</a></b>()
|
353
|
+
</div>
|
354
|
+
<div class="description">Matcher that boolean nots the actual.</div>
|
355
|
+
</td>
|
356
|
+
</tr>
|
357
|
+
|
358
|
+
<tr>
|
359
|
+
<td class="attributes"> </td>
|
360
|
+
<td class="nameDescription">
|
361
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBeGreaterThan">toBeGreaterThan</a></b>(expected)
|
362
|
+
</div>
|
363
|
+
<div class="description"></div>
|
364
|
+
</td>
|
365
|
+
</tr>
|
366
|
+
|
367
|
+
<tr>
|
368
|
+
<td class="attributes"> </td>
|
369
|
+
<td class="nameDescription">
|
370
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBeLessThan">toBeLessThan</a></b>(expected)
|
371
|
+
</div>
|
372
|
+
<div class="description"></div>
|
373
|
+
</td>
|
374
|
+
</tr>
|
375
|
+
|
376
|
+
<tr>
|
377
|
+
<td class="attributes"> </td>
|
378
|
+
<td class="nameDescription">
|
379
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBeNull">toBeNull</a></b>()
|
380
|
+
</div>
|
381
|
+
<div class="description">Matcher that compares the actual to null.</div>
|
382
|
+
</td>
|
383
|
+
</tr>
|
384
|
+
|
385
|
+
<tr>
|
386
|
+
<td class="attributes"> </td>
|
387
|
+
<td class="nameDescription">
|
388
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBeTruthy">toBeTruthy</a></b>()
|
389
|
+
</div>
|
390
|
+
<div class="description">Matcher that boolean not-nots the actual.</div>
|
391
|
+
</td>
|
392
|
+
</tr>
|
393
|
+
|
394
|
+
<tr>
|
395
|
+
<td class="attributes"> </td>
|
396
|
+
<td class="nameDescription">
|
397
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBeUndefined">toBeUndefined</a></b>()
|
398
|
+
</div>
|
399
|
+
<div class="description">Matcher that compares the actual to jasmine.undefined.</div>
|
400
|
+
</td>
|
401
|
+
</tr>
|
402
|
+
|
403
|
+
<tr>
|
404
|
+
<td class="attributes"> </td>
|
405
|
+
<td class="nameDescription">
|
406
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toContain">toContain</a></b>(expected)
|
407
|
+
</div>
|
408
|
+
<div class="description">Matcher that checks that the expected item is an element in the actual Array.</div>
|
409
|
+
</td>
|
410
|
+
</tr>
|
411
|
+
|
412
|
+
<tr>
|
413
|
+
<td class="attributes"> </td>
|
414
|
+
<td class="nameDescription">
|
415
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toEqual">toEqual</a></b>(expected)
|
416
|
+
</div>
|
417
|
+
<div class="description">toEqual: compares the actual to the expected using common sense equality.</div>
|
418
|
+
</td>
|
419
|
+
</tr>
|
420
|
+
|
421
|
+
<tr>
|
422
|
+
<td class="attributes"> </td>
|
423
|
+
<td class="nameDescription">
|
424
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toMatch">toMatch</a></b>(expected)
|
425
|
+
</div>
|
426
|
+
<div class="description">Matcher that compares the actual to the expected using a regular expression.</div>
|
427
|
+
</td>
|
428
|
+
</tr>
|
429
|
+
|
430
|
+
<tr>
|
431
|
+
<td class="attributes"> </td>
|
432
|
+
<td class="nameDescription">
|
433
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toNotBe">toNotBe</a></b>(expected)
|
434
|
+
</div>
|
435
|
+
<div class="description">toNotBe: compares the actual to the expected using !==</div>
|
436
|
+
</td>
|
437
|
+
</tr>
|
438
|
+
|
439
|
+
<tr>
|
440
|
+
<td class="attributes"> </td>
|
441
|
+
<td class="nameDescription">
|
442
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toNotContain">toNotContain</a></b>(expected)
|
443
|
+
</div>
|
444
|
+
<div class="description">Matcher that checks that the expected item is NOT an element in the actual Array.</div>
|
445
|
+
</td>
|
446
|
+
</tr>
|
447
|
+
|
448
|
+
<tr>
|
449
|
+
<td class="attributes"> </td>
|
450
|
+
<td class="nameDescription">
|
451
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toNotEqual">toNotEqual</a></b>(expected)
|
452
|
+
</div>
|
453
|
+
<div class="description">toNotEqual: compares the actual to the expected using the ! of jasmine.Matchers.toEqual</div>
|
454
|
+
</td>
|
455
|
+
</tr>
|
456
|
+
|
457
|
+
<tr>
|
458
|
+
<td class="attributes"> </td>
|
459
|
+
<td class="nameDescription">
|
460
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toNotMatch">toNotMatch</a></b>(expected)
|
461
|
+
</div>
|
462
|
+
<div class="description">Matcher that compares the actual to the expected using the boolean inverse of jasmine.Matchers.toMatch</div>
|
463
|
+
</td>
|
464
|
+
</tr>
|
465
|
+
|
466
|
+
<tr>
|
467
|
+
<td class="attributes"> </td>
|
468
|
+
<td class="nameDescription">
|
469
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toThrow">toThrow</a></b>(expected)
|
470
|
+
</div>
|
471
|
+
<div class="description">Matcher that checks that the expected exception was thrown by the actual.</div>
|
472
|
+
</td>
|
473
|
+
</tr>
|
474
|
+
|
475
|
+
<tr>
|
476
|
+
<td class="attributes"> </td>
|
477
|
+
<td class="nameDescription">
|
478
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#wasCalled">wasCalled</a></b>()
|
479
|
+
</div>
|
480
|
+
<div class="description">Matcher that checks to see if the actual, a Jasmine spy, was called.</div>
|
481
|
+
</td>
|
482
|
+
</tr>
|
483
|
+
|
484
|
+
<tr>
|
485
|
+
<td class="attributes"> </td>
|
486
|
+
<td class="nameDescription">
|
487
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#wasCalledWith">wasCalledWith</a></b>()
|
488
|
+
</div>
|
489
|
+
<div class="description">Matcher that checks to see if the actual, a Jasmine spy, was called with a set of parameters.</div>
|
490
|
+
</td>
|
491
|
+
</tr>
|
492
|
+
|
493
|
+
<tr>
|
494
|
+
<td class="attributes"> </td>
|
495
|
+
<td class="nameDescription">
|
496
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#wasNotCalled">wasNotCalled</a></b>()
|
497
|
+
</div>
|
498
|
+
<div class="description">Matcher that checks to see if the actual, a Jasmine spy, was not called.</div>
|
499
|
+
</td>
|
500
|
+
</tr>
|
501
|
+
|
502
|
+
<tr>
|
503
|
+
<td class="attributes"> </td>
|
504
|
+
<td class="nameDescription">
|
505
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#wasNotCalledWith">wasNotCalledWith</a></b>()
|
506
|
+
</div>
|
507
|
+
<div class="description"></div>
|
508
|
+
</td>
|
509
|
+
</tr>
|
510
|
+
|
511
|
+
<tr>
|
512
|
+
<td class="attributes"><static> </td>
|
513
|
+
<td class="nameDescription">
|
514
|
+
<div class="fixedFont">jasmine.Matchers.<b><a href="../symbols/jasmine.Matchers.html#.wrapInto_">wrapInto_</a></b>(prototype, matchersClass)
|
515
|
+
</div>
|
516
|
+
<div class="description"></div>
|
517
|
+
</td>
|
518
|
+
</tr>
|
519
|
+
|
520
|
+
</tbody>
|
521
|
+
</table>
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
|
526
|
+
<!-- ============================== events summary ======================== -->
|
527
|
+
|
528
|
+
|
529
|
+
<!-- ============================== constructor details ==================== -->
|
530
|
+
|
531
|
+
<div class="details"><a name="constructor"> </a>
|
532
|
+
<div class="sectionTitle">
|
533
|
+
Class Detail
|
534
|
+
</div>
|
535
|
+
|
536
|
+
<div class="fixedFont">
|
537
|
+
<b>jasmine.Matchers</b>(env, actual, spec)
|
538
|
+
</div>
|
539
|
+
|
540
|
+
<div class="description">
|
541
|
+
|
542
|
+
|
543
|
+
</div>
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
<dl class="detailList">
|
550
|
+
<dt class="heading">Parameters:</dt>
|
551
|
+
|
552
|
+
<dt>
|
553
|
+
<span class="light fixedFont">{<a href="../symbols/jasmine.Env.html">jasmine.Env</a>}</span> <b>env</b>
|
554
|
+
|
555
|
+
</dt>
|
556
|
+
<dd></dd>
|
557
|
+
|
558
|
+
<dt>
|
559
|
+
<b>actual</b>
|
560
|
+
|
561
|
+
</dt>
|
562
|
+
<dd></dd>
|
563
|
+
|
564
|
+
<dt>
|
565
|
+
<span class="light fixedFont">{<a href="../symbols/jasmine.Spec.html">jasmine.Spec</a>}</span> <b>spec</b>
|
566
|
+
|
567
|
+
</dt>
|
568
|
+
<dd></dd>
|
569
|
+
|
570
|
+
</dl>
|
571
|
+
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
</div>
|
580
|
+
|
581
|
+
|
582
|
+
<!-- ============================== field details ========================== -->
|
583
|
+
|
584
|
+
|
585
|
+
<!-- ============================== method details ========================= -->
|
586
|
+
|
587
|
+
<div class="sectionTitle">
|
588
|
+
Method Detail
|
589
|
+
</div>
|
590
|
+
|
591
|
+
<a name=".Any"> </a>
|
592
|
+
<div class="fixedFont"><static>
|
593
|
+
|
594
|
+
|
595
|
+
<span class="light">jasmine.Matchers.</span><b>Any</b>(expectedClass)
|
596
|
+
|
597
|
+
</div>
|
598
|
+
<div class="description">
|
599
|
+
|
600
|
+
|
601
|
+
|
602
|
+
</div>
|
603
|
+
|
604
|
+
|
605
|
+
|
606
|
+
|
607
|
+
<dl class="detailList">
|
608
|
+
<dt class="heading">Parameters:</dt>
|
609
|
+
|
610
|
+
<dt>
|
611
|
+
<b>expectedClass</b>
|
612
|
+
|
613
|
+
</dt>
|
614
|
+
<dd></dd>
|
615
|
+
|
616
|
+
</dl>
|
617
|
+
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
|
624
|
+
|
625
|
+
<hr />
|
626
|
+
|
627
|
+
<a name=".matcherFn_"> </a>
|
628
|
+
<div class="fixedFont"><static>
|
629
|
+
|
630
|
+
|
631
|
+
<span class="light">jasmine.Matchers.</span><b>matcherFn_</b>(matcherName, matcherFunction)
|
632
|
+
|
633
|
+
</div>
|
634
|
+
<div class="description">
|
635
|
+
|
636
|
+
|
637
|
+
|
638
|
+
</div>
|
639
|
+
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
<dl class="detailList">
|
644
|
+
<dt class="heading">Parameters:</dt>
|
645
|
+
|
646
|
+
<dt>
|
647
|
+
<b>matcherName</b>
|
648
|
+
|
649
|
+
</dt>
|
650
|
+
<dd></dd>
|
651
|
+
|
652
|
+
<dt>
|
653
|
+
<b>matcherFunction</b>
|
654
|
+
|
655
|
+
</dt>
|
656
|
+
<dd></dd>
|
657
|
+
|
658
|
+
</dl>
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
|
667
|
+
<hr />
|
668
|
+
|
669
|
+
<a name="message"> </a>
|
670
|
+
<div class="fixedFont">
|
671
|
+
|
672
|
+
|
673
|
+
<b>message</b>()
|
674
|
+
|
675
|
+
</div>
|
676
|
+
<div class="description">
|
677
|
+
|
678
|
+
|
679
|
+
|
680
|
+
</div>
|
681
|
+
|
682
|
+
|
683
|
+
|
684
|
+
|
685
|
+
|
686
|
+
|
687
|
+
|
688
|
+
|
689
|
+
|
690
|
+
|
691
|
+
|
692
|
+
<hr />
|
693
|
+
|
694
|
+
<a name=".pp"> </a>
|
695
|
+
<div class="fixedFont"><static>
|
696
|
+
|
697
|
+
|
698
|
+
<span class="light">jasmine.Matchers.</span><b>pp</b>(str)
|
699
|
+
|
700
|
+
</div>
|
701
|
+
<div class="description">
|
702
|
+
|
703
|
+
|
704
|
+
|
705
|
+
</div>
|
706
|
+
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
<dl class="detailList">
|
711
|
+
<dt class="heading">Parameters:</dt>
|
712
|
+
|
713
|
+
<dt>
|
714
|
+
<b>str</b>
|
715
|
+
|
716
|
+
</dt>
|
717
|
+
<dd></dd>
|
718
|
+
|
719
|
+
</dl>
|
720
|
+
|
721
|
+
|
722
|
+
|
723
|
+
|
724
|
+
|
725
|
+
|
726
|
+
|
727
|
+
|
728
|
+
<hr />
|
729
|
+
|
730
|
+
<a name="report"> </a>
|
731
|
+
<div class="fixedFont">
|
732
|
+
|
733
|
+
|
734
|
+
<b>report</b>(result, failing_message, details)
|
735
|
+
|
736
|
+
</div>
|
737
|
+
<div class="description">
|
738
|
+
|
739
|
+
|
740
|
+
|
741
|
+
</div>
|
742
|
+
|
743
|
+
|
744
|
+
|
745
|
+
|
746
|
+
<dl class="detailList">
|
747
|
+
<dt class="heading">Parameters:</dt>
|
748
|
+
|
749
|
+
<dt>
|
750
|
+
<b>result</b>
|
751
|
+
|
752
|
+
</dt>
|
753
|
+
<dd></dd>
|
754
|
+
|
755
|
+
<dt>
|
756
|
+
<b>failing_message</b>
|
757
|
+
|
758
|
+
</dt>
|
759
|
+
<dd></dd>
|
760
|
+
|
761
|
+
<dt>
|
762
|
+
<b>details</b>
|
763
|
+
|
764
|
+
</dt>
|
765
|
+
<dd></dd>
|
766
|
+
|
767
|
+
</dl>
|
768
|
+
|
769
|
+
|
770
|
+
|
771
|
+
|
772
|
+
|
773
|
+
|
774
|
+
|
775
|
+
|
776
|
+
<hr />
|
777
|
+
|
778
|
+
<a name="toBe"> </a>
|
779
|
+
<div class="fixedFont">
|
780
|
+
|
781
|
+
|
782
|
+
<b>toBe</b>(expected)
|
783
|
+
|
784
|
+
</div>
|
785
|
+
<div class="description">
|
786
|
+
toBe: compares the actual to the expected using ===
|
787
|
+
|
788
|
+
|
789
|
+
</div>
|
790
|
+
|
791
|
+
|
792
|
+
|
793
|
+
|
794
|
+
<dl class="detailList">
|
795
|
+
<dt class="heading">Parameters:</dt>
|
796
|
+
|
797
|
+
<dt>
|
798
|
+
<b>expected</b>
|
799
|
+
|
800
|
+
</dt>
|
801
|
+
<dd></dd>
|
802
|
+
|
803
|
+
</dl>
|
804
|
+
|
805
|
+
|
806
|
+
|
807
|
+
|
808
|
+
|
809
|
+
|
810
|
+
|
811
|
+
|
812
|
+
<hr />
|
813
|
+
|
814
|
+
<a name="toBeDefined"> </a>
|
815
|
+
<div class="fixedFont">
|
816
|
+
|
817
|
+
|
818
|
+
<b>toBeDefined</b>()
|
819
|
+
|
820
|
+
</div>
|
821
|
+
<div class="description">
|
822
|
+
Matcher that compares the actual to jasmine.undefined.
|
823
|
+
|
824
|
+
|
825
|
+
</div>
|
826
|
+
|
827
|
+
|
828
|
+
|
829
|
+
|
830
|
+
|
831
|
+
|
832
|
+
|
833
|
+
|
834
|
+
|
835
|
+
|
836
|
+
|
837
|
+
<hr />
|
838
|
+
|
839
|
+
<a name="toBeFalsy"> </a>
|
840
|
+
<div class="fixedFont">
|
841
|
+
|
842
|
+
|
843
|
+
<b>toBeFalsy</b>()
|
844
|
+
|
845
|
+
</div>
|
846
|
+
<div class="description">
|
847
|
+
Matcher that boolean nots the actual.
|
848
|
+
|
849
|
+
|
850
|
+
</div>
|
851
|
+
|
852
|
+
|
853
|
+
|
854
|
+
|
855
|
+
|
856
|
+
|
857
|
+
|
858
|
+
|
859
|
+
|
860
|
+
|
861
|
+
|
862
|
+
<hr />
|
863
|
+
|
864
|
+
<a name="toBeGreaterThan"> </a>
|
865
|
+
<div class="fixedFont">
|
866
|
+
|
867
|
+
|
868
|
+
<b>toBeGreaterThan</b>(expected)
|
869
|
+
|
870
|
+
</div>
|
871
|
+
<div class="description">
|
872
|
+
|
873
|
+
|
874
|
+
|
875
|
+
</div>
|
876
|
+
|
877
|
+
|
878
|
+
|
879
|
+
|
880
|
+
<dl class="detailList">
|
881
|
+
<dt class="heading">Parameters:</dt>
|
882
|
+
|
883
|
+
<dt>
|
884
|
+
<b>expected</b>
|
885
|
+
|
886
|
+
</dt>
|
887
|
+
<dd></dd>
|
888
|
+
|
889
|
+
</dl>
|
890
|
+
|
891
|
+
|
892
|
+
|
893
|
+
|
894
|
+
|
895
|
+
|
896
|
+
|
897
|
+
|
898
|
+
<hr />
|
899
|
+
|
900
|
+
<a name="toBeLessThan"> </a>
|
901
|
+
<div class="fixedFont">
|
902
|
+
|
903
|
+
|
904
|
+
<b>toBeLessThan</b>(expected)
|
905
|
+
|
906
|
+
</div>
|
907
|
+
<div class="description">
|
908
|
+
|
909
|
+
|
910
|
+
|
911
|
+
</div>
|
912
|
+
|
913
|
+
|
914
|
+
|
915
|
+
|
916
|
+
<dl class="detailList">
|
917
|
+
<dt class="heading">Parameters:</dt>
|
918
|
+
|
919
|
+
<dt>
|
920
|
+
<b>expected</b>
|
921
|
+
|
922
|
+
</dt>
|
923
|
+
<dd></dd>
|
924
|
+
|
925
|
+
</dl>
|
926
|
+
|
927
|
+
|
928
|
+
|
929
|
+
|
930
|
+
|
931
|
+
|
932
|
+
|
933
|
+
|
934
|
+
<hr />
|
935
|
+
|
936
|
+
<a name="toBeNull"> </a>
|
937
|
+
<div class="fixedFont">
|
938
|
+
|
939
|
+
|
940
|
+
<b>toBeNull</b>()
|
941
|
+
|
942
|
+
</div>
|
943
|
+
<div class="description">
|
944
|
+
Matcher that compares the actual to null.
|
945
|
+
|
946
|
+
|
947
|
+
</div>
|
948
|
+
|
949
|
+
|
950
|
+
|
951
|
+
|
952
|
+
|
953
|
+
|
954
|
+
|
955
|
+
|
956
|
+
|
957
|
+
|
958
|
+
|
959
|
+
<hr />
|
960
|
+
|
961
|
+
<a name="toBeTruthy"> </a>
|
962
|
+
<div class="fixedFont">
|
963
|
+
|
964
|
+
|
965
|
+
<b>toBeTruthy</b>()
|
966
|
+
|
967
|
+
</div>
|
968
|
+
<div class="description">
|
969
|
+
Matcher that boolean not-nots the actual.
|
970
|
+
|
971
|
+
|
972
|
+
</div>
|
973
|
+
|
974
|
+
|
975
|
+
|
976
|
+
|
977
|
+
|
978
|
+
|
979
|
+
|
980
|
+
|
981
|
+
|
982
|
+
|
983
|
+
|
984
|
+
<hr />
|
985
|
+
|
986
|
+
<a name="toBeUndefined"> </a>
|
987
|
+
<div class="fixedFont">
|
988
|
+
|
989
|
+
|
990
|
+
<b>toBeUndefined</b>()
|
991
|
+
|
992
|
+
</div>
|
993
|
+
<div class="description">
|
994
|
+
Matcher that compares the actual to jasmine.undefined.
|
995
|
+
|
996
|
+
|
997
|
+
</div>
|
998
|
+
|
999
|
+
|
1000
|
+
|
1001
|
+
|
1002
|
+
|
1003
|
+
|
1004
|
+
|
1005
|
+
|
1006
|
+
|
1007
|
+
|
1008
|
+
|
1009
|
+
<hr />
|
1010
|
+
|
1011
|
+
<a name="toContain"> </a>
|
1012
|
+
<div class="fixedFont">
|
1013
|
+
|
1014
|
+
|
1015
|
+
<b>toContain</b>(expected)
|
1016
|
+
|
1017
|
+
</div>
|
1018
|
+
<div class="description">
|
1019
|
+
Matcher that checks that the expected item is an element in the actual Array.
|
1020
|
+
|
1021
|
+
|
1022
|
+
</div>
|
1023
|
+
|
1024
|
+
|
1025
|
+
|
1026
|
+
|
1027
|
+
<dl class="detailList">
|
1028
|
+
<dt class="heading">Parameters:</dt>
|
1029
|
+
|
1030
|
+
<dt>
|
1031
|
+
<span class="light fixedFont">{Object}</span> <b>expected</b>
|
1032
|
+
|
1033
|
+
</dt>
|
1034
|
+
<dd></dd>
|
1035
|
+
|
1036
|
+
</dl>
|
1037
|
+
|
1038
|
+
|
1039
|
+
|
1040
|
+
|
1041
|
+
|
1042
|
+
|
1043
|
+
|
1044
|
+
|
1045
|
+
<hr />
|
1046
|
+
|
1047
|
+
<a name="toEqual"> </a>
|
1048
|
+
<div class="fixedFont">
|
1049
|
+
|
1050
|
+
|
1051
|
+
<b>toEqual</b>(expected)
|
1052
|
+
|
1053
|
+
</div>
|
1054
|
+
<div class="description">
|
1055
|
+
toEqual: compares the actual to the expected using common sense equality. Handles Objects, Arrays, etc.
|
1056
|
+
|
1057
|
+
|
1058
|
+
</div>
|
1059
|
+
|
1060
|
+
|
1061
|
+
|
1062
|
+
|
1063
|
+
<dl class="detailList">
|
1064
|
+
<dt class="heading">Parameters:</dt>
|
1065
|
+
|
1066
|
+
<dt>
|
1067
|
+
<b>expected</b>
|
1068
|
+
|
1069
|
+
</dt>
|
1070
|
+
<dd></dd>
|
1071
|
+
|
1072
|
+
</dl>
|
1073
|
+
|
1074
|
+
|
1075
|
+
|
1076
|
+
|
1077
|
+
|
1078
|
+
|
1079
|
+
|
1080
|
+
|
1081
|
+
<hr />
|
1082
|
+
|
1083
|
+
<a name="toMatch"> </a>
|
1084
|
+
<div class="fixedFont">
|
1085
|
+
|
1086
|
+
|
1087
|
+
<b>toMatch</b>(expected)
|
1088
|
+
|
1089
|
+
</div>
|
1090
|
+
<div class="description">
|
1091
|
+
Matcher that compares the actual to the expected using a regular expression. Constructs a RegExp, so takes
|
1092
|
+
a pattern or a String.
|
1093
|
+
|
1094
|
+
|
1095
|
+
</div>
|
1096
|
+
|
1097
|
+
|
1098
|
+
|
1099
|
+
|
1100
|
+
<dl class="detailList">
|
1101
|
+
<dt class="heading">Parameters:</dt>
|
1102
|
+
|
1103
|
+
<dt>
|
1104
|
+
<b>expected</b>
|
1105
|
+
|
1106
|
+
</dt>
|
1107
|
+
<dd></dd>
|
1108
|
+
|
1109
|
+
</dl>
|
1110
|
+
|
1111
|
+
|
1112
|
+
|
1113
|
+
|
1114
|
+
|
1115
|
+
|
1116
|
+
|
1117
|
+
|
1118
|
+
<hr />
|
1119
|
+
|
1120
|
+
<a name="toNotBe"> </a>
|
1121
|
+
<div class="fixedFont">
|
1122
|
+
|
1123
|
+
|
1124
|
+
<b>toNotBe</b>(expected)
|
1125
|
+
|
1126
|
+
</div>
|
1127
|
+
<div class="description">
|
1128
|
+
toNotBe: compares the actual to the expected using !==
|
1129
|
+
|
1130
|
+
|
1131
|
+
</div>
|
1132
|
+
|
1133
|
+
|
1134
|
+
|
1135
|
+
|
1136
|
+
<dl class="detailList">
|
1137
|
+
<dt class="heading">Parameters:</dt>
|
1138
|
+
|
1139
|
+
<dt>
|
1140
|
+
<b>expected</b>
|
1141
|
+
|
1142
|
+
</dt>
|
1143
|
+
<dd></dd>
|
1144
|
+
|
1145
|
+
</dl>
|
1146
|
+
|
1147
|
+
|
1148
|
+
|
1149
|
+
|
1150
|
+
|
1151
|
+
|
1152
|
+
|
1153
|
+
|
1154
|
+
<hr />
|
1155
|
+
|
1156
|
+
<a name="toNotContain"> </a>
|
1157
|
+
<div class="fixedFont">
|
1158
|
+
|
1159
|
+
|
1160
|
+
<b>toNotContain</b>(expected)
|
1161
|
+
|
1162
|
+
</div>
|
1163
|
+
<div class="description">
|
1164
|
+
Matcher that checks that the expected item is NOT an element in the actual Array.
|
1165
|
+
|
1166
|
+
|
1167
|
+
</div>
|
1168
|
+
|
1169
|
+
|
1170
|
+
|
1171
|
+
|
1172
|
+
<dl class="detailList">
|
1173
|
+
<dt class="heading">Parameters:</dt>
|
1174
|
+
|
1175
|
+
<dt>
|
1176
|
+
<span class="light fixedFont">{Object}</span> <b>expected</b>
|
1177
|
+
|
1178
|
+
</dt>
|
1179
|
+
<dd></dd>
|
1180
|
+
|
1181
|
+
</dl>
|
1182
|
+
|
1183
|
+
|
1184
|
+
|
1185
|
+
|
1186
|
+
|
1187
|
+
|
1188
|
+
|
1189
|
+
|
1190
|
+
<hr />
|
1191
|
+
|
1192
|
+
<a name="toNotEqual"> </a>
|
1193
|
+
<div class="fixedFont">
|
1194
|
+
|
1195
|
+
|
1196
|
+
<b>toNotEqual</b>(expected)
|
1197
|
+
|
1198
|
+
</div>
|
1199
|
+
<div class="description">
|
1200
|
+
toNotEqual: compares the actual to the expected using the ! of jasmine.Matchers.toEqual
|
1201
|
+
|
1202
|
+
|
1203
|
+
</div>
|
1204
|
+
|
1205
|
+
|
1206
|
+
|
1207
|
+
|
1208
|
+
<dl class="detailList">
|
1209
|
+
<dt class="heading">Parameters:</dt>
|
1210
|
+
|
1211
|
+
<dt>
|
1212
|
+
<b>expected</b>
|
1213
|
+
|
1214
|
+
</dt>
|
1215
|
+
<dd></dd>
|
1216
|
+
|
1217
|
+
</dl>
|
1218
|
+
|
1219
|
+
|
1220
|
+
|
1221
|
+
|
1222
|
+
|
1223
|
+
|
1224
|
+
|
1225
|
+
|
1226
|
+
<hr />
|
1227
|
+
|
1228
|
+
<a name="toNotMatch"> </a>
|
1229
|
+
<div class="fixedFont">
|
1230
|
+
|
1231
|
+
|
1232
|
+
<b>toNotMatch</b>(expected)
|
1233
|
+
|
1234
|
+
</div>
|
1235
|
+
<div class="description">
|
1236
|
+
Matcher that compares the actual to the expected using the boolean inverse of jasmine.Matchers.toMatch
|
1237
|
+
|
1238
|
+
|
1239
|
+
</div>
|
1240
|
+
|
1241
|
+
|
1242
|
+
|
1243
|
+
|
1244
|
+
<dl class="detailList">
|
1245
|
+
<dt class="heading">Parameters:</dt>
|
1246
|
+
|
1247
|
+
<dt>
|
1248
|
+
<b>expected</b>
|
1249
|
+
|
1250
|
+
</dt>
|
1251
|
+
<dd></dd>
|
1252
|
+
|
1253
|
+
</dl>
|
1254
|
+
|
1255
|
+
|
1256
|
+
|
1257
|
+
|
1258
|
+
|
1259
|
+
|
1260
|
+
|
1261
|
+
|
1262
|
+
<hr />
|
1263
|
+
|
1264
|
+
<a name="toThrow"> </a>
|
1265
|
+
<div class="fixedFont">
|
1266
|
+
|
1267
|
+
|
1268
|
+
<b>toThrow</b>(expected)
|
1269
|
+
|
1270
|
+
</div>
|
1271
|
+
<div class="description">
|
1272
|
+
Matcher that checks that the expected exception was thrown by the actual.
|
1273
|
+
|
1274
|
+
|
1275
|
+
</div>
|
1276
|
+
|
1277
|
+
|
1278
|
+
|
1279
|
+
|
1280
|
+
<dl class="detailList">
|
1281
|
+
<dt class="heading">Parameters:</dt>
|
1282
|
+
|
1283
|
+
<dt>
|
1284
|
+
<span class="light fixedFont">{String}</span> <b>expected</b>
|
1285
|
+
|
1286
|
+
</dt>
|
1287
|
+
<dd></dd>
|
1288
|
+
|
1289
|
+
</dl>
|
1290
|
+
|
1291
|
+
|
1292
|
+
|
1293
|
+
|
1294
|
+
|
1295
|
+
|
1296
|
+
|
1297
|
+
|
1298
|
+
<hr />
|
1299
|
+
|
1300
|
+
<a name="wasCalled"> </a>
|
1301
|
+
<div class="fixedFont">
|
1302
|
+
|
1303
|
+
|
1304
|
+
<b>wasCalled</b>()
|
1305
|
+
|
1306
|
+
</div>
|
1307
|
+
<div class="description">
|
1308
|
+
Matcher that checks to see if the actual, a Jasmine spy, was called.
|
1309
|
+
|
1310
|
+
|
1311
|
+
</div>
|
1312
|
+
|
1313
|
+
|
1314
|
+
|
1315
|
+
|
1316
|
+
|
1317
|
+
|
1318
|
+
|
1319
|
+
|
1320
|
+
|
1321
|
+
|
1322
|
+
|
1323
|
+
<hr />
|
1324
|
+
|
1325
|
+
<a name="wasCalledWith"> </a>
|
1326
|
+
<div class="fixedFont">
|
1327
|
+
|
1328
|
+
|
1329
|
+
<b>wasCalledWith</b>()
|
1330
|
+
|
1331
|
+
</div>
|
1332
|
+
<div class="description">
|
1333
|
+
Matcher that checks to see if the actual, a Jasmine spy, was called with a set of parameters.
|
1334
|
+
|
1335
|
+
|
1336
|
+
</div>
|
1337
|
+
|
1338
|
+
|
1339
|
+
|
1340
|
+
<pre class="code"></pre>
|
1341
|
+
|
1342
|
+
|
1343
|
+
|
1344
|
+
|
1345
|
+
|
1346
|
+
|
1347
|
+
|
1348
|
+
|
1349
|
+
|
1350
|
+
|
1351
|
+
|
1352
|
+
<hr />
|
1353
|
+
|
1354
|
+
<a name="wasNotCalled"> </a>
|
1355
|
+
<div class="fixedFont">
|
1356
|
+
|
1357
|
+
|
1358
|
+
<b>wasNotCalled</b>()
|
1359
|
+
|
1360
|
+
</div>
|
1361
|
+
<div class="description">
|
1362
|
+
Matcher that checks to see if the actual, a Jasmine spy, was not called.
|
1363
|
+
|
1364
|
+
|
1365
|
+
</div>
|
1366
|
+
|
1367
|
+
|
1368
|
+
|
1369
|
+
|
1370
|
+
|
1371
|
+
|
1372
|
+
|
1373
|
+
|
1374
|
+
|
1375
|
+
|
1376
|
+
|
1377
|
+
<hr />
|
1378
|
+
|
1379
|
+
<a name="wasNotCalledWith"> </a>
|
1380
|
+
<div class="fixedFont">
|
1381
|
+
|
1382
|
+
|
1383
|
+
<b>wasNotCalledWith</b>()
|
1384
|
+
|
1385
|
+
</div>
|
1386
|
+
<div class="description">
|
1387
|
+
|
1388
|
+
|
1389
|
+
|
1390
|
+
</div>
|
1391
|
+
|
1392
|
+
|
1393
|
+
|
1394
|
+
|
1395
|
+
|
1396
|
+
|
1397
|
+
|
1398
|
+
|
1399
|
+
|
1400
|
+
|
1401
|
+
|
1402
|
+
<hr />
|
1403
|
+
|
1404
|
+
<a name=".wrapInto_"> </a>
|
1405
|
+
<div class="fixedFont"><static>
|
1406
|
+
|
1407
|
+
|
1408
|
+
<span class="light">jasmine.Matchers.</span><b>wrapInto_</b>(prototype, matchersClass)
|
1409
|
+
|
1410
|
+
</div>
|
1411
|
+
<div class="description">
|
1412
|
+
|
1413
|
+
|
1414
|
+
|
1415
|
+
</div>
|
1416
|
+
|
1417
|
+
|
1418
|
+
|
1419
|
+
|
1420
|
+
<dl class="detailList">
|
1421
|
+
<dt class="heading">Parameters:</dt>
|
1422
|
+
|
1423
|
+
<dt>
|
1424
|
+
<b>prototype</b>
|
1425
|
+
|
1426
|
+
</dt>
|
1427
|
+
<dd></dd>
|
1428
|
+
|
1429
|
+
<dt>
|
1430
|
+
<b>matchersClass</b>
|
1431
|
+
|
1432
|
+
</dt>
|
1433
|
+
<dd></dd>
|
1434
|
+
|
1435
|
+
</dl>
|
1436
|
+
|
1437
|
+
|
1438
|
+
|
1439
|
+
|
1440
|
+
|
1441
|
+
|
1442
|
+
|
1443
|
+
|
1444
|
+
|
1445
|
+
|
1446
|
+
|
1447
|
+
|
1448
|
+
<!-- ============================== event details ========================= -->
|
1449
|
+
|
1450
|
+
|
1451
|
+
<hr />
|
1452
|
+
</div>
|
1453
|
+
|
1454
|
+
|
1455
|
+
<!-- ============================== footer ================================= -->
|
1456
|
+
<div class="fineprint" style="clear:both">
|
1457
|
+
|
1458
|
+
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Fri Dec 25 2009 14:19:05 GMT-0500 (EST)
|
1459
|
+
</div>
|
1460
|
+
</body>
|
1461
|
+
</html>
|