evergreen 0.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. data/README.rdoc +101 -3
  2. data/bin/evergreen +2 -2
  3. data/lib/evergreen.rb +14 -2
  4. data/lib/evergreen/evergreen.js +23 -0
  5. data/lib/evergreen/rails.rb +8 -0
  6. data/lib/evergreen/runner.rb +21 -14
  7. data/lib/evergreen/spec.rb +12 -33
  8. data/lib/evergreen/version.rb +1 -1
  9. data/lib/evergreen/views/list.erb +1 -1
  10. data/lib/evergreen/views/spec.erb +9 -22
  11. data/lib/jasmine/README.markdown +21 -28
  12. data/lib/jasmine/Rakefile +98 -68
  13. data/lib/jasmine/example/SpecRunner.html +27 -0
  14. data/lib/jasmine/example/spec/PlayerSpec.js +58 -0
  15. data/lib/jasmine/example/spec/SpecHelper.js +9 -0
  16. data/lib/jasmine/example/src/Player.js +22 -0
  17. data/lib/jasmine/example/src/Song.js +7 -0
  18. data/lib/jasmine/lib/jasmine-html.js +182 -0
  19. data/lib/jasmine/lib/{jasmine-0.10.4.js → jasmine.js} +127 -155
  20. data/lib/jasmine/spec/runner.html +4 -3
  21. data/lib/jasmine/spec/suites/BaseSpec.js +27 -0
  22. data/lib/jasmine/spec/suites/CustomMatchersSpec.js +0 -24
  23. data/lib/jasmine/spec/suites/EnvSpec.js +1 -1
  24. data/lib/jasmine/spec/suites/JsApiReporterSpec.js +16 -9
  25. data/lib/jasmine/spec/suites/MatchersSpec.js +49 -42
  26. data/lib/jasmine/spec/suites/MockClockSpec.js +4 -0
  27. data/lib/jasmine/spec/suites/MultiReporterSpec.js +23 -8
  28. data/lib/jasmine/spec/suites/PrettyPrintSpec.js +2 -2
  29. data/lib/jasmine/spec/suites/ReporterSpec.js +10 -14
  30. data/lib/jasmine/spec/suites/RunnerSpec.js +6 -6
  31. data/lib/jasmine/spec/suites/SpecRunningSpec.js +1 -1
  32. data/lib/jasmine/spec/suites/SpecSpec.js +15 -1
  33. data/lib/jasmine/spec/suites/SpySpec.js +3 -3
  34. data/lib/jasmine/spec/suites/TrivialReporterSpec.js +91 -14
  35. data/lib/jasmine/spec/suites/WaitsForBlockSpec.js +5 -6
  36. data/lib/jasmine/src/JsApiReporter.js +4 -6
  37. data/lib/jasmine/src/Matchers.js +19 -19
  38. data/lib/jasmine/src/MultiReporter.js +8 -1
  39. data/lib/jasmine/src/NestedResults.js +5 -5
  40. data/lib/jasmine/src/PrettyPrinter.js +2 -2
  41. data/lib/jasmine/src/Reporter.js +4 -0
  42. data/lib/jasmine/src/Spec.js +12 -8
  43. data/lib/jasmine/src/base.js +40 -44
  44. data/lib/jasmine/{lib → src/html}/TrivialReporter.js +17 -6
  45. data/lib/jasmine/src/html/jasmine.css +166 -0
  46. data/lib/jasmine/src/mock-timeout.js +22 -16
  47. data/lib/jasmine/src/version.json +2 -2
  48. data/lib/tasks/evergreen.rake +7 -0
  49. data/spec/evergreen_spec.rb +18 -0
  50. data/spec/fixtures/public/jquery.js +152 -0
  51. data/spec/fixtures/spec/javascripts/bar_spec.js +0 -0
  52. data/spec/fixtures/spec/javascripts/failing_spec.js +12 -0
  53. data/spec/fixtures/spec/javascripts/foo_spec.js +0 -0
  54. data/spec/fixtures/spec/javascripts/templates_spec.html +1 -0
  55. data/spec/fixtures/spec/javascripts/templates_spec.js +23 -0
  56. data/spec/fixtures/spec/javascripts/testing_spec.js +11 -0
  57. data/spec/fixtures/spec/javascripts/transactions_spec.js +14 -0
  58. data/spec/meta_spec.rb +17 -0
  59. data/spec/runner_spec.rb +35 -0
  60. data/spec/spec_helper.rb +33 -0
  61. data/spec/spec_spec.rb +30 -0
  62. metadata +64 -48
  63. data/lib/jasmine/doc/files.html +0 -460
  64. data/lib/jasmine/doc/index.html +0 -322
  65. data/lib/jasmine/doc/symbols/_global_.html +0 -918
  66. data/lib/jasmine/doc/symbols/jasmine.Block.html +0 -417
  67. data/lib/jasmine/doc/symbols/jasmine.Clock.html +0 -678
  68. data/lib/jasmine/doc/symbols/jasmine.Env.html +0 -1169
  69. data/lib/jasmine/doc/symbols/jasmine.JsApiReporter.html +0 -822
  70. data/lib/jasmine/doc/symbols/jasmine.Matchers.html +0 -1474
  71. data/lib/jasmine/doc/symbols/jasmine.MultiReporter.html +0 -394
  72. data/lib/jasmine/doc/symbols/jasmine.NestedResults.html +0 -710
  73. data/lib/jasmine/doc/symbols/jasmine.Reporter.html +0 -574
  74. data/lib/jasmine/doc/symbols/jasmine.Runner.html +0 -710
  75. data/lib/jasmine/doc/symbols/jasmine.Spec.html +0 -1253
  76. data/lib/jasmine/doc/symbols/jasmine.Spy.html +0 -855
  77. data/lib/jasmine/doc/symbols/jasmine.Suite.html +0 -705
  78. data/lib/jasmine/doc/symbols/jasmine.html +0 -1345
  79. data/lib/jasmine/doc/symbols/jasmine.util.html +0 -535
  80. data/lib/jasmine/doc/symbols/src/lib_TrivialReporter.js.html +0 -124
  81. data/lib/jasmine/doc/symbols/src/src_Block.js.html +0 -29
  82. data/lib/jasmine/doc/symbols/src/src_Env.js.html +0 -248
  83. data/lib/jasmine/doc/symbols/src/src_JsApiReporter.js.html +0 -111
  84. data/lib/jasmine/doc/symbols/src/src_Matchers.js.html +0 -344
  85. data/lib/jasmine/doc/symbols/src/src_MultiReporter.js.html +0 -36
  86. data/lib/jasmine/doc/symbols/src/src_NestedResults.js.html +0 -88
  87. data/lib/jasmine/doc/symbols/src/src_PrettyPrinter.js.html +0 -130
  88. data/lib/jasmine/doc/symbols/src/src_Queue.js.html +0 -102
  89. data/lib/jasmine/doc/symbols/src/src_Reporter.js.html +0 -35
  90. data/lib/jasmine/doc/symbols/src/src_Reporters.js.html +0 -51
  91. data/lib/jasmine/doc/symbols/src/src_Runner.js.html +0 -75
  92. data/lib/jasmine/doc/symbols/src/src_Spec.js.html +0 -214
  93. data/lib/jasmine/doc/symbols/src/src_Suite.js.html +0 -77
  94. data/lib/jasmine/doc/symbols/src/src_WaitsBlock.js.html +0 -21
  95. data/lib/jasmine/doc/symbols/src/src_WaitsForBlock.js.html +0 -45
  96. data/lib/jasmine/doc/symbols/src/src_base.js.html +0 -585
  97. data/lib/jasmine/doc/symbols/src/src_mock-timeout.js.html +0 -185
  98. data/lib/jasmine/doc/symbols/src/src_util.js.html +0 -75
  99. data/lib/jasmine/example/example_runner.html +0 -22
  100. data/lib/jasmine/example/spec/example_suite.js +0 -11
  101. data/lib/jasmine/spec/jasmine_helper.rb +0 -44
  102. data/lib/jasmine/spec/jasmine_spec.rb +0 -31
  103. data/lib/jasmine/spec/saucelabs.yml +0 -24
  104. data/lib/jasmine/src/Reporters.js +0 -43
@@ -1,1345 +0,0 @@
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 Thu Mar 18 2010 20:35:00 GMT-0700 (PDT)
1343
- </div>
1344
- </body>
1345
- </html>