evergreen 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. data/README.rdoc +4 -0
  2. data/bin/evergreen +18 -0
  3. data/lib/evergreen.rb +44 -0
  4. data/lib/evergreen/cli.rb +23 -0
  5. data/lib/evergreen/evergreen.js +3 -0
  6. data/lib/evergreen/runner.rb +56 -0
  7. data/lib/evergreen/server.rb +31 -0
  8. data/lib/evergreen/spec.rb +60 -0
  9. data/lib/evergreen/version.rb +3 -0
  10. data/lib/evergreen/views/list.erb +6 -0
  11. data/lib/evergreen/views/spec.erb +37 -0
  12. data/lib/jasmine/MIT.LICENSE +20 -0
  13. data/lib/jasmine/README.markdown +489 -0
  14. data/lib/jasmine/Rakefile +146 -0
  15. data/lib/jasmine/cruise_config.rb +21 -0
  16. data/lib/jasmine/doc/files.html +460 -0
  17. data/lib/jasmine/doc/index.html +322 -0
  18. data/lib/jasmine/doc/symbols/_global_.html +918 -0
  19. data/lib/jasmine/doc/symbols/jasmine.Block.html +417 -0
  20. data/lib/jasmine/doc/symbols/jasmine.Clock.html +678 -0
  21. data/lib/jasmine/doc/symbols/jasmine.Env.html +1169 -0
  22. data/lib/jasmine/doc/symbols/jasmine.JsApiReporter.html +822 -0
  23. data/lib/jasmine/doc/symbols/jasmine.Matchers.html +1474 -0
  24. data/lib/jasmine/doc/symbols/jasmine.MultiReporter.html +394 -0
  25. data/lib/jasmine/doc/symbols/jasmine.NestedResults.html +710 -0
  26. data/lib/jasmine/doc/symbols/jasmine.Reporter.html +574 -0
  27. data/lib/jasmine/doc/symbols/jasmine.Runner.html +710 -0
  28. data/lib/jasmine/doc/symbols/jasmine.Spec.html +1253 -0
  29. data/lib/jasmine/doc/symbols/jasmine.Spy.html +855 -0
  30. data/lib/jasmine/doc/symbols/jasmine.Suite.html +705 -0
  31. data/lib/jasmine/doc/symbols/jasmine.html +1345 -0
  32. data/lib/jasmine/doc/symbols/jasmine.util.html +535 -0
  33. data/lib/jasmine/doc/symbols/src/lib_TrivialReporter.js.html +124 -0
  34. data/lib/jasmine/doc/symbols/src/src_Block.js.html +29 -0
  35. data/lib/jasmine/doc/symbols/src/src_Env.js.html +248 -0
  36. data/lib/jasmine/doc/symbols/src/src_JsApiReporter.js.html +111 -0
  37. data/lib/jasmine/doc/symbols/src/src_Matchers.js.html +344 -0
  38. data/lib/jasmine/doc/symbols/src/src_MultiReporter.js.html +36 -0
  39. data/lib/jasmine/doc/symbols/src/src_NestedResults.js.html +88 -0
  40. data/lib/jasmine/doc/symbols/src/src_PrettyPrinter.js.html +130 -0
  41. data/lib/jasmine/doc/symbols/src/src_Queue.js.html +102 -0
  42. data/lib/jasmine/doc/symbols/src/src_Reporter.js.html +35 -0
  43. data/lib/jasmine/doc/symbols/src/src_Reporters.js.html +51 -0
  44. data/lib/jasmine/doc/symbols/src/src_Runner.js.html +75 -0
  45. data/lib/jasmine/doc/symbols/src/src_Spec.js.html +214 -0
  46. data/lib/jasmine/doc/symbols/src/src_Suite.js.html +77 -0
  47. data/lib/jasmine/doc/symbols/src/src_WaitsBlock.js.html +21 -0
  48. data/lib/jasmine/doc/symbols/src/src_WaitsForBlock.js.html +45 -0
  49. data/lib/jasmine/doc/symbols/src/src_base.js.html +585 -0
  50. data/lib/jasmine/doc/symbols/src/src_mock-timeout.js.html +185 -0
  51. data/lib/jasmine/doc/symbols/src/src_util.js.html +75 -0
  52. data/lib/jasmine/example/example_runner.html +22 -0
  53. data/lib/jasmine/example/spec/example_suite.js +11 -0
  54. data/lib/jasmine/images/fail-16.png +0 -0
  55. data/lib/jasmine/images/fail.png +0 -0
  56. data/lib/jasmine/images/go-16.png +0 -0
  57. data/lib/jasmine/images/go.png +0 -0
  58. data/lib/jasmine/images/pending-16.png +0 -0
  59. data/lib/jasmine/images/pending.png +0 -0
  60. data/lib/jasmine/images/question-bk.png +0 -0
  61. data/lib/jasmine/images/questionbk-16.png +0 -0
  62. data/lib/jasmine/images/spinner.gif +0 -0
  63. data/lib/jasmine/lib/TrivialReporter.js +171 -0
  64. data/lib/jasmine/lib/consolex.js +28 -0
  65. data/lib/jasmine/lib/jasmine-0.10.4.js +2371 -0
  66. data/lib/jasmine/lib/jasmine.css +166 -0
  67. data/lib/jasmine/lib/json2.js +478 -0
  68. data/lib/jasmine/spec/jasmine_helper.rb +44 -0
  69. data/lib/jasmine/spec/jasmine_spec.rb +31 -0
  70. data/lib/jasmine/spec/runner.html +80 -0
  71. data/lib/jasmine/spec/saucelabs.yml +24 -0
  72. data/lib/jasmine/spec/suites/CustomMatchersSpec.js +112 -0
  73. data/lib/jasmine/spec/suites/EnvSpec.js +158 -0
  74. data/lib/jasmine/spec/suites/ExceptionsSpec.js +107 -0
  75. data/lib/jasmine/spec/suites/JsApiReporterSpec.js +96 -0
  76. data/lib/jasmine/spec/suites/MatchersSpec.js +709 -0
  77. data/lib/jasmine/spec/suites/MockClockSpec.js +34 -0
  78. data/lib/jasmine/spec/suites/MultiReporterSpec.js +30 -0
  79. data/lib/jasmine/spec/suites/NestedResultsSpec.js +54 -0
  80. data/lib/jasmine/spec/suites/PrettyPrintSpec.js +93 -0
  81. data/lib/jasmine/spec/suites/QueueSpec.js +23 -0
  82. data/lib/jasmine/spec/suites/ReporterSpec.js +60 -0
  83. data/lib/jasmine/spec/suites/RunnerSpec.js +267 -0
  84. data/lib/jasmine/spec/suites/SpecRunningSpec.js +1195 -0
  85. data/lib/jasmine/spec/suites/SpecSpec.js +110 -0
  86. data/lib/jasmine/spec/suites/SpySpec.js +201 -0
  87. data/lib/jasmine/spec/suites/SuiteSpec.js +120 -0
  88. data/lib/jasmine/spec/suites/TrivialReporterSpec.js +158 -0
  89. data/lib/jasmine/spec/suites/UtilSpec.js +40 -0
  90. data/lib/jasmine/spec/suites/WaitsForBlockSpec.js +88 -0
  91. data/lib/jasmine/src/Block.js +22 -0
  92. data/lib/jasmine/src/Env.js +263 -0
  93. data/lib/jasmine/src/JsApiReporter.js +104 -0
  94. data/lib/jasmine/src/Matchers.js +336 -0
  95. data/lib/jasmine/src/MultiReporter.js +28 -0
  96. data/lib/jasmine/src/NestedResults.js +80 -0
  97. data/lib/jasmine/src/PrettyPrinter.js +122 -0
  98. data/lib/jasmine/src/Queue.js +94 -0
  99. data/lib/jasmine/src/Reporter.js +27 -0
  100. data/lib/jasmine/src/Reporters.js +43 -0
  101. data/lib/jasmine/src/Runner.js +77 -0
  102. data/lib/jasmine/src/Spec.js +206 -0
  103. data/lib/jasmine/src/Suite.js +82 -0
  104. data/lib/jasmine/src/WaitsBlock.js +13 -0
  105. data/lib/jasmine/src/WaitsForBlock.js +37 -0
  106. data/lib/jasmine/src/base.js +586 -0
  107. data/lib/jasmine/src/mock-timeout.js +177 -0
  108. data/lib/jasmine/src/util.js +67 -0
  109. data/lib/jasmine/src/version.json +5 -0
  110. metadata +238 -0
@@ -0,0 +1,322 @@
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
+
7
+ <title>JsDoc Reference - Index</title>
8
+ <meta name="generator" content="JsDoc Toolkit" />
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
+ <div id="header">
178
+ </div>
179
+
180
+ <div id="index">
181
+ <div align="center"><a href="index.html">Class Index</a>
182
+ | <a href="files.html">File Index</a></div>
183
+ <hr />
184
+ <h2>Classes</h2>
185
+ <ul class="classList">
186
+
187
+ <li><i><a href="symbols/_global_.html">_global_</a></i></li>
188
+
189
+ <li><a href="symbols/jasmine.html">jasmine</a></li>
190
+
191
+ <li><a href="symbols/jasmine.Block.html">jasmine.Block</a></li>
192
+
193
+ <li><a href="symbols/jasmine.Clock.html">jasmine.Clock</a></li>
194
+
195
+ <li><a href="symbols/jasmine.Env.html">jasmine.Env</a></li>
196
+
197
+ <li><a href="symbols/jasmine.JsApiReporter.html">jasmine.JsApiReporter</a></li>
198
+
199
+ <li><a href="symbols/jasmine.Matchers.html">jasmine.Matchers</a></li>
200
+
201
+ <li><a href="symbols/jasmine.MultiReporter.html">jasmine.MultiReporter</a></li>
202
+
203
+ <li><a href="symbols/jasmine.NestedResults.html">jasmine.NestedResults</a></li>
204
+
205
+ <li><a href="symbols/jasmine.Reporter.html">jasmine.Reporter</a></li>
206
+
207
+ <li><a href="symbols/jasmine.Runner.html">jasmine.Runner</a></li>
208
+
209
+ <li><a href="symbols/jasmine.Spec.html">jasmine.Spec</a></li>
210
+
211
+ <li><a href="symbols/jasmine.Spy.html">jasmine.Spy</a></li>
212
+
213
+ <li><a href="symbols/jasmine.Suite.html">jasmine.Suite</a></li>
214
+
215
+ <li><a href="symbols/jasmine.util.html">jasmine.util</a></li>
216
+
217
+ </ul>
218
+ <hr />
219
+ </div>
220
+
221
+ <div id="content">
222
+ <h1 class="classTitle">Class Index</h1>
223
+
224
+
225
+ <div>
226
+ <h2><a href="symbols/_global_.html">_global_</a></h2>
227
+
228
+ </div>
229
+ <hr />
230
+
231
+ <div>
232
+ <h2><a href="symbols/jasmine.html">jasmine</a></h2>
233
+
234
+ </div>
235
+ <hr />
236
+
237
+ <div>
238
+ <h2><a href="symbols/jasmine.Block.html">jasmine.Block</a></h2>
239
+
240
+ </div>
241
+ <hr />
242
+
243
+ <div>
244
+ <h2><a href="symbols/jasmine.Clock.html">jasmine.Clock</a></h2>
245
+
246
+ </div>
247
+ <hr />
248
+
249
+ <div>
250
+ <h2><a href="symbols/jasmine.Env.html">jasmine.Env</a></h2>
251
+
252
+ </div>
253
+ <hr />
254
+
255
+ <div>
256
+ <h2><a href="symbols/jasmine.JsApiReporter.html">jasmine.JsApiReporter</a></h2>
257
+
258
+ </div>
259
+ <hr />
260
+
261
+ <div>
262
+ <h2><a href="symbols/jasmine.Matchers.html">jasmine.Matchers</a></h2>
263
+
264
+ </div>
265
+ <hr />
266
+
267
+ <div>
268
+ <h2><a href="symbols/jasmine.MultiReporter.html">jasmine.MultiReporter</a></h2>
269
+
270
+ </div>
271
+ <hr />
272
+
273
+ <div>
274
+ <h2><a href="symbols/jasmine.NestedResults.html">jasmine.NestedResults</a></h2>
275
+
276
+ </div>
277
+ <hr />
278
+
279
+ <div>
280
+ <h2><a href="symbols/jasmine.Reporter.html">jasmine.Reporter</a></h2>
281
+
282
+ </div>
283
+ <hr />
284
+
285
+ <div>
286
+ <h2><a href="symbols/jasmine.Runner.html">jasmine.Runner</a></h2>
287
+
288
+ </div>
289
+ <hr />
290
+
291
+ <div>
292
+ <h2><a href="symbols/jasmine.Spec.html">jasmine.Spec</a></h2>
293
+
294
+ </div>
295
+ <hr />
296
+
297
+ <div>
298
+ <h2><a href="symbols/jasmine.Spy.html">jasmine.Spy</a></h2>
299
+
300
+ </div>
301
+ <hr />
302
+
303
+ <div>
304
+ <h2><a href="symbols/jasmine.Suite.html">jasmine.Suite</a></h2>
305
+
306
+ </div>
307
+ <hr />
308
+
309
+ <div>
310
+ <h2><a href="symbols/jasmine.util.html">jasmine.util</a></h2>
311
+
312
+ </div>
313
+ <hr />
314
+
315
+
316
+ </div>
317
+ <div class="fineprint" style="clear:both">
318
+
319
+ Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blankt">JsDoc Toolkit</a> 2.1.0 on Thu Mar 18 2010 20:35:01 GMT-0700 (PDT)
320
+ </div>
321
+ </body>
322
+ </html>
@@ -0,0 +1,918 @@
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 - _global_</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
+ Built-In Namespace _global_
232
+ </h1>
233
+
234
+ <!-- ============================== class summary ========================== -->
235
+ <p class="description">
236
+
237
+
238
+
239
+
240
+
241
+ </p>
242
+
243
+ <!-- ============================== constructor summary ==================== -->
244
+
245
+
246
+ <!-- ============================== properties summary ===================== -->
247
+
248
+
249
+ <!-- ============================== methods summary ======================== -->
250
+
251
+
252
+
253
+ <table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class _global_.">
254
+ <caption>Method Summary</caption>
255
+ <thead>
256
+ <tr>
257
+ <th scope="col">Method Attributes</th>
258
+ <th scope="col">Method Name and Description</th>
259
+ </tr>
260
+ </thead>
261
+ <tbody>
262
+
263
+ <tr>
264
+ <td class="attributes">&nbsp;</td>
265
+ <td class="nameDescription">
266
+ <div class="fixedFont"><b><a href="../symbols/_global_.html#afterEach">afterEach</a></b>(afterEachFunction)
267
+ </div>
268
+ <div class="description">A function that is called after each spec in a suite.</div>
269
+ </td>
270
+ </tr>
271
+
272
+ <tr>
273
+ <td class="attributes">&nbsp;</td>
274
+ <td class="nameDescription">
275
+ <div class="fixedFont"><b><a href="../symbols/_global_.html#beforeEach">beforeEach</a></b>(beforeEachFunction)
276
+ </div>
277
+ <div class="description">A function that is called before each spec in a suite.</div>
278
+ </td>
279
+ </tr>
280
+
281
+ <tr>
282
+ <td class="attributes">&nbsp;</td>
283
+ <td class="nameDescription">
284
+ <div class="fixedFont"><b><a href="../symbols/_global_.html#describe">describe</a></b>(description, specDefinitions)
285
+ </div>
286
+ <div class="description">Defines a suite of specifications.</div>
287
+ </td>
288
+ </tr>
289
+
290
+ <tr>
291
+ <td class="attributes">&nbsp;</td>
292
+ <td class="nameDescription">
293
+ <div class="fixedFont"><b><a href="../symbols/_global_.html#expect">expect</a></b>(actual)
294
+ </div>
295
+ <div class="description">Starts a chain for a Jasmine expectation.</div>
296
+ </td>
297
+ </tr>
298
+
299
+ <tr>
300
+ <td class="attributes">&nbsp;</td>
301
+ <td class="nameDescription">
302
+ <div class="fixedFont"><b><a href="../symbols/_global_.html#it">it</a></b>(desc, func)
303
+ </div>
304
+ <div class="description">Creates a Jasmine spec that will be added to the current suite.</div>
305
+ </td>
306
+ </tr>
307
+
308
+ <tr>
309
+ <td class="attributes">&nbsp;</td>
310
+ <td class="nameDescription">
311
+ <div class="fixedFont"><b><a href="../symbols/_global_.html#runs">runs</a></b>(func)
312
+ </div>
313
+ <div class="description">Defines part of a jasmine spec.</div>
314
+ </td>
315
+ </tr>
316
+
317
+ <tr>
318
+ <td class="attributes">&nbsp;</td>
319
+ <td class="nameDescription">
320
+ <div class="fixedFont"><b><a href="../symbols/_global_.html#spyOn">spyOn</a></b>(obj, methodName)
321
+ </div>
322
+ <div class="description">Function that installs a spy on an existing object's method name.</div>
323
+ </td>
324
+ </tr>
325
+
326
+ <tr>
327
+ <td class="attributes">&nbsp;</td>
328
+ <td class="nameDescription">
329
+ <div class="fixedFont"><b><a href="../symbols/_global_.html#waits">waits</a></b>(timeout)
330
+ </div>
331
+ <div class="description">Waits for a timeout before moving to the next runs()-defined block.</div>
332
+ </td>
333
+ </tr>
334
+
335
+ <tr>
336
+ <td class="attributes">&nbsp;</td>
337
+ <td class="nameDescription">
338
+ <div class="fixedFont"><b><a href="../symbols/_global_.html#waitsFor">waitsFor</a></b>(timeout, latchFunction, message)
339
+ </div>
340
+ <div class="description">Waits for the latchFunction to return true before proceeding to the next runs()-defined block.</div>
341
+ </td>
342
+ </tr>
343
+
344
+ <tr>
345
+ <td class="attributes">&nbsp;</td>
346
+ <td class="nameDescription">
347
+ <div class="fixedFont"><b><a href="../symbols/_global_.html#xdescribe">xdescribe</a></b>(description, specDefinitions)
348
+ </div>
349
+ <div class="description">Disables a suite of specifications.</div>
350
+ </td>
351
+ </tr>
352
+
353
+ <tr>
354
+ <td class="attributes">&nbsp;</td>
355
+ <td class="nameDescription">
356
+ <div class="fixedFont"><b><a href="../symbols/_global_.html#xit">xit</a></b>(desc, func)
357
+ </div>
358
+ <div class="description">Creates a <em>disabled</em> Jasmine spec.</div>
359
+ </td>
360
+ </tr>
361
+
362
+ </tbody>
363
+ </table>
364
+
365
+
366
+
367
+
368
+ <!-- ============================== events summary ======================== -->
369
+
370
+
371
+ <!-- ============================== constructor details ==================== -->
372
+
373
+
374
+ <!-- ============================== field details ========================== -->
375
+
376
+
377
+ <!-- ============================== method details ========================= -->
378
+
379
+ <div class="sectionTitle">
380
+ Method Detail
381
+ </div>
382
+
383
+ <a name="afterEach"> </a>
384
+ <div class="fixedFont">
385
+
386
+
387
+ <b>afterEach</b>(afterEachFunction)
388
+
389
+ </div>
390
+ <div class="description">
391
+ A function that is called after each spec in a suite.
392
+
393
+ Used for restoring any state that is hijacked during spec execution.
394
+
395
+ <br />
396
+ <i>Defined in: </i> <a href="../symbols/src/src_base.js.html">base.js</a>.
397
+
398
+
399
+ </div>
400
+
401
+
402
+
403
+
404
+ <dl class="detailList">
405
+ <dt class="heading">Parameters:</dt>
406
+
407
+ <dt>
408
+ <span class="light fixedFont">{Function}</span> <b>afterEachFunction</b>
409
+
410
+ </dt>
411
+ <dd></dd>
412
+
413
+ </dl>
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+ <hr />
423
+
424
+ <a name="beforeEach"> </a>
425
+ <div class="fixedFont">
426
+
427
+
428
+ <b>beforeEach</b>(beforeEachFunction)
429
+
430
+ </div>
431
+ <div class="description">
432
+ A function that is called before each spec in a suite.
433
+
434
+ Used for spec setup, including validating assumptions.
435
+
436
+ <br />
437
+ <i>Defined in: </i> <a href="../symbols/src/src_base.js.html">base.js</a>.
438
+
439
+
440
+ </div>
441
+
442
+
443
+
444
+
445
+ <dl class="detailList">
446
+ <dt class="heading">Parameters:</dt>
447
+
448
+ <dt>
449
+ <span class="light fixedFont">{Function}</span> <b>beforeEachFunction</b>
450
+
451
+ </dt>
452
+ <dd></dd>
453
+
454
+ </dl>
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+
463
+ <hr />
464
+
465
+ <a name="describe"> </a>
466
+ <div class="fixedFont">
467
+
468
+
469
+ <b>describe</b>(description, specDefinitions)
470
+
471
+ </div>
472
+ <div class="description">
473
+ Defines a suite of specifications.
474
+
475
+ Stores the description and all defined specs in the Jasmine environment as one suite of specs. Variables declared
476
+ are accessible by calls to beforeEach, it, and afterEach. Describe blocks can be nested, allowing for specialization
477
+ of setup in some tests.
478
+
479
+ <br />
480
+ <i>Defined in: </i> <a href="../symbols/src/src_base.js.html">base.js</a>.
481
+
482
+
483
+ </div>
484
+
485
+
486
+
487
+ <pre class="code">// TODO: a simple suite
488
+
489
+ // TODO: a simple suite with a nested describe block</pre>
490
+
491
+
492
+
493
+
494
+ <dl class="detailList">
495
+ <dt class="heading">Parameters:</dt>
496
+
497
+ <dt>
498
+ <span class="light fixedFont">{String}</span> <b>description</b>
499
+
500
+ </dt>
501
+ <dd>A string, usually the class under test.</dd>
502
+
503
+ <dt>
504
+ <span class="light fixedFont">{Function}</span> <b>specDefinitions</b>
505
+
506
+ </dt>
507
+ <dd>function that defines several specs.</dd>
508
+
509
+ </dl>
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+
518
+ <hr />
519
+
520
+ <a name="expect"> </a>
521
+ <div class="fixedFont">
522
+
523
+
524
+ <b>expect</b>(actual)
525
+
526
+ </div>
527
+ <div class="description">
528
+ Starts a chain for a Jasmine expectation.
529
+
530
+ It is passed an Object that is the actual value and should chain to one of the many
531
+ jasmine.Matchers functions.
532
+
533
+ <br />
534
+ <i>Defined in: </i> <a href="../symbols/src/src_base.js.html">base.js</a>.
535
+
536
+
537
+ </div>
538
+
539
+
540
+
541
+
542
+ <dl class="detailList">
543
+ <dt class="heading">Parameters:</dt>
544
+
545
+ <dt>
546
+ <span class="light fixedFont">{Object}</span> <b>actual</b>
547
+
548
+ </dt>
549
+ <dd>Actual value to test against and expected value</dd>
550
+
551
+ </dl>
552
+
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+ <hr />
561
+
562
+ <a name="it"> </a>
563
+ <div class="fixedFont">
564
+
565
+
566
+ <b>it</b>(desc, func)
567
+
568
+ </div>
569
+ <div class="description">
570
+ Creates a Jasmine spec that will be added to the current suite.
571
+
572
+ // TODO: pending tests
573
+
574
+ <br />
575
+ <i>Defined in: </i> <a href="../symbols/src/src_base.js.html">base.js</a>.
576
+
577
+
578
+ </div>
579
+
580
+
581
+
582
+ <pre class="code">it('should be true', function() {
583
+ expect(true).toEqual(true);
584
+ });</pre>
585
+
586
+
587
+
588
+
589
+ <dl class="detailList">
590
+ <dt class="heading">Parameters:</dt>
591
+
592
+ <dt>
593
+ <span class="light fixedFont">{String}</span> <b>desc</b>
594
+
595
+ </dt>
596
+ <dd>description of this specification</dd>
597
+
598
+ <dt>
599
+ <span class="light fixedFont">{Function}</span> <b>func</b>
600
+
601
+ </dt>
602
+ <dd>defines the preconditions and expectations of the spec</dd>
603
+
604
+ </dl>
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+ <hr />
614
+
615
+ <a name="runs"> </a>
616
+ <div class="fixedFont">
617
+
618
+
619
+ <b>runs</b>(func)
620
+
621
+ </div>
622
+ <div class="description">
623
+ Defines part of a jasmine spec. Used in cominbination with waits or waitsFor in asynchrnous specs.
624
+
625
+ <br />
626
+ <i>Defined in: </i> <a href="../symbols/src/src_base.js.html">base.js</a>.
627
+
628
+
629
+ </div>
630
+
631
+
632
+
633
+
634
+ <dl class="detailList">
635
+ <dt class="heading">Parameters:</dt>
636
+
637
+ <dt>
638
+ <span class="light fixedFont">{Function}</span> <b>func</b>
639
+
640
+ </dt>
641
+ <dd>Function that defines part of a jasmine spec.</dd>
642
+
643
+ </dl>
644
+
645
+
646
+
647
+
648
+
649
+
650
+
651
+
652
+ <hr />
653
+
654
+ <a name="spyOn"> </a>
655
+ <div class="fixedFont">
656
+
657
+
658
+ <b>spyOn</b>(obj, methodName)
659
+
660
+ </div>
661
+ <div class="description">
662
+ Function that installs a spy on an existing object's method name. Used within a Spec to create a spy.
663
+
664
+ <br />
665
+ <i>Defined in: </i> <a href="../symbols/src/src_base.js.html">base.js</a>.
666
+
667
+
668
+ </div>
669
+
670
+
671
+
672
+ <pre class="code">// spy example
673
+ var foo = {
674
+ not: function(bool) { return !bool; }
675
+ }
676
+ spyOn(foo, 'not'); // actual foo.not will not be called, execution stops</pre>
677
+
678
+
679
+
680
+
681
+ <dl class="detailList">
682
+ <dt class="heading">Parameters:</dt>
683
+
684
+ <dt>
685
+ <b>obj</b>
686
+
687
+ </dt>
688
+ <dd></dd>
689
+
690
+ <dt>
691
+ <b>methodName</b>
692
+
693
+ </dt>
694
+ <dd></dd>
695
+
696
+ </dl>
697
+
698
+
699
+
700
+
701
+
702
+ <dl class="detailList">
703
+ <dt class="heading">Returns:</dt>
704
+
705
+ <dd>a Jasmine spy that can be chained with all spy methods</dd>
706
+
707
+ </dl>
708
+
709
+
710
+
711
+ <dl class="detailList">
712
+ <dt class="heading">See:</dt>
713
+
714
+ <dd><a href="../symbols/jasmine.html#.createSpy">jasmine.createSpy</a></dd>
715
+
716
+ </dl>
717
+
718
+
719
+ <hr />
720
+
721
+ <a name="waits"> </a>
722
+ <div class="fixedFont">
723
+
724
+
725
+ <b>waits</b>(timeout)
726
+
727
+ </div>
728
+ <div class="description">
729
+ Waits for a timeout before moving to the next runs()-defined block.
730
+
731
+ <br />
732
+ <i>Defined in: </i> <a href="../symbols/src/src_base.js.html">base.js</a>.
733
+
734
+
735
+ </div>
736
+
737
+
738
+
739
+
740
+ <dl class="detailList">
741
+ <dt class="heading">Parameters:</dt>
742
+
743
+ <dt>
744
+ <span class="light fixedFont">{Number}</span> <b>timeout</b>
745
+
746
+ </dt>
747
+ <dd></dd>
748
+
749
+ </dl>
750
+
751
+
752
+
753
+
754
+
755
+
756
+
757
+
758
+ <hr />
759
+
760
+ <a name="waitsFor"> </a>
761
+ <div class="fixedFont">
762
+
763
+
764
+ <b>waitsFor</b>(timeout, latchFunction, message)
765
+
766
+ </div>
767
+ <div class="description">
768
+ Waits for the latchFunction to return true before proceeding to the next runs()-defined block.
769
+
770
+ <br />
771
+ <i>Defined in: </i> <a href="../symbols/src/src_base.js.html">base.js</a>.
772
+
773
+
774
+ </div>
775
+
776
+
777
+
778
+
779
+ <dl class="detailList">
780
+ <dt class="heading">Parameters:</dt>
781
+
782
+ <dt>
783
+ <span class="light fixedFont">{Number}</span> <b>timeout</b>
784
+
785
+ </dt>
786
+ <dd></dd>
787
+
788
+ <dt>
789
+ <span class="light fixedFont">{Function}</span> <b>latchFunction</b>
790
+
791
+ </dt>
792
+ <dd></dd>
793
+
794
+ <dt>
795
+ <span class="light fixedFont">{String}</span> <b>message</b>
796
+
797
+ </dt>
798
+ <dd></dd>
799
+
800
+ </dl>
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+
809
+ <hr />
810
+
811
+ <a name="xdescribe"> </a>
812
+ <div class="fixedFont">
813
+
814
+
815
+ <b>xdescribe</b>(description, specDefinitions)
816
+
817
+ </div>
818
+ <div class="description">
819
+ Disables a suite of specifications. Used to disable some suites in a file, or files, temporarily during development.
820
+
821
+ <br />
822
+ <i>Defined in: </i> <a href="../symbols/src/src_base.js.html">base.js</a>.
823
+
824
+
825
+ </div>
826
+
827
+
828
+
829
+
830
+ <dl class="detailList">
831
+ <dt class="heading">Parameters:</dt>
832
+
833
+ <dt>
834
+ <span class="light fixedFont">{String}</span> <b>description</b>
835
+
836
+ </dt>
837
+ <dd>A string, usually the class under test.</dd>
838
+
839
+ <dt>
840
+ <span class="light fixedFont">{Function}</span> <b>specDefinitions</b>
841
+
842
+ </dt>
843
+ <dd>function that defines several specs.</dd>
844
+
845
+ </dl>
846
+
847
+
848
+
849
+
850
+
851
+
852
+
853
+
854
+ <hr />
855
+
856
+ <a name="xit"> </a>
857
+ <div class="fixedFont">
858
+
859
+
860
+ <b>xit</b>(desc, func)
861
+
862
+ </div>
863
+ <div class="description">
864
+ Creates a <em>disabled</em> Jasmine spec.
865
+
866
+ A convenience method that allows existing specs to be disabled temporarily during development.
867
+
868
+ <br />
869
+ <i>Defined in: </i> <a href="../symbols/src/src_base.js.html">base.js</a>.
870
+
871
+
872
+ </div>
873
+
874
+
875
+
876
+
877
+ <dl class="detailList">
878
+ <dt class="heading">Parameters:</dt>
879
+
880
+ <dt>
881
+ <span class="light fixedFont">{String}</span> <b>desc</b>
882
+
883
+ </dt>
884
+ <dd>description of this specification</dd>
885
+
886
+ <dt>
887
+ <span class="light fixedFont">{Function}</span> <b>func</b>
888
+
889
+ </dt>
890
+ <dd>defines the preconditions and expectations of the spec</dd>
891
+
892
+ </dl>
893
+
894
+
895
+
896
+
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+
905
+ <!-- ============================== event details ========================= -->
906
+
907
+
908
+ <hr />
909
+ </div>
910
+
911
+
912
+ <!-- ============================== footer ================================= -->
913
+ <div class="fineprint" style="clear:both">
914
+
915
+ 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)
916
+ </div>
917
+ </body>
918
+ </html>