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.
Files changed (86) hide show
  1. data/.gitignore +1 -0
  2. data/Rakefile +28 -0
  3. data/coffeescripts/shuriken/test/assertions.coffee +111 -0
  4. data/coffeescripts/shuriken/test/reporters.coffee +61 -0
  5. data/coffeescripts/shuriken/test.coffee +117 -0
  6. data/coffeescripts/shuriken.coffee +2 -2
  7. data/javascripts/shuriken/mixins/callbacks.js +45 -0
  8. data/javascripts/shuriken/mixins.js +58 -0
  9. data/javascripts/shuriken/test/assertions.js +117 -0
  10. data/javascripts/shuriken/test/reporters.js +84 -0
  11. data/javascripts/shuriken/test.js +165 -0
  12. data/javascripts/shuriken.js +195 -0
  13. data/lib/shuriken.rb +1 -1
  14. data/shuriken.gemspec +84 -4
  15. data/tests/basic_namespace_tests.coffee +114 -0
  16. data/tests/template.erb +26 -0
  17. data/tests.watchr +6 -0
  18. data/vendor/jasmine-0.10.0/MIT.LICENSE +20 -0
  19. data/vendor/jasmine-0.10.0/README.markdown +437 -0
  20. data/vendor/jasmine-0.10.0/doc/files.html +460 -0
  21. data/vendor/jasmine-0.10.0/doc/index.html +322 -0
  22. data/vendor/jasmine-0.10.0/doc/symbols/_global_.html +918 -0
  23. data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Block.html +417 -0
  24. data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Clock.html +678 -0
  25. data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Env.html +1169 -0
  26. data/vendor/jasmine-0.10.0/doc/symbols/jasmine.JsApiReporter.html +822 -0
  27. data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Matchers.html +1461 -0
  28. data/vendor/jasmine-0.10.0/doc/symbols/jasmine.MultiReporter.html +394 -0
  29. data/vendor/jasmine-0.10.0/doc/symbols/jasmine.NestedResults.html +710 -0
  30. data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Reporter.html +574 -0
  31. data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Runner.html +710 -0
  32. data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Spec.html +1259 -0
  33. data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Spy.html +855 -0
  34. data/vendor/jasmine-0.10.0/doc/symbols/jasmine.Suite.html +705 -0
  35. data/vendor/jasmine-0.10.0/doc/symbols/jasmine.html +1345 -0
  36. data/vendor/jasmine-0.10.0/doc/symbols/jasmine.util.html +535 -0
  37. data/vendor/jasmine-0.10.0/doc/symbols/src/lib_TrivialReporter.js.html +124 -0
  38. data/vendor/jasmine-0.10.0/doc/symbols/src/src_Block.js.html +29 -0
  39. data/vendor/jasmine-0.10.0/doc/symbols/src/src_Env.js.html +240 -0
  40. data/vendor/jasmine-0.10.0/doc/symbols/src/src_JsApiReporter.js.html +111 -0
  41. data/vendor/jasmine-0.10.0/doc/symbols/src/src_Matchers.js.html +328 -0
  42. data/vendor/jasmine-0.10.0/doc/symbols/src/src_MultiReporter.js.html +36 -0
  43. data/vendor/jasmine-0.10.0/doc/symbols/src/src_NestedResults.js.html +88 -0
  44. data/vendor/jasmine-0.10.0/doc/symbols/src/src_PrettyPrinter.js.html +130 -0
  45. data/vendor/jasmine-0.10.0/doc/symbols/src/src_Queue.js.html +102 -0
  46. data/vendor/jasmine-0.10.0/doc/symbols/src/src_Reporter.js.html +35 -0
  47. data/vendor/jasmine-0.10.0/doc/symbols/src/src_Reporters.js.html +51 -0
  48. data/vendor/jasmine-0.10.0/doc/symbols/src/src_Runner.js.html +75 -0
  49. data/vendor/jasmine-0.10.0/doc/symbols/src/src_Spec.js.html +211 -0
  50. data/vendor/jasmine-0.10.0/doc/symbols/src/src_Suite.js.html +77 -0
  51. data/vendor/jasmine-0.10.0/doc/symbols/src/src_WaitsBlock.js.html +21 -0
  52. data/vendor/jasmine-0.10.0/doc/symbols/src/src_WaitsForBlock.js.html +45 -0
  53. data/vendor/jasmine-0.10.0/doc/symbols/src/src_base.js.html +555 -0
  54. data/vendor/jasmine-0.10.0/doc/symbols/src/src_mock-timeout.js.html +185 -0
  55. data/vendor/jasmine-0.10.0/doc/symbols/src/src_util.js.html +75 -0
  56. data/vendor/jasmine-0.10.0/example/example_runner.html +25 -0
  57. data/vendor/jasmine-0.10.0/example/spec/example_suite.js +11 -0
  58. data/vendor/jasmine-0.10.0/lib/TrivialReporter.js +117 -0
  59. data/vendor/jasmine-0.10.0/lib/consolex.js +28 -0
  60. data/vendor/jasmine-0.10.0/lib/jasmine-0.10.0.js +2261 -0
  61. data/vendor/jasmine-0.10.0/lib/jasmine.css +86 -0
  62. data/vendor/jasmine-0.10.0/spec/runner.html +63 -0
  63. data/vendor/jasmine-0.10.0/spec/suites/CustomMatchersSpec.js +112 -0
  64. data/vendor/jasmine-0.10.0/spec/suites/EnvSpec.js +71 -0
  65. data/vendor/jasmine-0.10.0/spec/suites/ExceptionsSpec.js +107 -0
  66. data/vendor/jasmine-0.10.0/spec/suites/JsApiReporterSpec.js +82 -0
  67. data/vendor/jasmine-0.10.0/spec/suites/MatchersSpec.js +589 -0
  68. data/vendor/jasmine-0.10.0/spec/suites/MockClockSpec.js +34 -0
  69. data/vendor/jasmine-0.10.0/spec/suites/MultiReporterSpec.js +30 -0
  70. data/vendor/jasmine-0.10.0/spec/suites/NestedResultsSpec.js +54 -0
  71. data/vendor/jasmine-0.10.0/spec/suites/PrettyPrintSpec.js +93 -0
  72. data/vendor/jasmine-0.10.0/spec/suites/QueueSpec.js +23 -0
  73. data/vendor/jasmine-0.10.0/spec/suites/ReporterSpec.js +60 -0
  74. data/vendor/jasmine-0.10.0/spec/suites/RunnerSpec.js +258 -0
  75. data/vendor/jasmine-0.10.0/spec/suites/SpecRunningSpec.js +1086 -0
  76. data/vendor/jasmine-0.10.0/spec/suites/SpecSpec.js +110 -0
  77. data/vendor/jasmine-0.10.0/spec/suites/SpySpec.js +187 -0
  78. data/vendor/jasmine-0.10.0/spec/suites/SuiteSpec.js +101 -0
  79. data/vendor/jasmine-0.10.0/spec/suites/TrivialReporterSpec.js +140 -0
  80. data/vendor/jasmine-0.10.0/spec/suites/UtilSpec.js +23 -0
  81. data/vendor/jquery.js +154 -0
  82. data/wip-coffeescripts/example_test.coffee +0 -0
  83. data/wip-coffeescripts/test/assertions.coffee +111 -0
  84. data/wip-coffeescripts/test/reporters.coffee +61 -0
  85. data/wip-coffeescripts/test.coffee +96 -15
  86. metadata +83 -4
@@ -0,0 +1,1345 @@
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</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
+ Namespace jasmine
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_base.js.html">base.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.">
248
+ <caption>Namespace 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">&nbsp;</td>
258
+ <td class="nameDescription" >
259
+ <div class="fixedFont">
260
+ <b><a href="../symbols/jasmine.html">jasmine</a></b>
261
+ </div>
262
+ <div class="description">Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.</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.">
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">&lt;static&gt; &nbsp;</td>
285
+ <td class="nameDescription">
286
+ <div class="fixedFont">
287
+ jasmine.<b><a href="../symbols/jasmine.html#.DEFAULT_UPDATE_INTERVAL">DEFAULT_UPDATE_INTERVAL</a></b>
288
+ </div>
289
+ <div class="description">Default interval for event loop yields.</div>
290
+ </td>
291
+ </tr>
292
+
293
+ <tr>
294
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
295
+ <td class="nameDescription">
296
+ <div class="fixedFont">
297
+ jasmine.<b><a href="../symbols/jasmine.html#.details">details</a></b>
298
+ </div>
299
+ <div class="description"></div>
300
+ </td>
301
+ </tr>
302
+
303
+ <tr>
304
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
305
+ <td class="nameDescription">
306
+ <div class="fixedFont">
307
+ jasmine.<b><a href="../symbols/jasmine.html#.Reporters">Reporters</a></b>
308
+ </div>
309
+ <div class="description">JasmineReporters.reporter
310
+ Base object that will get called whenever a Spec, Suite, or Runner is done.</div>
311
+ </td>
312
+ </tr>
313
+
314
+ </tbody>
315
+ </table>
316
+
317
+
318
+
319
+
320
+
321
+ <!-- ============================== methods summary ======================== -->
322
+
323
+
324
+
325
+ <table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class jasmine.">
326
+ <caption>Method Summary</caption>
327
+ <thead>
328
+ <tr>
329
+ <th scope="col">Method Attributes</th>
330
+ <th scope="col">Method Name and Description</th>
331
+ </tr>
332
+ </thead>
333
+ <tbody>
334
+
335
+ <tr>
336
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
337
+ <td class="nameDescription">
338
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.any">any</a></b>(clazz)
339
+ </div>
340
+ <div class="description">Returns a matchable 'generic' object of the class type.</div>
341
+ </td>
342
+ </tr>
343
+
344
+ <tr>
345
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
346
+ <td class="nameDescription">
347
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.createSpy">createSpy</a></b>(name)
348
+ </div>
349
+ <div class="description"></div>
350
+ </td>
351
+ </tr>
352
+
353
+ <tr>
354
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
355
+ <td class="nameDescription">
356
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.createSpyObj">createSpyObj</a></b>(baseName, methodNames)
357
+ </div>
358
+ <div class="description">Creates a more complicated spy: an Object that has every property a function that is a spy.</div>
359
+ </td>
360
+ </tr>
361
+
362
+ <tr>
363
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
364
+ <td class="nameDescription">
365
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.ExpectationResult">ExpectationResult</a></b>(params)
366
+ </div>
367
+ <div class="description"></div>
368
+ </td>
369
+ </tr>
370
+
371
+ <tr>
372
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
373
+ <td class="nameDescription">
374
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.FakeTimer">FakeTimer</a></b>()
375
+ </div>
376
+ <div class="description"></div>
377
+ </td>
378
+ </tr>
379
+
380
+ <tr>
381
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
382
+ <td class="nameDescription">
383
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.getEnv">getEnv</a></b>()
384
+ </div>
385
+ <div class="description">Getter for the Jasmine environment.</div>
386
+ </td>
387
+ </tr>
388
+
389
+ <tr>
390
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
391
+ <td class="nameDescription">
392
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.include">include</a></b>(url, opt_global)
393
+ </div>
394
+ <div class="description">Adds suite files to an HTML document so that they are executed, thus adding them to the current
395
+ Jasmine environment.</div>
396
+ </td>
397
+ </tr>
398
+
399
+ <tr>
400
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
401
+ <td class="nameDescription">
402
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.isDomNode">isDomNode</a></b>(obj)
403
+ </div>
404
+ <div class="description">Returns true if the object is a DOM Node.</div>
405
+ </td>
406
+ </tr>
407
+
408
+ <tr>
409
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
410
+ <td class="nameDescription">
411
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.isSpy">isSpy</a></b>(putativeSpy)
412
+ </div>
413
+ <div class="description">Determines whether an object is a spy.</div>
414
+ </td>
415
+ </tr>
416
+
417
+ <tr>
418
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
419
+ <td class="nameDescription">
420
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.log">log</a></b>(message)
421
+ </div>
422
+ <div class="description"></div>
423
+ </td>
424
+ </tr>
425
+
426
+ <tr>
427
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
428
+ <td class="nameDescription">
429
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.MessageResult">MessageResult</a></b>(text)
430
+ </div>
431
+ <div class="description"></div>
432
+ </td>
433
+ </tr>
434
+
435
+ <tr>
436
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
437
+ <td class="nameDescription">
438
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.pp">pp</a></b>(value)
439
+ </div>
440
+ <div class="description">Pretty printer for expecations.</div>
441
+ </td>
442
+ </tr>
443
+
444
+ <tr>
445
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
446
+ <td class="nameDescription">
447
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.PrettyPrinter">PrettyPrinter</a></b>()
448
+ </div>
449
+ <div class="description">Base class for pretty printing for expectation results.</div>
450
+ </td>
451
+ </tr>
452
+
453
+ <tr>
454
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
455
+ <td class="nameDescription">
456
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.Queue">Queue</a></b>(env)
457
+ </div>
458
+ <div class="description"></div>
459
+ </td>
460
+ </tr>
461
+
462
+ <tr>
463
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
464
+ <td class="nameDescription">
465
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.StringPrettyPrinter">StringPrettyPrinter</a></b>()
466
+ </div>
467
+ <div class="description"></div>
468
+ </td>
469
+ </tr>
470
+
471
+ <tr>
472
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
473
+ <td class="nameDescription">
474
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.TrivialReporter">TrivialReporter</a></b>(doc)
475
+ </div>
476
+ <div class="description"></div>
477
+ </td>
478
+ </tr>
479
+
480
+ <tr>
481
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
482
+ <td class="nameDescription">
483
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.WaitsBlock">WaitsBlock</a></b>(env, timeout, spec)
484
+ </div>
485
+ <div class="description"></div>
486
+ </td>
487
+ </tr>
488
+
489
+ <tr>
490
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
491
+ <td class="nameDescription">
492
+ <div class="fixedFont">jasmine.<b><a href="../symbols/jasmine.html#.WaitsForBlock">WaitsForBlock</a></b>(env, timeout, latchFunction, message, spec)
493
+ </div>
494
+ <div class="description"></div>
495
+ </td>
496
+ </tr>
497
+
498
+ </tbody>
499
+ </table>
500
+
501
+
502
+
503
+
504
+ <!-- ============================== events summary ======================== -->
505
+
506
+
507
+ <!-- ============================== constructor details ==================== -->
508
+
509
+ <div class="details"><a name="constructor"> </a>
510
+ <div class="sectionTitle">
511
+ Namespace Detail
512
+ </div>
513
+
514
+ <div class="fixedFont">
515
+ <b>jasmine</b>
516
+ </div>
517
+
518
+ <div class="description">
519
+ Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
520
+
521
+ </div>
522
+
523
+
524
+
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+ </div>
535
+
536
+
537
+ <!-- ============================== field details ========================== -->
538
+
539
+ <div class="sectionTitle">
540
+ Field Detail
541
+ </div>
542
+
543
+ <a name=".DEFAULT_UPDATE_INTERVAL"> </a>
544
+ <div class="fixedFont">&lt;static&gt;
545
+
546
+
547
+ <span class="light">jasmine.</span><b>DEFAULT_UPDATE_INTERVAL</b>
548
+
549
+ </div>
550
+ <div class="description">
551
+ Default interval for event loop yields. Small values here may result in slow test running. Zero means no updates until all tests have completed.
552
+
553
+
554
+ </div>
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+ <hr />
564
+
565
+ <a name=".details"> </a>
566
+ <div class="fixedFont">&lt;static&gt;
567
+
568
+
569
+ <span class="light">jasmine.</span><b>details</b>
570
+
571
+ </div>
572
+ <div class="description">
573
+
574
+
575
+
576
+ </div>
577
+
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+ <hr />
586
+
587
+ <a name=".Reporters"> </a>
588
+ <div class="fixedFont">&lt;static&gt;
589
+
590
+
591
+ <span class="light">jasmine.</span><b>Reporters</b>
592
+
593
+ </div>
594
+ <div class="description">
595
+ JasmineReporters.reporter
596
+ Base object that will get called whenever a Spec, Suite, or Runner is done. It is up to
597
+ descendants of this object to do something with the results (see json_reporter.js)
598
+
599
+ <br />
600
+ <i>Defined in: </i> <a href="../symbols/src/src_Reporters.js.html">Reporters.js</a>.
601
+
602
+
603
+ </div>
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+
614
+
615
+
616
+ <!-- ============================== method details ========================= -->
617
+
618
+ <div class="sectionTitle">
619
+ Method Detail
620
+ </div>
621
+
622
+ <a name=".any"> </a>
623
+ <div class="fixedFont">&lt;static&gt;
624
+
625
+
626
+ <span class="light">jasmine.</span><b>any</b>(clazz)
627
+
628
+ </div>
629
+ <div class="description">
630
+ Returns a matchable 'generic' object of the class type. For use in expecations of type when values don't matter.
631
+
632
+
633
+ </div>
634
+
635
+
636
+
637
+ <pre class="code">// don't care about which function is passed in, as long as it's a function
638
+ expect(mySpy).wasCalledWith(jasmine.any(Function));</pre>
639
+
640
+
641
+
642
+
643
+ <dl class="detailList">
644
+ <dt class="heading">Parameters:</dt>
645
+
646
+ <dt>
647
+ <span class="light fixedFont">{Class}</span> <b>clazz</b>
648
+
649
+ </dt>
650
+ <dd></dd>
651
+
652
+ </dl>
653
+
654
+
655
+
656
+
657
+
658
+ <dl class="detailList">
659
+ <dt class="heading">Returns:</dt>
660
+
661
+ <dd>matchable object of the type clazz</dd>
662
+
663
+ </dl>
664
+
665
+
666
+
667
+
668
+ <hr />
669
+
670
+ <a name=".createSpy"> </a>
671
+ <div class="fixedFont">&lt;static&gt;
672
+
673
+
674
+ <span class="light">jasmine.</span><b>createSpy</b>(name)
675
+
676
+ </div>
677
+ <div class="description">
678
+
679
+
680
+
681
+ </div>
682
+
683
+
684
+
685
+
686
+ <dl class="detailList">
687
+ <dt class="heading">Parameters:</dt>
688
+
689
+ <dt>
690
+ <b>name</b>
691
+
692
+ </dt>
693
+ <dd></dd>
694
+
695
+ </dl>
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+ <hr />
705
+
706
+ <a name=".createSpyObj"> </a>
707
+ <div class="fixedFont">&lt;static&gt;
708
+
709
+
710
+ <span class="light">jasmine.</span><b>createSpyObj</b>(baseName, methodNames)
711
+
712
+ </div>
713
+ <div class="description">
714
+ Creates a more complicated spy: an Object that has every property a function that is a spy. Used for stubbing something
715
+ large in one call.
716
+
717
+
718
+ </div>
719
+
720
+
721
+
722
+
723
+ <dl class="detailList">
724
+ <dt class="heading">Parameters:</dt>
725
+
726
+ <dt>
727
+ <span class="light fixedFont">{String}</span> <b>baseName</b>
728
+
729
+ </dt>
730
+ <dd>name of spy class</dd>
731
+
732
+ <dt>
733
+ <span class="light fixedFont">{Array}</span> <b>methodNames</b>
734
+
735
+ </dt>
736
+ <dd>array of names of methods to make spies</dd>
737
+
738
+ </dl>
739
+
740
+
741
+
742
+
743
+
744
+
745
+
746
+
747
+ <hr />
748
+
749
+ <a name=".ExpectationResult"> </a>
750
+ <div class="fixedFont">&lt;static&gt;
751
+
752
+
753
+ <span class="light">jasmine.</span><b>ExpectationResult</b>(params)
754
+
755
+ </div>
756
+ <div class="description">
757
+
758
+
759
+
760
+ </div>
761
+
762
+
763
+
764
+
765
+ <dl class="detailList">
766
+ <dt class="heading">Parameters:</dt>
767
+
768
+ <dt>
769
+ <b>params</b>
770
+
771
+ </dt>
772
+ <dd></dd>
773
+
774
+ </dl>
775
+
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+ <hr />
784
+
785
+ <a name=".FakeTimer"> </a>
786
+ <div class="fixedFont">&lt;static&gt;
787
+
788
+
789
+ <span class="light">jasmine.</span><b>FakeTimer</b>()
790
+
791
+ </div>
792
+ <div class="description">
793
+
794
+
795
+ <br />
796
+ <i>Defined in: </i> <a href="../symbols/src/src_mock-timeout.js.html">mock-timeout.js</a>.
797
+
798
+
799
+ </div>
800
+
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+
809
+
810
+
811
+ <hr />
812
+
813
+ <a name=".getEnv"> </a>
814
+ <div class="fixedFont">&lt;static&gt;
815
+
816
+
817
+ <span class="light">jasmine.</span><b>getEnv</b>()
818
+
819
+ </div>
820
+ <div class="description">
821
+ Getter for the Jasmine environment. Ensures one gets created
822
+
823
+
824
+ </div>
825
+
826
+
827
+
828
+
829
+
830
+
831
+
832
+
833
+
834
+
835
+
836
+ <hr />
837
+
838
+ <a name=".include"> </a>
839
+ <div class="fixedFont">&lt;static&gt;
840
+
841
+
842
+ <span class="light">jasmine.</span><b>include</b>(url, opt_global)
843
+
844
+ </div>
845
+ <div class="description">
846
+ Adds suite files to an HTML document so that they are executed, thus adding them to the current
847
+ Jasmine environment.
848
+
849
+
850
+ </div>
851
+
852
+
853
+
854
+
855
+ <dl class="detailList">
856
+ <dt class="heading">Parameters:</dt>
857
+
858
+ <dt>
859
+ <span class="light fixedFont">{String}</span> <b>url</b>
860
+
861
+ </dt>
862
+ <dd>path to the file to include</dd>
863
+
864
+ <dt>
865
+ <span class="light fixedFont">{Boolean}</span> <b>opt_global</b>
866
+
867
+ </dt>
868
+ <dd></dd>
869
+
870
+ </dl>
871
+
872
+
873
+
874
+
875
+
876
+
877
+
878
+
879
+ <hr />
880
+
881
+ <a name=".isDomNode"> </a>
882
+ <div class="fixedFont">&lt;static&gt;
883
+
884
+ <span class="light">{Boolean}</span>
885
+ <span class="light">jasmine.</span><b>isDomNode</b>(obj)
886
+
887
+ </div>
888
+ <div class="description">
889
+ Returns true if the object is a DOM Node.
890
+
891
+
892
+ </div>
893
+
894
+
895
+
896
+
897
+ <dl class="detailList">
898
+ <dt class="heading">Parameters:</dt>
899
+
900
+ <dt>
901
+ <span class="light fixedFont">{Object}</span> <b>obj</b>
902
+
903
+ </dt>
904
+ <dd>object to check</dd>
905
+
906
+ </dl>
907
+
908
+
909
+
910
+
911
+
912
+ <dl class="detailList">
913
+ <dt class="heading">Returns:</dt>
914
+
915
+ <dd><span class="light fixedFont">{Boolean}</span> </dd>
916
+
917
+ </dl>
918
+
919
+
920
+
921
+
922
+ <hr />
923
+
924
+ <a name=".isSpy"> </a>
925
+ <div class="fixedFont">&lt;static&gt;
926
+
927
+ <span class="light">{Boolean}</span>
928
+ <span class="light">jasmine.</span><b>isSpy</b>(putativeSpy)
929
+
930
+ </div>
931
+ <div class="description">
932
+ Determines whether an object is a spy.
933
+
934
+
935
+ </div>
936
+
937
+
938
+
939
+
940
+ <dl class="detailList">
941
+ <dt class="heading">Parameters:</dt>
942
+
943
+ <dt>
944
+ <span class="light fixedFont">{<a href="../symbols/jasmine.Spy.html">jasmine.Spy</a>|Object}</span> <b>putativeSpy</b>
945
+
946
+ </dt>
947
+ <dd></dd>
948
+
949
+ </dl>
950
+
951
+
952
+
953
+
954
+
955
+ <dl class="detailList">
956
+ <dt class="heading">Returns:</dt>
957
+
958
+ <dd><span class="light fixedFont">{Boolean}</span> </dd>
959
+
960
+ </dl>
961
+
962
+
963
+
964
+
965
+ <hr />
966
+
967
+ <a name=".log"> </a>
968
+ <div class="fixedFont">&lt;static&gt;
969
+
970
+
971
+ <span class="light">jasmine.</span><b>log</b>(message)
972
+
973
+ </div>
974
+ <div class="description">
975
+
976
+
977
+
978
+ </div>
979
+
980
+
981
+
982
+
983
+ <dl class="detailList">
984
+ <dt class="heading">Parameters:</dt>
985
+
986
+ <dt>
987
+ <b>message</b>
988
+
989
+ </dt>
990
+ <dd></dd>
991
+
992
+ </dl>
993
+
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+ <hr />
1002
+
1003
+ <a name=".MessageResult"> </a>
1004
+ <div class="fixedFont">&lt;static&gt;
1005
+
1006
+
1007
+ <span class="light">jasmine.</span><b>MessageResult</b>(text)
1008
+
1009
+ </div>
1010
+ <div class="description">
1011
+
1012
+
1013
+
1014
+ </div>
1015
+
1016
+
1017
+
1018
+
1019
+ <dl class="detailList">
1020
+ <dt class="heading">Parameters:</dt>
1021
+
1022
+ <dt>
1023
+ <b>text</b>
1024
+
1025
+ </dt>
1026
+ <dd></dd>
1027
+
1028
+ </dl>
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+ <hr />
1038
+
1039
+ <a name=".pp"> </a>
1040
+ <div class="fixedFont">&lt;static&gt;
1041
+
1042
+ <span class="light">{String}</span>
1043
+ <span class="light">jasmine.</span><b>pp</b>(value)
1044
+
1045
+ </div>
1046
+ <div class="description">
1047
+ Pretty printer for expecations. Takes any object and turns it into a human-readable string.
1048
+
1049
+
1050
+ </div>
1051
+
1052
+
1053
+
1054
+
1055
+ <dl class="detailList">
1056
+ <dt class="heading">Parameters:</dt>
1057
+
1058
+ <dt>
1059
+ <b>value</b>
1060
+
1061
+ </dt>
1062
+ <dd>{Object} an object to be outputted</dd>
1063
+
1064
+ </dl>
1065
+
1066
+
1067
+
1068
+
1069
+
1070
+ <dl class="detailList">
1071
+ <dt class="heading">Returns:</dt>
1072
+
1073
+ <dd><span class="light fixedFont">{String}</span> </dd>
1074
+
1075
+ </dl>
1076
+
1077
+
1078
+
1079
+
1080
+ <hr />
1081
+
1082
+ <a name=".PrettyPrinter"> </a>
1083
+ <div class="fixedFont">&lt;static&gt;
1084
+
1085
+
1086
+ <span class="light">jasmine.</span><b>PrettyPrinter</b>()
1087
+
1088
+ </div>
1089
+ <div class="description">
1090
+ Base class for pretty printing for expectation results.
1091
+
1092
+ <br />
1093
+ <i>Defined in: </i> <a href="../symbols/src/src_PrettyPrinter.js.html">PrettyPrinter.js</a>.
1094
+
1095
+
1096
+ </div>
1097
+
1098
+
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+ <hr />
1109
+
1110
+ <a name=".Queue"> </a>
1111
+ <div class="fixedFont">&lt;static&gt;
1112
+
1113
+
1114
+ <span class="light">jasmine.</span><b>Queue</b>(env)
1115
+
1116
+ </div>
1117
+ <div class="description">
1118
+
1119
+
1120
+ <br />
1121
+ <i>Defined in: </i> <a href="../symbols/src/src_Queue.js.html">Queue.js</a>.
1122
+
1123
+
1124
+ </div>
1125
+
1126
+
1127
+
1128
+
1129
+ <dl class="detailList">
1130
+ <dt class="heading">Parameters:</dt>
1131
+
1132
+ <dt>
1133
+ <b>env</b>
1134
+
1135
+ </dt>
1136
+ <dd></dd>
1137
+
1138
+ </dl>
1139
+
1140
+
1141
+
1142
+
1143
+
1144
+
1145
+
1146
+
1147
+ <hr />
1148
+
1149
+ <a name=".StringPrettyPrinter"> </a>
1150
+ <div class="fixedFont">&lt;static&gt;
1151
+
1152
+
1153
+ <span class="light">jasmine.</span><b>StringPrettyPrinter</b>()
1154
+
1155
+ </div>
1156
+ <div class="description">
1157
+
1158
+
1159
+ <br />
1160
+ <i>Defined in: </i> <a href="../symbols/src/src_PrettyPrinter.js.html">PrettyPrinter.js</a>.
1161
+
1162
+
1163
+ </div>
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+
1172
+
1173
+
1174
+
1175
+ <hr />
1176
+
1177
+ <a name=".TrivialReporter"> </a>
1178
+ <div class="fixedFont">&lt;static&gt;
1179
+
1180
+
1181
+ <span class="light">jasmine.</span><b>TrivialReporter</b>(doc)
1182
+
1183
+ </div>
1184
+ <div class="description">
1185
+
1186
+
1187
+ <br />
1188
+ <i>Defined in: </i> <a href="../symbols/src/lib_TrivialReporter.js.html">TrivialReporter.js</a>.
1189
+
1190
+
1191
+ </div>
1192
+
1193
+
1194
+
1195
+
1196
+ <dl class="detailList">
1197
+ <dt class="heading">Parameters:</dt>
1198
+
1199
+ <dt>
1200
+ <b>doc</b>
1201
+
1202
+ </dt>
1203
+ <dd></dd>
1204
+
1205
+ </dl>
1206
+
1207
+
1208
+
1209
+
1210
+
1211
+
1212
+
1213
+
1214
+ <hr />
1215
+
1216
+ <a name=".WaitsBlock"> </a>
1217
+ <div class="fixedFont">&lt;static&gt;
1218
+
1219
+
1220
+ <span class="light">jasmine.</span><b>WaitsBlock</b>(env, timeout, spec)
1221
+
1222
+ </div>
1223
+ <div class="description">
1224
+
1225
+
1226
+ <br />
1227
+ <i>Defined in: </i> <a href="../symbols/src/src_WaitsBlock.js.html">WaitsBlock.js</a>.
1228
+
1229
+
1230
+ </div>
1231
+
1232
+
1233
+
1234
+
1235
+ <dl class="detailList">
1236
+ <dt class="heading">Parameters:</dt>
1237
+
1238
+ <dt>
1239
+ <b>env</b>
1240
+
1241
+ </dt>
1242
+ <dd></dd>
1243
+
1244
+ <dt>
1245
+ <b>timeout</b>
1246
+
1247
+ </dt>
1248
+ <dd></dd>
1249
+
1250
+ <dt>
1251
+ <b>spec</b>
1252
+
1253
+ </dt>
1254
+ <dd></dd>
1255
+
1256
+ </dl>
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+ <hr />
1266
+
1267
+ <a name=".WaitsForBlock"> </a>
1268
+ <div class="fixedFont">&lt;static&gt;
1269
+
1270
+
1271
+ <span class="light">jasmine.</span><b>WaitsForBlock</b>(env, timeout, latchFunction, message, spec)
1272
+
1273
+ </div>
1274
+ <div class="description">
1275
+
1276
+
1277
+ <br />
1278
+ <i>Defined in: </i> <a href="../symbols/src/src_WaitsForBlock.js.html">WaitsForBlock.js</a>.
1279
+
1280
+
1281
+ </div>
1282
+
1283
+
1284
+
1285
+
1286
+ <dl class="detailList">
1287
+ <dt class="heading">Parameters:</dt>
1288
+
1289
+ <dt>
1290
+ <b>env</b>
1291
+
1292
+ </dt>
1293
+ <dd></dd>
1294
+
1295
+ <dt>
1296
+ <b>timeout</b>
1297
+
1298
+ </dt>
1299
+ <dd></dd>
1300
+
1301
+ <dt>
1302
+ <b>latchFunction</b>
1303
+
1304
+ </dt>
1305
+ <dd></dd>
1306
+
1307
+ <dt>
1308
+ <b>message</b>
1309
+
1310
+ </dt>
1311
+ <dd></dd>
1312
+
1313
+ <dt>
1314
+ <b>spec</b>
1315
+
1316
+ </dt>
1317
+ <dd></dd>
1318
+
1319
+ </dl>
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+
1328
+
1329
+
1330
+
1331
+
1332
+ <!-- ============================== event details ========================= -->
1333
+
1334
+
1335
+ <hr />
1336
+ </div>
1337
+
1338
+
1339
+ <!-- ============================== footer ================================= -->
1340
+ <div class="fineprint" style="clear:both">
1341
+
1342
+ 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)
1343
+ </div>
1344
+ </body>
1345
+ </html>