smparkes-jazrb 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -0
- data/bin/jazrb +6 -0
- data/doc/jasmine/files.html +1 -1
- data/doc/jasmine/index.html +1 -1
- data/doc/jasmine/symbols/_global_.html +38 -1
- data/doc/jasmine/symbols/jasmine.Block.html +1 -1
- data/doc/jasmine/symbols/jasmine.Clock.html +1 -1
- data/doc/jasmine/symbols/jasmine.Env.html +38 -4
- data/doc/jasmine/symbols/jasmine.JsApiReporter.html +1 -1
- data/doc/jasmine/symbols/jasmine.Matchers.html +472 -191
- data/doc/jasmine/symbols/jasmine.MultiReporter.html +1 -1
- data/doc/jasmine/symbols/jasmine.NestedResults.html +1 -1
- data/doc/jasmine/symbols/jasmine.Reporter.html +1 -1
- data/doc/jasmine/symbols/jasmine.Runner.html +1 -1
- data/doc/jasmine/symbols/jasmine.Spec.html +1 -1
- data/doc/jasmine/symbols/jasmine.Spy.html +1 -1
- data/doc/jasmine/symbols/jasmine.Suite.html +1 -1
- data/doc/jasmine/symbols/jasmine.html +87 -1
- data/doc/jasmine/symbols/jasmine.util.html +1 -1
- data/doc/jasmine/symbols/src/lib_TrivialReporter.js.html +27 -29
- data/doc/jasmine/symbols/src/src_Block.js.html +12 -6
- data/doc/jasmine/symbols/src/src_Env.js.html +202 -190
- data/doc/jasmine/symbols/src/src_JsApiReporter.js.html +23 -22
- data/doc/jasmine/symbols/src/src_Matchers.js.html +253 -347
- data/doc/jasmine/symbols/src/src_PrettyPrinter.js.html +106 -104
- data/doc/jasmine/symbols/src/src_Spec.js.html +208 -209
- data/doc/jasmine/symbols/src/src_base.js.html +233 -214
- data/lib/jazrb/jasmine/TrivialReporter.js +1 -3
- data/lib/jazrb/jasmine/XMLReporter.js +8 -3
- data/lib/jazrb/jasmine/jasmine-0.10.0.js +174 -229
- data/lib/jazrb/jasmine/jasmine.js +174 -229
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -4,6 +4,8 @@ Jazrb provides support for running JavaScript specs written using the
|
|
4
4
|
Jasmine JavaScript BDD framework under env.js. It includes support for
|
5
5
|
running via watchr and autotest.
|
6
6
|
|
7
|
+
Discussion at http://groups.google.com/group/jazrb.
|
8
|
+
|
7
9
|
== Install
|
8
10
|
|
9
11
|
You can install the gem via <tt>gem install smparkes-jazrb</tt>. If
|
data/bin/jazrb
CHANGED
@@ -88,6 +88,10 @@ class SAX < Nokogiri::XML::SAX::Document
|
|
88
88
|
when "testsuites";
|
89
89
|
when "testsuite";
|
90
90
|
@testsuite_name = attrs["name"]
|
91
|
+
if @testcase_pending = ( attrs["skipped"] == "true" )
|
92
|
+
$spec_info[:specs] << (tc = {})
|
93
|
+
$spec_info[:pending] << $spec_info[:specs].last
|
94
|
+
end
|
91
95
|
when "testcase";
|
92
96
|
$spec_info[:specs] << (tc = {})
|
93
97
|
tc[:name] = @testsuite_name + " : " + attrs["name"]
|
@@ -117,6 +121,8 @@ class SAX < Nokogiri::XML::SAX::Document
|
|
117
121
|
char = nil
|
118
122
|
if @testcase_failed
|
119
123
|
char = red("F")
|
124
|
+
elsif @testcase_pending
|
125
|
+
char = yellow("*")
|
120
126
|
else
|
121
127
|
char = green(".")
|
122
128
|
end
|
data/doc/jasmine/files.html
CHANGED
@@ -454,7 +454,7 @@ ul.inheritsList
|
|
454
454
|
</div>
|
455
455
|
<div class="fineprint" style="clear:both">
|
456
456
|
|
457
|
-
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blankt">JsDoc Toolkit</a> 2.1.0 on Wed Nov
|
457
|
+
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blankt">JsDoc Toolkit</a> 2.1.0 on Wed Nov 25 2009 11:27:06 GMT-0800 (PST)
|
458
458
|
</div>
|
459
459
|
</body>
|
460
460
|
</html>
|
data/doc/jasmine/index.html
CHANGED
@@ -316,7 +316,7 @@ ul.inheritsList
|
|
316
316
|
</div>
|
317
317
|
<div class="fineprint" style="clear:both">
|
318
318
|
|
319
|
-
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blankt">JsDoc Toolkit</a> 2.1.0 on Wed Nov
|
319
|
+
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blankt">JsDoc Toolkit</a> 2.1.0 on Wed Nov 25 2009 11:27:06 GMT-0800 (PST)
|
320
320
|
</div>
|
321
321
|
</body>
|
322
322
|
</html>
|
@@ -332,6 +332,15 @@ ul.inheritsList
|
|
332
332
|
</td>
|
333
333
|
</tr>
|
334
334
|
|
335
|
+
<tr>
|
336
|
+
<td class="attributes"> </td>
|
337
|
+
<td class="nameDescription">
|
338
|
+
<div class="fixedFont"><b><a href="../symbols/_global_.html#pending">pending</a></b>()
|
339
|
+
</div>
|
340
|
+
<div class="description"></div>
|
341
|
+
</td>
|
342
|
+
</tr>
|
343
|
+
|
335
344
|
<tr>
|
336
345
|
<td class="attributes"> </td>
|
337
346
|
<td class="nameDescription">
|
@@ -732,6 +741,34 @@ jasmine.Matchers functions.
|
|
732
741
|
|
733
742
|
|
734
743
|
|
744
|
+
<hr />
|
745
|
+
|
746
|
+
<a name="pending"> </a>
|
747
|
+
<div class="fixedFont">
|
748
|
+
|
749
|
+
|
750
|
+
<b>pending</b>()
|
751
|
+
|
752
|
+
</div>
|
753
|
+
<div class="description">
|
754
|
+
|
755
|
+
|
756
|
+
<br />
|
757
|
+
<i>Defined in: </i> <a href="../symbols/src/src_base.js.html">base.js</a>.
|
758
|
+
|
759
|
+
|
760
|
+
</div>
|
761
|
+
|
762
|
+
|
763
|
+
|
764
|
+
|
765
|
+
|
766
|
+
|
767
|
+
|
768
|
+
|
769
|
+
|
770
|
+
|
771
|
+
|
735
772
|
<hr />
|
736
773
|
|
737
774
|
<a name="runs"> </a>
|
@@ -1040,7 +1077,7 @@ A convenience method that allows existing specs to be disabled temporarily durin
|
|
1040
1077
|
<!-- ============================== footer ================================= -->
|
1041
1078
|
<div class="fineprint" style="clear:both">
|
1042
1079
|
|
1043
|
-
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Wed Nov
|
1080
|
+
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Wed Nov 25 2009 11:27:05 GMT-0800 (PST)
|
1044
1081
|
</div>
|
1045
1082
|
</body>
|
1046
1083
|
</html>
|
@@ -411,7 +411,7 @@ ul.inheritsList
|
|
411
411
|
<!-- ============================== footer ================================= -->
|
412
412
|
<div class="fineprint" style="clear:both">
|
413
413
|
|
414
|
-
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Wed Nov
|
414
|
+
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Wed Nov 25 2009 11:27:06 GMT-0800 (PST)
|
415
415
|
</div>
|
416
416
|
</body>
|
417
417
|
</html>
|
@@ -672,7 +672,7 @@ ul.inheritsList
|
|
672
672
|
<!-- ============================== footer ================================= -->
|
673
673
|
<div class="fineprint" style="clear:both">
|
674
674
|
|
675
|
-
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Wed Nov
|
675
|
+
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Wed Nov 25 2009 11:27:06 GMT-0800 (PST)
|
676
676
|
</div>
|
677
677
|
</body>
|
678
678
|
</html>
|
@@ -382,6 +382,15 @@ ul.inheritsList
|
|
382
382
|
</td>
|
383
383
|
</tr>
|
384
384
|
|
385
|
+
<tr>
|
386
|
+
<td class="attributes"> </td>
|
387
|
+
<td class="nameDescription">
|
388
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Env.html#matchersClass">matchersClass</a></b>()
|
389
|
+
</div>
|
390
|
+
<div class="description"></div>
|
391
|
+
</td>
|
392
|
+
</tr>
|
393
|
+
|
385
394
|
<tr>
|
386
395
|
<td class="attributes"> </td>
|
387
396
|
<td class="nameDescription">
|
@@ -430,7 +439,7 @@ ul.inheritsList
|
|
430
439
|
<tr>
|
431
440
|
<td class="attributes"> </td>
|
432
441
|
<td class="nameDescription">
|
433
|
-
<div class="fixedFont"><b><a href="../symbols/jasmine.Env.html#xit">xit</a></b>(
|
442
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Env.html#xit">xit</a></b>(description, func)
|
434
443
|
</div>
|
435
444
|
<div class="description"></div>
|
436
445
|
</td>
|
@@ -910,6 +919,31 @@ ul.inheritsList
|
|
910
919
|
|
911
920
|
|
912
921
|
|
922
|
+
<hr />
|
923
|
+
|
924
|
+
<a name="matchersClass"> </a>
|
925
|
+
<div class="fixedFont">
|
926
|
+
|
927
|
+
|
928
|
+
<b>matchersClass</b>()
|
929
|
+
|
930
|
+
</div>
|
931
|
+
<div class="description">
|
932
|
+
|
933
|
+
|
934
|
+
|
935
|
+
</div>
|
936
|
+
|
937
|
+
|
938
|
+
|
939
|
+
|
940
|
+
|
941
|
+
|
942
|
+
|
943
|
+
|
944
|
+
|
945
|
+
|
946
|
+
|
913
947
|
<hr />
|
914
948
|
|
915
949
|
<a name="nextSpecId"> </a>
|
@@ -1079,7 +1113,7 @@ ul.inheritsList
|
|
1079
1113
|
<div class="fixedFont">
|
1080
1114
|
|
1081
1115
|
|
1082
|
-
<b>xit</b>(
|
1116
|
+
<b>xit</b>(description, func)
|
1083
1117
|
|
1084
1118
|
</div>
|
1085
1119
|
<div class="description">
|
@@ -1095,7 +1129,7 @@ ul.inheritsList
|
|
1095
1129
|
<dt class="heading">Parameters:</dt>
|
1096
1130
|
|
1097
1131
|
<dt>
|
1098
|
-
<b>
|
1132
|
+
<b>description</b>
|
1099
1133
|
|
1100
1134
|
</dt>
|
1101
1135
|
<dd></dd>
|
@@ -1129,7 +1163,7 @@ ul.inheritsList
|
|
1129
1163
|
<!-- ============================== footer ================================= -->
|
1130
1164
|
<div class="fineprint" style="clear:both">
|
1131
1165
|
|
1132
|
-
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Wed Nov
|
1166
|
+
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Wed Nov 25 2009 11:27:06 GMT-0800 (PST)
|
1133
1167
|
</div>
|
1134
1168
|
</body>
|
1135
1169
|
</html>
|
@@ -816,7 +816,7 @@ ul.inheritsList
|
|
816
816
|
<!-- ============================== footer ================================= -->
|
817
817
|
<div class="fineprint" style="clear:both">
|
818
818
|
|
819
|
-
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Wed Nov
|
819
|
+
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Wed Nov 25 2009 11:27:06 GMT-0800 (PST)
|
820
820
|
</div>
|
821
821
|
</body>
|
822
822
|
</html>
|
@@ -268,232 +268,234 @@ ul.inheritsList
|
|
268
268
|
|
269
269
|
<!-- ============================== properties summary ===================== -->
|
270
270
|
|
271
|
+
|
272
|
+
<!-- ============================== methods summary ======================== -->
|
273
|
+
|
271
274
|
|
272
275
|
|
273
|
-
<table class="summaryTable" cellspacing="0" summary="A summary of the
|
274
|
-
<caption>
|
276
|
+
<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class jasmine.Matchers.">
|
277
|
+
<caption>Method Summary</caption>
|
275
278
|
<thead>
|
276
279
|
<tr>
|
277
|
-
<th scope="col">
|
278
|
-
<th scope="col">
|
280
|
+
<th scope="col">Method Attributes</th>
|
281
|
+
<th scope="col">Method Name and Description</th>
|
279
282
|
</tr>
|
280
283
|
</thead>
|
281
284
|
<tbody>
|
282
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
|
+
|
283
304
|
<tr>
|
284
305
|
<td class="attributes"> </td>
|
285
306
|
<td class="nameDescription">
|
286
|
-
<div class="fixedFont">
|
287
|
-
<b><a href="../symbols/jasmine.Matchers.html#toBe">toBe</a></b>
|
307
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#message">message</a></b>(expected)
|
288
308
|
</div>
|
289
|
-
<div class="description"
|
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>
|
290
319
|
</td>
|
291
320
|
</tr>
|
292
321
|
|
293
322
|
<tr>
|
294
323
|
<td class="attributes"> </td>
|
295
324
|
<td class="nameDescription">
|
296
|
-
<div class="fixedFont">
|
297
|
-
<b><a href="../symbols/jasmine.Matchers.html#toBeDefined">toBeDefined</a></b>
|
325
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#report">report</a></b>(result, failing_message, details)
|
298
326
|
</div>
|
299
|
-
<div class="description"
|
327
|
+
<div class="description"></div>
|
300
328
|
</td>
|
301
329
|
</tr>
|
302
330
|
|
303
331
|
<tr>
|
304
332
|
<td class="attributes"> </td>
|
305
333
|
<td class="nameDescription">
|
306
|
-
<div class="fixedFont">
|
307
|
-
<b><a href="../symbols/jasmine.Matchers.html#toBeFalsy">toBeFalsy</a></b>
|
334
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBe">toBe</a></b>(expected)
|
308
335
|
</div>
|
309
|
-
<div class="description">
|
336
|
+
<div class="description">toBe: compares the actual to the expected using ===</div>
|
310
337
|
</td>
|
311
338
|
</tr>
|
312
339
|
|
313
340
|
<tr>
|
314
341
|
<td class="attributes"> </td>
|
315
342
|
<td class="nameDescription">
|
316
|
-
<div class="fixedFont">
|
317
|
-
<b><a href="../symbols/jasmine.Matchers.html#toBeNull">toBeNull</a></b>
|
343
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBeDefined">toBeDefined</a></b>()
|
318
344
|
</div>
|
319
|
-
<div class="description">Matcher that compares the actual to
|
345
|
+
<div class="description">Matcher that compares the actual to undefined.</div>
|
320
346
|
</td>
|
321
347
|
</tr>
|
322
348
|
|
323
349
|
<tr>
|
324
350
|
<td class="attributes"> </td>
|
325
351
|
<td class="nameDescription">
|
326
|
-
<div class="fixedFont">
|
327
|
-
<b><a href="../symbols/jasmine.Matchers.html#toBeTruthy">toBeTruthy</a></b>
|
352
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBeFalsy">toBeFalsy</a></b>()
|
328
353
|
</div>
|
329
|
-
<div class="description">Matcher that boolean
|
354
|
+
<div class="description">Matcher that boolean nots the actual.</div>
|
330
355
|
</td>
|
331
356
|
</tr>
|
332
357
|
|
333
358
|
<tr>
|
334
359
|
<td class="attributes"> </td>
|
335
360
|
<td class="nameDescription">
|
336
|
-
<div class="fixedFont">
|
337
|
-
<b><a href="../symbols/jasmine.Matchers.html#toBeUndefined">toBeUndefined</a></b>
|
361
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBeGreaterThan">toBeGreaterThan</a></b>(expected)
|
338
362
|
</div>
|
339
|
-
<div class="description"
|
363
|
+
<div class="description"></div>
|
340
364
|
</td>
|
341
365
|
</tr>
|
342
366
|
|
343
367
|
<tr>
|
344
368
|
<td class="attributes"> </td>
|
345
369
|
<td class="nameDescription">
|
346
|
-
<div class="fixedFont">
|
347
|
-
<b><a href="../symbols/jasmine.Matchers.html#toContain">toContain</a></b>
|
370
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBeLessThan">toBeLessThan</a></b>(expected)
|
348
371
|
</div>
|
349
|
-
<div class="description"
|
372
|
+
<div class="description"></div>
|
350
373
|
</td>
|
351
374
|
</tr>
|
352
375
|
|
353
376
|
<tr>
|
354
377
|
<td class="attributes"> </td>
|
355
378
|
<td class="nameDescription">
|
356
|
-
<div class="fixedFont">
|
357
|
-
<b><a href="../symbols/jasmine.Matchers.html#toEqual">toEqual</a></b>
|
379
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBeNull">toBeNull</a></b>()
|
358
380
|
</div>
|
359
|
-
<div class="description">
|
381
|
+
<div class="description">Matcher that compares the actual to null.</div>
|
360
382
|
</td>
|
361
383
|
</tr>
|
362
384
|
|
363
385
|
<tr>
|
364
386
|
<td class="attributes"> </td>
|
365
387
|
<td class="nameDescription">
|
366
|
-
<div class="fixedFont">
|
367
|
-
<b><a href="../symbols/jasmine.Matchers.html#toMatch">toMatch</a></b>
|
388
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBeTruthy">toBeTruthy</a></b>()
|
368
389
|
</div>
|
369
|
-
<div class="description">Matcher that
|
390
|
+
<div class="description">Matcher that boolean not-nots the actual.</div>
|
370
391
|
</td>
|
371
392
|
</tr>
|
372
393
|
|
373
394
|
<tr>
|
374
395
|
<td class="attributes"> </td>
|
375
396
|
<td class="nameDescription">
|
376
|
-
<div class="fixedFont">
|
377
|
-
<b><a href="../symbols/jasmine.Matchers.html#toNotBe">toNotBe</a></b>
|
397
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toBeUndefined">toBeUndefined</a></b>()
|
378
398
|
</div>
|
379
|
-
<div class="description">
|
399
|
+
<div class="description">Matcher that compares the actual to undefined.</div>
|
380
400
|
</td>
|
381
401
|
</tr>
|
382
402
|
|
383
403
|
<tr>
|
384
404
|
<td class="attributes"> </td>
|
385
405
|
<td class="nameDescription">
|
386
|
-
<div class="fixedFont">
|
387
|
-
<b><a href="../symbols/jasmine.Matchers.html#toNotContain">toNotContain</a></b>
|
406
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toContain">toContain</a></b>(item)
|
388
407
|
</div>
|
389
|
-
<div class="description">Matcher that checks that the expected item is
|
408
|
+
<div class="description">Matcher that checks that the expected item is an element in the actual Array.</div>
|
390
409
|
</td>
|
391
410
|
</tr>
|
392
411
|
|
393
412
|
<tr>
|
394
413
|
<td class="attributes"> </td>
|
395
414
|
<td class="nameDescription">
|
396
|
-
<div class="fixedFont">
|
397
|
-
<b><a href="../symbols/jasmine.Matchers.html#toNotEqual">toNotEqual</a></b>
|
415
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toEqual">toEqual</a></b>(expected)
|
398
416
|
</div>
|
399
|
-
<div class="description">
|
417
|
+
<div class="description">toEqual: compares the actual to the expected using common sense equality.</div>
|
400
418
|
</td>
|
401
419
|
</tr>
|
402
420
|
|
403
421
|
<tr>
|
404
422
|
<td class="attributes"> </td>
|
405
423
|
<td class="nameDescription">
|
406
|
-
<div class="fixedFont">
|
407
|
-
<b><a href="../symbols/jasmine.Matchers.html#toNotMatch">toNotMatch</a></b>
|
424
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toMatch">toMatch</a></b>(reg_exp)
|
408
425
|
</div>
|
409
|
-
<div class="description">Matcher that compares the actual to the expected using
|
426
|
+
<div class="description">Matcher that compares the actual to the expected using a regular expression.</div>
|
410
427
|
</td>
|
411
428
|
</tr>
|
412
429
|
|
413
430
|
<tr>
|
414
431
|
<td class="attributes"> </td>
|
415
432
|
<td class="nameDescription">
|
416
|
-
<div class="fixedFont">
|
417
|
-
<b><a href="../symbols/jasmine.Matchers.html#toThrow">toThrow</a></b>
|
433
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toNotBe">toNotBe</a></b>(expected)
|
418
434
|
</div>
|
419
|
-
<div class="description">
|
435
|
+
<div class="description">toNotBe: compares the actual to the expected using !==</div>
|
420
436
|
</td>
|
421
437
|
</tr>
|
422
438
|
|
423
439
|
<tr>
|
424
440
|
<td class="attributes"> </td>
|
425
441
|
<td class="nameDescription">
|
426
|
-
<div class="fixedFont">
|
427
|
-
<b><a href="../symbols/jasmine.Matchers.html#wasCalled">wasCalled</a></b>
|
442
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toNotContain">toNotContain</a></b>(item)
|
428
443
|
</div>
|
429
|
-
<div class="description">Matcher that checks
|
444
|
+
<div class="description">Matcher that checks that the expected item is NOT an element in the actual Array.</div>
|
430
445
|
</td>
|
431
446
|
</tr>
|
432
447
|
|
433
448
|
<tr>
|
434
449
|
<td class="attributes"> </td>
|
435
450
|
<td class="nameDescription">
|
436
|
-
<div class="fixedFont">
|
437
|
-
<b><a href="../symbols/jasmine.Matchers.html#wasNotCalled">wasNotCalled</a></b>
|
451
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toNotEqual">toNotEqual</a></b>(expected)
|
438
452
|
</div>
|
439
|
-
<div class="description">
|
453
|
+
<div class="description">toNotEqual: compares the actual to the expected using the ! of jasmine.Matchers.toEqual</div>
|
440
454
|
</td>
|
441
455
|
</tr>
|
442
456
|
|
443
|
-
</tbody>
|
444
|
-
</table>
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
<!-- ============================== methods summary ======================== -->
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class jasmine.Matchers.">
|
455
|
-
<caption>Method Summary</caption>
|
456
|
-
<thead>
|
457
457
|
<tr>
|
458
|
-
<
|
459
|
-
<
|
458
|
+
<td class="attributes"> </td>
|
459
|
+
<td class="nameDescription">
|
460
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toNotMatch">toNotMatch</a></b>(reg_exp)
|
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>
|
460
464
|
</tr>
|
461
|
-
</thead>
|
462
|
-
<tbody>
|
463
465
|
|
464
466
|
<tr>
|
465
|
-
<td class="attributes">&
|
467
|
+
<td class="attributes"> </td>
|
466
468
|
<td class="nameDescription">
|
467
|
-
<div class="fixedFont"
|
469
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#toThrow">toThrow</a></b>(expectedException)
|
468
470
|
</div>
|
469
|
-
<div class="description"
|
471
|
+
<div class="description">Matcher that checks that the expected exception was thrown by the actual.</div>
|
470
472
|
</td>
|
471
473
|
</tr>
|
472
474
|
|
473
475
|
<tr>
|
474
|
-
<td class="attributes">&
|
476
|
+
<td class="attributes"> </td>
|
475
477
|
<td class="nameDescription">
|
476
|
-
<div class="fixedFont"
|
478
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#wasCalled">wasCalled</a></b>()
|
477
479
|
</div>
|
478
|
-
<div class="description"
|
480
|
+
<div class="description">Matcher that checks to see if the actual, a Jasmine spy, was called.</div>
|
479
481
|
</td>
|
480
482
|
</tr>
|
481
483
|
|
482
484
|
<tr>
|
483
|
-
<td class="attributes">&
|
485
|
+
<td class="attributes"> </td>
|
484
486
|
<td class="nameDescription">
|
485
|
-
<div class="fixedFont"
|
487
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#wasCalledWith">wasCalledWith</a></b>()
|
486
488
|
</div>
|
487
|
-
<div class="description"
|
489
|
+
<div class="description">Matcher that checks to see if the actual, a Jasmine spy, was called with a set of parameters.</div>
|
488
490
|
</td>
|
489
491
|
</tr>
|
490
492
|
|
491
493
|
<tr>
|
492
494
|
<td class="attributes"> </td>
|
493
495
|
<td class="nameDescription">
|
494
|
-
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#
|
496
|
+
<div class="fixedFont"><b><a href="../symbols/jasmine.Matchers.html#wasNotCalled">wasNotCalled</a></b>()
|
495
497
|
</div>
|
496
|
-
<div class="description"
|
498
|
+
<div class="description">Matcher that checks to see if the actual, a Jasmine spy, was not called.</div>
|
497
499
|
</td>
|
498
500
|
</tr>
|
499
501
|
|
@@ -561,25 +563,42 @@ ul.inheritsList
|
|
561
563
|
|
562
564
|
<!-- ============================== field details ========================== -->
|
563
565
|
|
566
|
+
|
567
|
+
<!-- ============================== method details ========================= -->
|
568
|
+
|
564
569
|
<div class="sectionTitle">
|
565
|
-
|
570
|
+
Method Detail
|
566
571
|
</div>
|
567
572
|
|
568
|
-
<a name="
|
569
|
-
<div class="fixedFont"
|
573
|
+
<a name=".Any"> </a>
|
574
|
+
<div class="fixedFont"><static>
|
570
575
|
|
571
576
|
|
572
|
-
<b>
|
577
|
+
<span class="light">jasmine.Matchers.</span><b>Any</b>(expectedClass)
|
573
578
|
|
574
579
|
</div>
|
575
580
|
<div class="description">
|
576
|
-
|
581
|
+
|
577
582
|
|
578
583
|
|
579
584
|
</div>
|
580
585
|
|
581
586
|
|
582
|
-
|
587
|
+
|
588
|
+
|
589
|
+
<dl class="detailList">
|
590
|
+
<dt class="heading">Parameters:</dt>
|
591
|
+
|
592
|
+
<dt>
|
593
|
+
<b>expectedClass</b>
|
594
|
+
|
595
|
+
</dt>
|
596
|
+
<dd></dd>
|
597
|
+
|
598
|
+
</dl>
|
599
|
+
|
600
|
+
|
601
|
+
|
583
602
|
|
584
603
|
|
585
604
|
|
@@ -587,21 +606,41 @@ ul.inheritsList
|
|
587
606
|
|
588
607
|
<hr />
|
589
608
|
|
590
|
-
<a name="
|
591
|
-
<div class="fixedFont"
|
609
|
+
<a name=".matcherFn_"> </a>
|
610
|
+
<div class="fixedFont"><static>
|
592
611
|
|
593
612
|
|
594
|
-
<b>
|
613
|
+
<span class="light">jasmine.Matchers.</span><b>matcherFn_</b>(matcherName, matcherFunction)
|
595
614
|
|
596
615
|
</div>
|
597
616
|
<div class="description">
|
598
|
-
|
617
|
+
|
599
618
|
|
600
619
|
|
601
620
|
</div>
|
602
621
|
|
603
622
|
|
604
|
-
|
623
|
+
|
624
|
+
|
625
|
+
<dl class="detailList">
|
626
|
+
<dt class="heading">Parameters:</dt>
|
627
|
+
|
628
|
+
<dt>
|
629
|
+
<b>matcherName</b>
|
630
|
+
|
631
|
+
</dt>
|
632
|
+
<dd></dd>
|
633
|
+
|
634
|
+
<dt>
|
635
|
+
<b>matcherFunction</b>
|
636
|
+
|
637
|
+
</dt>
|
638
|
+
<dd></dd>
|
639
|
+
|
640
|
+
</dl>
|
641
|
+
|
642
|
+
|
643
|
+
|
605
644
|
|
606
645
|
|
607
646
|
|
@@ -609,21 +648,35 @@ ul.inheritsList
|
|
609
648
|
|
610
649
|
<hr />
|
611
650
|
|
612
|
-
<a name="
|
651
|
+
<a name="message"> </a>
|
613
652
|
<div class="fixedFont">
|
614
653
|
|
615
654
|
|
616
|
-
<b>
|
655
|
+
<b>message</b>(expected)
|
617
656
|
|
618
657
|
</div>
|
619
658
|
<div class="description">
|
620
|
-
|
659
|
+
|
621
660
|
|
622
661
|
|
623
662
|
</div>
|
624
663
|
|
625
664
|
|
626
|
-
|
665
|
+
|
666
|
+
|
667
|
+
<dl class="detailList">
|
668
|
+
<dt class="heading">Parameters:</dt>
|
669
|
+
|
670
|
+
<dt>
|
671
|
+
<b>expected</b>
|
672
|
+
|
673
|
+
</dt>
|
674
|
+
<dd></dd>
|
675
|
+
|
676
|
+
</dl>
|
677
|
+
|
678
|
+
|
679
|
+
|
627
680
|
|
628
681
|
|
629
682
|
|
@@ -631,21 +684,35 @@ ul.inheritsList
|
|
631
684
|
|
632
685
|
<hr />
|
633
686
|
|
634
|
-
<a name="
|
635
|
-
<div class="fixedFont"
|
687
|
+
<a name=".pp"> </a>
|
688
|
+
<div class="fixedFont"><static>
|
636
689
|
|
637
690
|
|
638
|
-
<b>
|
691
|
+
<span class="light">jasmine.Matchers.</span><b>pp</b>(str)
|
639
692
|
|
640
693
|
</div>
|
641
694
|
<div class="description">
|
642
|
-
|
695
|
+
|
643
696
|
|
644
697
|
|
645
698
|
</div>
|
646
699
|
|
647
700
|
|
648
|
-
|
701
|
+
|
702
|
+
|
703
|
+
<dl class="detailList">
|
704
|
+
<dt class="heading">Parameters:</dt>
|
705
|
+
|
706
|
+
<dt>
|
707
|
+
<b>str</b>
|
708
|
+
|
709
|
+
</dt>
|
710
|
+
<dd></dd>
|
711
|
+
|
712
|
+
</dl>
|
713
|
+
|
714
|
+
|
715
|
+
|
649
716
|
|
650
717
|
|
651
718
|
|
@@ -653,21 +720,47 @@ ul.inheritsList
|
|
653
720
|
|
654
721
|
<hr />
|
655
722
|
|
656
|
-
<a name="
|
723
|
+
<a name="report"> </a>
|
657
724
|
<div class="fixedFont">
|
658
725
|
|
659
726
|
|
660
|
-
<b>
|
727
|
+
<b>report</b>(result, failing_message, details)
|
661
728
|
|
662
729
|
</div>
|
663
730
|
<div class="description">
|
664
|
-
|
731
|
+
|
665
732
|
|
666
733
|
|
667
734
|
</div>
|
668
735
|
|
669
736
|
|
670
|
-
|
737
|
+
|
738
|
+
|
739
|
+
<dl class="detailList">
|
740
|
+
<dt class="heading">Parameters:</dt>
|
741
|
+
|
742
|
+
<dt>
|
743
|
+
<b>result</b>
|
744
|
+
|
745
|
+
</dt>
|
746
|
+
<dd></dd>
|
747
|
+
|
748
|
+
<dt>
|
749
|
+
<b>failing_message</b>
|
750
|
+
|
751
|
+
</dt>
|
752
|
+
<dd></dd>
|
753
|
+
|
754
|
+
<dt>
|
755
|
+
<b>details</b>
|
756
|
+
|
757
|
+
</dt>
|
758
|
+
<dd></dd>
|
759
|
+
|
760
|
+
</dl>
|
761
|
+
|
762
|
+
|
763
|
+
|
671
764
|
|
672
765
|
|
673
766
|
|
@@ -675,21 +768,35 @@ ul.inheritsList
|
|
675
768
|
|
676
769
|
<hr />
|
677
770
|
|
678
|
-
<a name="
|
771
|
+
<a name="toBe"> </a>
|
679
772
|
<div class="fixedFont">
|
680
773
|
|
681
774
|
|
682
|
-
<b>
|
775
|
+
<b>toBe</b>(expected)
|
683
776
|
|
684
777
|
</div>
|
685
778
|
<div class="description">
|
686
|
-
|
779
|
+
toBe: compares the actual to the expected using ===
|
687
780
|
|
688
781
|
|
689
782
|
</div>
|
690
783
|
|
691
784
|
|
692
|
-
|
785
|
+
|
786
|
+
|
787
|
+
<dl class="detailList">
|
788
|
+
<dt class="heading">Parameters:</dt>
|
789
|
+
|
790
|
+
<dt>
|
791
|
+
<b>expected</b>
|
792
|
+
|
793
|
+
</dt>
|
794
|
+
<dd></dd>
|
795
|
+
|
796
|
+
</dl>
|
797
|
+
|
798
|
+
|
799
|
+
|
693
800
|
|
694
801
|
|
695
802
|
|
@@ -697,21 +804,24 @@ ul.inheritsList
|
|
697
804
|
|
698
805
|
<hr />
|
699
806
|
|
700
|
-
<a name="
|
807
|
+
<a name="toBeDefined"> </a>
|
701
808
|
<div class="fixedFont">
|
702
809
|
|
703
810
|
|
704
|
-
<b>
|
811
|
+
<b>toBeDefined</b>()
|
705
812
|
|
706
813
|
</div>
|
707
814
|
<div class="description">
|
708
|
-
Matcher that
|
815
|
+
Matcher that compares the actual to undefined.
|
709
816
|
|
710
817
|
|
711
818
|
</div>
|
712
819
|
|
713
820
|
|
714
|
-
|
821
|
+
|
822
|
+
|
823
|
+
|
824
|
+
|
715
825
|
|
716
826
|
|
717
827
|
|
@@ -719,21 +829,24 @@ ul.inheritsList
|
|
719
829
|
|
720
830
|
<hr />
|
721
831
|
|
722
|
-
<a name="
|
832
|
+
<a name="toBeFalsy"> </a>
|
723
833
|
<div class="fixedFont">
|
724
834
|
|
725
835
|
|
726
|
-
<b>
|
836
|
+
<b>toBeFalsy</b>()
|
727
837
|
|
728
838
|
</div>
|
729
839
|
<div class="description">
|
730
|
-
|
840
|
+
Matcher that boolean nots the actual.
|
731
841
|
|
732
842
|
|
733
843
|
</div>
|
734
844
|
|
735
845
|
|
736
|
-
|
846
|
+
|
847
|
+
|
848
|
+
|
849
|
+
|
737
850
|
|
738
851
|
|
739
852
|
|
@@ -741,22 +854,35 @@ ul.inheritsList
|
|
741
854
|
|
742
855
|
<hr />
|
743
856
|
|
744
|
-
<a name="
|
857
|
+
<a name="toBeGreaterThan"> </a>
|
745
858
|
<div class="fixedFont">
|
746
859
|
|
747
860
|
|
748
|
-
<b>
|
861
|
+
<b>toBeGreaterThan</b>(expected)
|
749
862
|
|
750
863
|
</div>
|
751
864
|
<div class="description">
|
752
|
-
|
753
|
-
a pattern or a String.
|
865
|
+
|
754
866
|
|
755
867
|
|
756
868
|
</div>
|
757
869
|
|
758
870
|
|
759
|
-
|
871
|
+
|
872
|
+
|
873
|
+
<dl class="detailList">
|
874
|
+
<dt class="heading">Parameters:</dt>
|
875
|
+
|
876
|
+
<dt>
|
877
|
+
<b>expected</b>
|
878
|
+
|
879
|
+
</dt>
|
880
|
+
<dd></dd>
|
881
|
+
|
882
|
+
</dl>
|
883
|
+
|
884
|
+
|
885
|
+
|
760
886
|
|
761
887
|
|
762
888
|
|
@@ -764,21 +890,35 @@ a pattern or a String.
|
|
764
890
|
|
765
891
|
<hr />
|
766
892
|
|
767
|
-
<a name="
|
893
|
+
<a name="toBeLessThan"> </a>
|
768
894
|
<div class="fixedFont">
|
769
895
|
|
770
896
|
|
771
|
-
<b>
|
897
|
+
<b>toBeLessThan</b>(expected)
|
772
898
|
|
773
899
|
</div>
|
774
900
|
<div class="description">
|
775
|
-
|
901
|
+
|
776
902
|
|
777
903
|
|
778
904
|
</div>
|
779
905
|
|
780
906
|
|
781
|
-
|
907
|
+
|
908
|
+
|
909
|
+
<dl class="detailList">
|
910
|
+
<dt class="heading">Parameters:</dt>
|
911
|
+
|
912
|
+
<dt>
|
913
|
+
<b>expected</b>
|
914
|
+
|
915
|
+
</dt>
|
916
|
+
<dd></dd>
|
917
|
+
|
918
|
+
</dl>
|
919
|
+
|
920
|
+
|
921
|
+
|
782
922
|
|
783
923
|
|
784
924
|
|
@@ -786,21 +926,24 @@ a pattern or a String.
|
|
786
926
|
|
787
927
|
<hr />
|
788
928
|
|
789
|
-
<a name="
|
929
|
+
<a name="toBeNull"> </a>
|
790
930
|
<div class="fixedFont">
|
791
931
|
|
792
932
|
|
793
|
-
<b>
|
933
|
+
<b>toBeNull</b>()
|
794
934
|
|
795
935
|
</div>
|
796
936
|
<div class="description">
|
797
|
-
Matcher that
|
937
|
+
Matcher that compares the actual to null.
|
798
938
|
|
799
939
|
|
800
940
|
</div>
|
801
941
|
|
802
942
|
|
803
|
-
|
943
|
+
|
944
|
+
|
945
|
+
|
946
|
+
|
804
947
|
|
805
948
|
|
806
949
|
|
@@ -808,21 +951,24 @@ a pattern or a String.
|
|
808
951
|
|
809
952
|
<hr />
|
810
953
|
|
811
|
-
<a name="
|
954
|
+
<a name="toBeTruthy"> </a>
|
812
955
|
<div class="fixedFont">
|
813
956
|
|
814
957
|
|
815
|
-
<b>
|
958
|
+
<b>toBeTruthy</b>()
|
816
959
|
|
817
960
|
</div>
|
818
961
|
<div class="description">
|
819
|
-
|
962
|
+
Matcher that boolean not-nots the actual.
|
820
963
|
|
821
964
|
|
822
965
|
</div>
|
823
966
|
|
824
967
|
|
825
|
-
|
968
|
+
|
969
|
+
|
970
|
+
|
971
|
+
|
826
972
|
|
827
973
|
|
828
974
|
|
@@ -830,21 +976,24 @@ a pattern or a String.
|
|
830
976
|
|
831
977
|
<hr />
|
832
978
|
|
833
|
-
<a name="
|
979
|
+
<a name="toBeUndefined"> </a>
|
834
980
|
<div class="fixedFont">
|
835
981
|
|
836
982
|
|
837
|
-
<b>
|
983
|
+
<b>toBeUndefined</b>()
|
838
984
|
|
839
985
|
</div>
|
840
986
|
<div class="description">
|
841
|
-
Matcher that compares the actual to
|
987
|
+
Matcher that compares the actual to undefined.
|
842
988
|
|
843
989
|
|
844
990
|
</div>
|
845
991
|
|
846
992
|
|
847
|
-
|
993
|
+
|
994
|
+
|
995
|
+
|
996
|
+
|
848
997
|
|
849
998
|
|
850
999
|
|
@@ -852,21 +1001,35 @@ a pattern or a String.
|
|
852
1001
|
|
853
1002
|
<hr />
|
854
1003
|
|
855
|
-
<a name="
|
1004
|
+
<a name="toContain"> </a>
|
856
1005
|
<div class="fixedFont">
|
857
1006
|
|
858
1007
|
|
859
|
-
<b>
|
1008
|
+
<b>toContain</b>(item)
|
860
1009
|
|
861
1010
|
</div>
|
862
1011
|
<div class="description">
|
863
|
-
Matcher that checks that the expected
|
1012
|
+
Matcher that checks that the expected item is an element in the actual Array.
|
864
1013
|
|
865
1014
|
|
866
1015
|
</div>
|
867
1016
|
|
868
1017
|
|
869
|
-
|
1018
|
+
|
1019
|
+
|
1020
|
+
<dl class="detailList">
|
1021
|
+
<dt class="heading">Parameters:</dt>
|
1022
|
+
|
1023
|
+
<dt>
|
1024
|
+
<span class="light fixedFont">{Object}</span> <b>item</b>
|
1025
|
+
|
1026
|
+
</dt>
|
1027
|
+
<dd></dd>
|
1028
|
+
|
1029
|
+
</dl>
|
1030
|
+
|
1031
|
+
|
1032
|
+
|
870
1033
|
|
871
1034
|
|
872
1035
|
|
@@ -874,21 +1037,35 @@ a pattern or a String.
|
|
874
1037
|
|
875
1038
|
<hr />
|
876
1039
|
|
877
|
-
<a name="
|
1040
|
+
<a name="toEqual"> </a>
|
878
1041
|
<div class="fixedFont">
|
879
1042
|
|
880
1043
|
|
881
|
-
<b>
|
1044
|
+
<b>toEqual</b>(expected)
|
882
1045
|
|
883
1046
|
</div>
|
884
1047
|
<div class="description">
|
885
|
-
|
1048
|
+
toEqual: compares the actual to the expected using common sense equality. Handles Objects, Arrays, etc.
|
886
1049
|
|
887
1050
|
|
888
1051
|
</div>
|
889
1052
|
|
890
1053
|
|
891
|
-
|
1054
|
+
|
1055
|
+
|
1056
|
+
<dl class="detailList">
|
1057
|
+
<dt class="heading">Parameters:</dt>
|
1058
|
+
|
1059
|
+
<dt>
|
1060
|
+
<b>expected</b>
|
1061
|
+
|
1062
|
+
</dt>
|
1063
|
+
<dd></dd>
|
1064
|
+
|
1065
|
+
</dl>
|
1066
|
+
|
1067
|
+
|
1068
|
+
|
892
1069
|
|
893
1070
|
|
894
1071
|
|
@@ -896,45 +1073,52 @@ a pattern or a String.
|
|
896
1073
|
|
897
1074
|
<hr />
|
898
1075
|
|
899
|
-
<a name="
|
1076
|
+
<a name="toMatch"> </a>
|
900
1077
|
<div class="fixedFont">
|
901
1078
|
|
902
1079
|
|
903
|
-
<b>
|
1080
|
+
<b>toMatch</b>(reg_exp)
|
904
1081
|
|
905
1082
|
</div>
|
906
1083
|
<div class="description">
|
907
|
-
Matcher that
|
1084
|
+
Matcher that compares the actual to the expected using a regular expression. Constructs a RegExp, so takes
|
1085
|
+
a pattern or a String.
|
908
1086
|
|
909
1087
|
|
910
1088
|
</div>
|
911
1089
|
|
912
1090
|
|
913
|
-
|
1091
|
+
|
1092
|
+
|
1093
|
+
<dl class="detailList">
|
1094
|
+
<dt class="heading">Parameters:</dt>
|
1095
|
+
|
1096
|
+
<dt>
|
1097
|
+
<b>reg_exp</b>
|
1098
|
+
|
1099
|
+
</dt>
|
1100
|
+
<dd></dd>
|
1101
|
+
|
1102
|
+
</dl>
|
1103
|
+
|
1104
|
+
|
1105
|
+
|
914
1106
|
|
915
1107
|
|
916
1108
|
|
917
1109
|
|
918
1110
|
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
<!-- ============================== method details ========================= -->
|
924
|
-
|
925
|
-
<div class="sectionTitle">
|
926
|
-
Method Detail
|
927
|
-
</div>
|
1111
|
+
<hr />
|
928
1112
|
|
929
|
-
<a name="
|
930
|
-
<div class="fixedFont"
|
1113
|
+
<a name="toNotBe"> </a>
|
1114
|
+
<div class="fixedFont">
|
931
1115
|
|
932
1116
|
|
933
|
-
<
|
1117
|
+
<b>toNotBe</b>(expected)
|
934
1118
|
|
935
1119
|
</div>
|
936
1120
|
<div class="description">
|
937
|
-
|
1121
|
+
toNotBe: compares the actual to the expected using !==
|
938
1122
|
|
939
1123
|
|
940
1124
|
</div>
|
@@ -946,7 +1130,7 @@ a pattern or a String.
|
|
946
1130
|
<dt class="heading">Parameters:</dt>
|
947
1131
|
|
948
1132
|
<dt>
|
949
|
-
<b>
|
1133
|
+
<b>expected</b>
|
950
1134
|
|
951
1135
|
</dt>
|
952
1136
|
<dd></dd>
|
@@ -962,15 +1146,15 @@ a pattern or a String.
|
|
962
1146
|
|
963
1147
|
<hr />
|
964
1148
|
|
965
|
-
<a name="
|
966
|
-
<div class="fixedFont"
|
1149
|
+
<a name="toNotContain"> </a>
|
1150
|
+
<div class="fixedFont">
|
967
1151
|
|
968
1152
|
|
969
|
-
<
|
1153
|
+
<b>toNotContain</b>(item)
|
970
1154
|
|
971
1155
|
</div>
|
972
1156
|
<div class="description">
|
973
|
-
|
1157
|
+
Matcher that checks that the expected item is NOT an element in the actual Array.
|
974
1158
|
|
975
1159
|
|
976
1160
|
</div>
|
@@ -982,13 +1166,7 @@ a pattern or a String.
|
|
982
1166
|
<dt class="heading">Parameters:</dt>
|
983
1167
|
|
984
1168
|
<dt>
|
985
|
-
<b>
|
986
|
-
|
987
|
-
</dt>
|
988
|
-
<dd></dd>
|
989
|
-
|
990
|
-
<dt>
|
991
|
-
<b>options</b>
|
1169
|
+
<span class="light fixedFont">{Object}</span> <b>item</b>
|
992
1170
|
|
993
1171
|
</dt>
|
994
1172
|
<dd></dd>
|
@@ -1004,15 +1182,15 @@ a pattern or a String.
|
|
1004
1182
|
|
1005
1183
|
<hr />
|
1006
1184
|
|
1007
|
-
<a name="
|
1008
|
-
<div class="fixedFont"
|
1185
|
+
<a name="toNotEqual"> </a>
|
1186
|
+
<div class="fixedFont">
|
1009
1187
|
|
1010
1188
|
|
1011
|
-
<
|
1189
|
+
<b>toNotEqual</b>(expected)
|
1012
1190
|
|
1013
1191
|
</div>
|
1014
1192
|
<div class="description">
|
1015
|
-
|
1193
|
+
toNotEqual: compares the actual to the expected using the ! of jasmine.Matchers.toEqual
|
1016
1194
|
|
1017
1195
|
|
1018
1196
|
</div>
|
@@ -1024,7 +1202,7 @@ a pattern or a String.
|
|
1024
1202
|
<dt class="heading">Parameters:</dt>
|
1025
1203
|
|
1026
1204
|
<dt>
|
1027
|
-
<b>
|
1205
|
+
<b>expected</b>
|
1028
1206
|
|
1029
1207
|
</dt>
|
1030
1208
|
<dd></dd>
|
@@ -1040,15 +1218,15 @@ a pattern or a String.
|
|
1040
1218
|
|
1041
1219
|
<hr />
|
1042
1220
|
|
1043
|
-
<a name="
|
1221
|
+
<a name="toNotMatch"> </a>
|
1044
1222
|
<div class="fixedFont">
|
1045
1223
|
|
1046
1224
|
|
1047
|
-
<b>
|
1225
|
+
<b>toNotMatch</b>(reg_exp)
|
1048
1226
|
|
1049
1227
|
</div>
|
1050
1228
|
<div class="description">
|
1051
|
-
|
1229
|
+
Matcher that compares the actual to the expected using the boolean inverse of jasmine.Matchers.toMatch
|
1052
1230
|
|
1053
1231
|
|
1054
1232
|
</div>
|
@@ -1060,19 +1238,43 @@ a pattern or a String.
|
|
1060
1238
|
<dt class="heading">Parameters:</dt>
|
1061
1239
|
|
1062
1240
|
<dt>
|
1063
|
-
<b>
|
1241
|
+
<b>reg_exp</b>
|
1064
1242
|
|
1065
1243
|
</dt>
|
1066
1244
|
<dd></dd>
|
1067
1245
|
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1246
|
+
</dl>
|
1247
|
+
|
1248
|
+
|
1249
|
+
|
1250
|
+
|
1251
|
+
|
1252
|
+
|
1253
|
+
|
1254
|
+
|
1255
|
+
<hr />
|
1256
|
+
|
1257
|
+
<a name="toThrow"> </a>
|
1258
|
+
<div class="fixedFont">
|
1259
|
+
|
1260
|
+
|
1261
|
+
<b>toThrow</b>(expectedException)
|
1262
|
+
|
1263
|
+
</div>
|
1264
|
+
<div class="description">
|
1265
|
+
Matcher that checks that the expected exception was thrown by the actual.
|
1266
|
+
|
1267
|
+
|
1268
|
+
</div>
|
1269
|
+
|
1270
|
+
|
1271
|
+
|
1272
|
+
|
1273
|
+
<dl class="detailList">
|
1274
|
+
<dt class="heading">Parameters:</dt>
|
1073
1275
|
|
1074
1276
|
<dt>
|
1075
|
-
<b>
|
1277
|
+
<span class="light fixedFont">{String}</span> <b>expectedException</b>
|
1076
1278
|
|
1077
1279
|
</dt>
|
1078
1280
|
<dd></dd>
|
@@ -1086,6 +1288,85 @@ a pattern or a String.
|
|
1086
1288
|
|
1087
1289
|
|
1088
1290
|
|
1291
|
+
<hr />
|
1292
|
+
|
1293
|
+
<a name="wasCalled"> </a>
|
1294
|
+
<div class="fixedFont">
|
1295
|
+
|
1296
|
+
|
1297
|
+
<b>wasCalled</b>()
|
1298
|
+
|
1299
|
+
</div>
|
1300
|
+
<div class="description">
|
1301
|
+
Matcher that checks to see if the actual, a Jasmine spy, was called.
|
1302
|
+
|
1303
|
+
|
1304
|
+
</div>
|
1305
|
+
|
1306
|
+
|
1307
|
+
|
1308
|
+
|
1309
|
+
|
1310
|
+
|
1311
|
+
|
1312
|
+
|
1313
|
+
|
1314
|
+
|
1315
|
+
|
1316
|
+
<hr />
|
1317
|
+
|
1318
|
+
<a name="wasCalledWith"> </a>
|
1319
|
+
<div class="fixedFont">
|
1320
|
+
|
1321
|
+
|
1322
|
+
<b>wasCalledWith</b>()
|
1323
|
+
|
1324
|
+
</div>
|
1325
|
+
<div class="description">
|
1326
|
+
Matcher that checks to see if the actual, a Jasmine spy, was called with a set of parameters.
|
1327
|
+
|
1328
|
+
|
1329
|
+
</div>
|
1330
|
+
|
1331
|
+
|
1332
|
+
|
1333
|
+
<pre class="code"></pre>
|
1334
|
+
|
1335
|
+
|
1336
|
+
|
1337
|
+
|
1338
|
+
|
1339
|
+
|
1340
|
+
|
1341
|
+
|
1342
|
+
|
1343
|
+
|
1344
|
+
|
1345
|
+
<hr />
|
1346
|
+
|
1347
|
+
<a name="wasNotCalled"> </a>
|
1348
|
+
<div class="fixedFont">
|
1349
|
+
|
1350
|
+
|
1351
|
+
<b>wasNotCalled</b>()
|
1352
|
+
|
1353
|
+
</div>
|
1354
|
+
<div class="description">
|
1355
|
+
Matcher that checks to see if the actual, a Jasmine spy, was not called.
|
1356
|
+
|
1357
|
+
|
1358
|
+
</div>
|
1359
|
+
|
1360
|
+
|
1361
|
+
|
1362
|
+
|
1363
|
+
|
1364
|
+
|
1365
|
+
|
1366
|
+
|
1367
|
+
|
1368
|
+
|
1369
|
+
|
1089
1370
|
|
1090
1371
|
|
1091
1372
|
|
@@ -1100,7 +1381,7 @@ a pattern or a String.
|
|
1100
1381
|
<!-- ============================== footer ================================= -->
|
1101
1382
|
<div class="fineprint" style="clear:both">
|
1102
1383
|
|
1103
|
-
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Wed Nov
|
1384
|
+
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Wed Nov 25 2009 11:27:06 GMT-0800 (PST)
|
1104
1385
|
</div>
|
1105
1386
|
</body>
|
1106
1387
|
</html>
|