jasmine-core 1.2.0.rc1 → 1.2.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,11 +10,11 @@
10
10
  <script type="text/javascript" src="lib/jasmine-1.1.0.rc1/jasmine.js"></script>
11
11
  <script type="text/javascript" src="lib/jasmine-1.1.0.rc1/jasmine-html.js"></script>
12
12
 
13
- <!-- include source files here... -->
13
+ <!-- include spec files here... -->
14
14
  <script type="text/javascript" src="spec/SpecHelper.js"></script>
15
15
  <script type="text/javascript" src="spec/PlayerSpec.js"></script>
16
16
 
17
- <!-- include spec files here... -->
17
+ <!-- include source files here... -->
18
18
  <script type="text/javascript" src="src/Player.js"></script>
19
19
  <script type="text/javascript" src="src/Song.js"></script>
20
20
 
@@ -84,7 +84,7 @@ jasmine.HtmlReporter = function(_doc) {
84
84
  };
85
85
 
86
86
  self.reportRunnerResults = function(runner) {
87
- reporterView.complete();
87
+ reporterView && reporterView.complete();
88
88
  };
89
89
 
90
90
  self.reportSuiteResults = function(suite) {
@@ -158,67 +158,7 @@ jasmine.HtmlReporter = function(_doc) {
158
158
  );
159
159
  }
160
160
  };
161
- jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter);jasmine.HtmlReporterHelpers = {};
162
-
163
- jasmine.HtmlReporterHelpers.createDom = function(type, attrs, childrenVarArgs) {
164
- var el = document.createElement(type);
165
-
166
- for (var i = 2; i < arguments.length; i++) {
167
- var child = arguments[i];
168
-
169
- if (typeof child === 'string') {
170
- el.appendChild(document.createTextNode(child));
171
- } else {
172
- if (child) {
173
- el.appendChild(child);
174
- }
175
- }
176
- }
177
-
178
- for (var attr in attrs) {
179
- if (attr == "className") {
180
- el[attr] = attrs[attr];
181
- } else {
182
- el.setAttribute(attr, attrs[attr]);
183
- }
184
- }
185
-
186
- return el;
187
- };
188
-
189
- jasmine.HtmlReporterHelpers.getSpecStatus = function(child) {
190
- var results = child.results();
191
- var status = results.passed() ? 'passed' : 'failed';
192
- if (results.skipped) {
193
- status = 'skipped';
194
- }
195
-
196
- return status;
197
- };
198
-
199
- jasmine.HtmlReporterHelpers.appendToSummary = function(child, childElement) {
200
- var parentDiv = this.dom.summary;
201
- var parentSuite = (typeof child.parentSuite == 'undefined') ? 'suite' : 'parentSuite';
202
- var parent = child[parentSuite];
203
-
204
- if (parent) {
205
- if (typeof this.views.suites[parent.id] == 'undefined') {
206
- this.views.suites[parent.id] = new jasmine.HtmlReporter.SuiteView(parent, this.dom, this.views);
207
- }
208
- parentDiv = this.views.suites[parent.id].element;
209
- }
210
-
211
- parentDiv.appendChild(childElement);
212
- };
213
-
214
-
215
- jasmine.HtmlReporterHelpers.addHelpers = function(ctor) {
216
- for(var fn in jasmine.HtmlReporterHelpers) {
217
- ctor.prototype[fn] = jasmine.HtmlReporterHelpers[fn];
218
- }
219
- };
220
-
221
- jasmine.HtmlReporter.ReporterView = function(dom) {
161
+ jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter);jasmine.HtmlReporter.ReporterView = function(dom) {
222
162
  this.startedAt = new Date();
223
163
  this.runningSpecCount = 0;
224
164
  this.completeSpecCount = 0;
@@ -241,8 +181,30 @@ jasmine.HtmlReporter.ReporterView = function(dom) {
241
181
  };
242
182
  };
243
183
 
184
+ this.addSpecs = function(specs, specFilter) {
185
+ this.totalSpecCount = specs.length;
186
+
187
+ this.views = {
188
+ specs: {},
189
+ suites: {}
190
+ };
191
+
192
+ for (var i = 0; i < specs.length; i++) {
193
+ var spec = specs[i];
194
+ this.views.specs[spec.id] = new jasmine.HtmlReporter.SpecView(spec, dom, this.views);
195
+ if (specFilter(spec)) {
196
+ this.runningSpecCount++;
197
+ }
198
+ }
199
+ };
200
+
244
201
  this.specComplete = function(spec) {
245
202
  this.completeSpecCount++;
203
+
204
+ if (isUndefined(this.views.specs[spec.id])) {
205
+ this.views.specs[spec.id] = new jasmine.HtmlReporter.SpecView(spec, dom);
206
+ }
207
+
246
208
  var specView = this.views.specs[spec.id];
247
209
 
248
210
  switch (specView.status()) {
@@ -282,14 +244,14 @@ jasmine.HtmlReporter.ReporterView = function(dom) {
282
244
  this.runningAlert = this.createDom('a', {href: "?", className: "runningAlert bar"});
283
245
  dom.alert.appendChild(this.runningAlert);
284
246
  }
285
- this.runningAlert.innerHTML = "Running " + this.completeSpecCount + " of " + this.totalSpecCount + " spec" + (this.totalSpecCount == 1 ? "" : "s" );
247
+ this.runningAlert.innerHTML = "Running " + this.completeSpecCount + " of " + specPluralizedFor(this.totalSpecCount);
286
248
 
287
249
  // skipped specs UI
288
250
  if (isUndefined(this.skippedAlert)) {
289
251
  this.skippedAlert = this.createDom('a', {href: "?", className: "skippedAlert bar"});
290
252
  }
291
253
 
292
- this.skippedAlert.innerHTML = "Skipping " + this.skippedCount + " of " + this.totalSpecCount + " spec" + (this.totalSpecCount == 1 ? "" : "s" ) + " - run all";
254
+ this.skippedAlert.innerHTML = "Skipping " + this.skippedCount + " of " + specPluralizedFor(this.totalSpecCount) + " - run all";
293
255
 
294
256
  if (this.skippedCount === 1 && isDefined(dom.alert)) {
295
257
  dom.alert.appendChild(this.skippedAlert);
@@ -299,13 +261,13 @@ jasmine.HtmlReporter.ReporterView = function(dom) {
299
261
  if (isUndefined(this.passedAlert)) {
300
262
  this.passedAlert = this.createDom('span', {href: "?", className: "passingAlert bar"});
301
263
  }
302
- this.passedAlert.innerHTML = "Passing " + this.passedCount + " spec" + (this.passedCount == 1 ? "" : "s" );
264
+ this.passedAlert.innerHTML = "Passing " + specPluralizedFor(this.passedCount);
303
265
 
304
266
  // failing specs UI
305
267
  if (isUndefined(this.failedAlert)) {
306
268
  this.failedAlert = this.createDom('span', {href: "?", className: "failingAlert bar"});
307
269
  }
308
- this.failedAlert.innerHTML = "Failing " + this.failedCount + " spec" + (this.totalSpecCount == 1 ? "" : "s" );
270
+ this.failedAlert.innerHTML = "Failing " + specPluralizedFor(this.failedCount);
309
271
 
310
272
  if (this.failedCount === 1 && isDefined(dom.alert)) {
311
273
  dom.alert.appendChild(this.failedAlert);
@@ -313,17 +275,17 @@ jasmine.HtmlReporter.ReporterView = function(dom) {
313
275
  }
314
276
 
315
277
  // summary info
316
- this.summaryMenuItem.innerHTML = "" + this.runningSpecCount + " spec" + (this.runningSpecCount == 1 ? "" : "s" );
278
+ this.summaryMenuItem.innerHTML = "" + specPluralizedFor(this.runningSpecCount);
317
279
  this.detailsMenuItem.innerHTML = "" + this.failedCount + " failing";
318
280
  };
319
281
 
320
282
  this.complete = function() {
321
283
  dom.alert.removeChild(this.runningAlert);
322
284
 
323
- this.skippedAlert.innerHTML = "Ran " + this.runningSpecCount + " of " + this.totalSpecCount + " spec" + (this.totalSpecCount == 1 ? "" : "s" ) + " - run all";
285
+ this.skippedAlert.innerHTML = "Ran " + this.runningSpecCount + " of " + specPluralizedFor(this.totalSpecCount) + " - run all";
324
286
 
325
287
  if (this.failedCount === 0) {
326
- dom.alert.appendChild(this.createDom('span', {className: 'passingAlert bar'}, "Passing " + this.passedCount + " spec" + (this.passedCount == 1 ? "" : "s" )));
288
+ dom.alert.appendChild(this.createDom('span', {className: 'passingAlert bar'}, "Passing " + specPluralizedFor(this.passedCount)));
327
289
  } else {
328
290
  showDetails();
329
291
  }
@@ -331,23 +293,6 @@ jasmine.HtmlReporter.ReporterView = function(dom) {
331
293
  dom.banner.appendChild(this.createDom('span', {className: 'duration'}, "finished in " + ((new Date().getTime() - this.startedAt.getTime()) / 1000) + "s"));
332
294
  };
333
295
 
334
- this.addSpecs = function(specs, specFilter) {
335
- this.totalSpecCount = specs.length;
336
-
337
- this.views = {
338
- specs: {},
339
- suites: {}
340
- };
341
-
342
- for (var i = 0; i < specs.length; i++) {
343
- var spec = specs[i];
344
- this.views.specs[spec.id] = new jasmine.HtmlReporter.SpecView(spec, dom, this.views);
345
- if (specFilter(spec)) {
346
- this.runningSpecCount++;
347
- }
348
- }
349
- };
350
-
351
296
  return this;
352
297
 
353
298
  function showDetails() {
@@ -363,6 +308,15 @@ jasmine.HtmlReporter.ReporterView = function(dom) {
363
308
  function isDefined(obj) {
364
309
  return !isUndefined(obj);
365
310
  }
311
+
312
+ function specPluralizedFor(count) {
313
+ var str = count + " spec";
314
+ if (count > 1) {
315
+ str += "s"
316
+ }
317
+ return str;
318
+ }
319
+
366
320
  };
367
321
 
368
322
  jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.ReporterView);
@@ -468,11 +422,12 @@ jasmine.HtmlReporter.SuiteView.prototype.refresh = function() {
468
422
 
469
423
  jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.SuiteView);
470
424
 
425
+ /* @deprecated Use jasmine.HtmlReporter instead
426
+ */
471
427
  jasmine.TrivialReporter = function(doc) {
472
428
  this.document = doc || document;
473
429
  this.suiteDivs = {};
474
430
  this.logRunningSpecs = false;
475
- this.log("DEPRECATION WARNING: jasmine.TrivialReporter is deprecated as of v1.2 and will be removed in version 2.0. Please use (the vastly nicer) jasmine.HtmlReporter.")
476
431
  };
477
432
 
478
433
  jasmine.TrivialReporter.prototype.createDom = function(type, attrs, childrenVarArgs) {
@@ -1,413 +1,81 @@
1
- /* line 25, _HTMLReporter.scss */
2
- body {
3
- background-color: #eeeeee;
4
- padding: 0;
5
- margin: 5px;
6
- overflow-y: scroll;
7
- }
1
+ body { background-color: #eeeeee; padding: 0; margin: 5px; overflow-y: scroll; }
8
2
 
9
- /* line 32, _HTMLReporter.scss */
10
- #HTMLReporter {
11
- font-size: 11px;
12
- font-family: Monaco, "Lucida Console", monospace;
13
- line-height: 14px;
14
- color: #333333;
15
- }
16
- /* line 39, _HTMLReporter.scss */
17
- #HTMLReporter a {
18
- text-decoration: none;
19
- }
20
- /* line 42, _HTMLReporter.scss */
21
- #HTMLReporter a:hover {
22
- text-decoration: underline;
23
- }
24
- /* line 47, _HTMLReporter.scss */
25
- #HTMLReporter p, #HTMLReporter h1, #HTMLReporter h2, #HTMLReporter h3, #HTMLReporter h4, #HTMLReporter h5, #HTMLReporter h6 {
26
- margin: 0;
27
- line-height: 14px;
28
- }
29
- /* line 58, _HTMLReporter.scss */
30
- #HTMLReporter .banner,
31
- #HTMLReporter .symbolSummary,
32
- #HTMLReporter .summary,
33
- #HTMLReporter .resultMessage,
34
- #HTMLReporter .specDetail .description,
35
- #HTMLReporter .alert .bar,
36
- #HTMLReporter .stackTrace {
37
- padding-left: 9px;
38
- padding-right: 9px;
39
- }
40
- /* line 65, _HTMLReporter.scss */
41
- #HTMLReporter #jasmine_content {
42
- position: fixed;
43
- right: 100%;
44
- }
45
- /* line 70, _HTMLReporter.scss */
46
- #HTMLReporter .version {
47
- color: #aaaaaa;
48
- }
49
- /* line 77, _HTMLReporter.scss */
50
- #HTMLReporter .banner {
51
- margin-top: 14px;
52
- }
53
- /* line 81, _HTMLReporter.scss */
54
- #HTMLReporter .duration {
55
- color: #aaaaaa;
56
- float: right;
57
- }
58
- /* line 90, _HTMLReporter.scss */
59
- #HTMLReporter .symbolSummary {
60
- overflow: hidden;
61
- *zoom: 1;
62
- margin: 14px 0;
63
- }
64
- /* line 94, _HTMLReporter.scss */
65
- #HTMLReporter .symbolSummary li {
66
- display: block;
67
- float: left;
68
- height: 7px;
69
- width: 14px;
70
- margin-bottom: 7px;
71
- font-size: 16px;
72
- }
73
- /* line 105, _HTMLReporter.scss */
74
- #HTMLReporter .symbolSummary li.passed {
75
- font-size: 14px;
76
- }
77
- /* line 108, _HTMLReporter.scss */
78
- #HTMLReporter .symbolSummary li.passed:before {
79
- color: #5e7d00;
80
- content: "\02022";
81
- }
82
- /* line 114, _HTMLReporter.scss */
83
- #HTMLReporter .symbolSummary li.failed {
84
- line-height: 9px;
85
- }
86
- /* line 117, _HTMLReporter.scss */
87
- #HTMLReporter .symbolSummary li.failed:before {
88
- color: #b03911;
89
- content: "x";
90
- font-weight: bold;
91
- margin-left: -1px;
92
- }
93
- /* line 125, _HTMLReporter.scss */
94
- #HTMLReporter .symbolSummary li.skipped {
95
- font-size: 14px;
96
- }
97
- /* line 128, _HTMLReporter.scss */
98
- #HTMLReporter .symbolSummary li.skipped:before {
99
- color: #bababa;
100
- content: "\02022";
101
- }
102
- /* line 134, _HTMLReporter.scss */
103
- #HTMLReporter .symbolSummary li.pending {
104
- line-height: 11px;
105
- }
106
- /* line 137, _HTMLReporter.scss */
107
- #HTMLReporter .symbolSummary li.pending:before {
108
- color: #aaaaaa;
109
- content: "-";
110
- }
111
- /* line 149, _HTMLReporter.scss */
112
- #HTMLReporter .bar {
113
- line-height: 28px;
114
- font-size: 14px;
115
- display: block;
116
- color: #eee;
117
- }
118
- /* line 158, _HTMLReporter.scss */
119
- #HTMLReporter .runningAlert {
120
- background-color: #666666;
121
- }
122
- /* line 162, _HTMLReporter.scss */
123
- #HTMLReporter .skippedAlert {
124
- background-color: #aaaaaa;
125
- }
126
- /* line 165, _HTMLReporter.scss */
127
- #HTMLReporter .skippedAlert:first-child {
128
- background-color: #333333;
129
- }
130
- /* line 169, _HTMLReporter.scss */
131
- #HTMLReporter .skippedAlert:hover {
132
- text-decoration: none;
133
- color: white;
134
- text-decoration: underline;
135
- }
136
- /* line 176, _HTMLReporter.scss */
137
- #HTMLReporter .passingAlert {
138
- background-color: #a6b779;
139
- }
140
- /* line 179, _HTMLReporter.scss */
141
- #HTMLReporter .passingAlert:first-child {
142
- background-color: #5e7d00;
143
- }
144
- /* line 184, _HTMLReporter.scss */
145
- #HTMLReporter .failingAlert {
146
- background-color: #cf867e;
147
- }
148
- /* line 187, _HTMLReporter.scss */
149
- #HTMLReporter .failingAlert:first-child {
150
- background-color: #b03911;
151
- }
152
- /* line 200, _HTMLReporter.scss */
153
- #HTMLReporter .results {
154
- margin-top: 14px;
155
- }
156
- /* line 208, _HTMLReporter.scss */
157
- #HTMLReporter #details {
158
- display: none;
159
- }
160
- /* line 213, _HTMLReporter.scss */
161
- #HTMLReporter .resultsMenu,
162
- #HTMLReporter .resultsMenu a {
163
- background-color: #fff;
164
- color: #333333;
165
- }
166
- /* line 220, _HTMLReporter.scss */
167
- #HTMLReporter.showDetails .summaryMenuItem {
168
- font-weight: normal;
169
- text-decoration: inherit;
170
- }
171
- /* line 224, _HTMLReporter.scss */
172
- #HTMLReporter.showDetails .summaryMenuItem:hover {
173
- text-decoration: underline;
174
- }
175
- /* line 229, _HTMLReporter.scss */
176
- #HTMLReporter.showDetails .detailsMenuItem {
177
- font-weight: bold;
178
- text-decoration: underline;
179
- }
180
- /* line 234, _HTMLReporter.scss */
181
- #HTMLReporter.showDetails .summary {
182
- display: none;
183
- }
184
- /* line 238, _HTMLReporter.scss */
185
- #HTMLReporter.showDetails #details {
186
- display: block;
187
- }
188
- /* line 243, _HTMLReporter.scss */
189
- #HTMLReporter .summaryMenuItem {
190
- font-weight: bold;
191
- text-decoration: underline;
192
- }
193
- /* line 253, _HTMLReporter.scss */
194
- #HTMLReporter .summary {
195
- margin-top: 14px;
196
- }
197
- /* line 256, _HTMLReporter.scss */
198
- #HTMLReporter .summary .suite .suite, #HTMLReporter .summary .specSummary {
199
- margin-left: 14px;
200
- }
201
- /* line 261, _HTMLReporter.scss */
202
- #HTMLReporter .summary .specSummary.passed a {
203
- color: #5e7d00;
204
- }
205
- /* line 264, _HTMLReporter.scss */
206
- #HTMLReporter .summary .specSummary.failed a {
207
- color: #b03911;
208
- }
209
- /* line 270, _HTMLReporter.scss */
210
- #HTMLReporter .description + .suite {
211
- margin-top: 0;
212
- }
213
- /* line 274, _HTMLReporter.scss */
214
- #HTMLReporter .suite {
215
- margin-top: 14px;
216
- }
217
- /* line 277, _HTMLReporter.scss */
218
- #HTMLReporter .suite a {
219
- color: #333333;
220
- }
221
- /* line 288, _HTMLReporter.scss */
222
- #HTMLReporter #details .specDetail {
223
- margin-bottom: 28px;
224
- }
225
- /* line 291, _HTMLReporter.scss */
226
- #HTMLReporter #details .specDetail .description {
227
- display: block;
228
- color: white;
229
- background-color: #b03911;
230
- }
231
- /* line 303, _HTMLReporter.scss */
232
- #HTMLReporter .resultMessage {
233
- padding-top: 14px;
234
- color: #333333;
235
- }
236
- /* line 309, _HTMLReporter.scss */
237
- #HTMLReporter .resultMessage span.result {
238
- display: block;
239
- }
240
- /* line 313, _HTMLReporter.scss */
241
- #HTMLReporter .stackTrace {
242
- margin: 5px 0 0 0;
243
- max-height: 224px;
244
- overflow: auto;
245
- line-height: 18px;
246
- color: #666666;
247
- border: 1px solid #ddd;
248
- background: white;
249
- white-space: pre;
250
- }
3
+ #HTMLReporter { font-size: 11px; font-family: Monaco, "Lucida Console", monospace; line-height: 14px; color: #333333; }
4
+ #HTMLReporter a { text-decoration: none; }
5
+ #HTMLReporter a:hover { text-decoration: underline; }
6
+ #HTMLReporter p, #HTMLReporter h1, #HTMLReporter h2, #HTMLReporter h3, #HTMLReporter h4, #HTMLReporter h5, #HTMLReporter h6 { margin: 0; line-height: 14px; }
7
+ #HTMLReporter .banner, #HTMLReporter .symbolSummary, #HTMLReporter .summary, #HTMLReporter .resultMessage, #HTMLReporter .specDetail .description, #HTMLReporter .alert .bar, #HTMLReporter .stackTrace { padding-left: 9px; padding-right: 9px; }
8
+ #HTMLReporter #jasmine_content { position: fixed; right: 100%; }
9
+ #HTMLReporter .version { color: #aaaaaa; }
10
+ #HTMLReporter .banner { margin-top: 14px; }
11
+ #HTMLReporter .duration { color: #aaaaaa; float: right; }
12
+ #HTMLReporter .symbolSummary { overflow: hidden; *zoom: 1; margin: 14px 0; }
13
+ #HTMLReporter .symbolSummary li { display: block; float: left; height: 7px; width: 14px; margin-bottom: 7px; font-size: 16px; }
14
+ #HTMLReporter .symbolSummary li.passed { font-size: 14px; }
15
+ #HTMLReporter .symbolSummary li.passed:before { color: #5e7d00; content: "\02022"; }
16
+ #HTMLReporter .symbolSummary li.failed { line-height: 9px; }
17
+ #HTMLReporter .symbolSummary li.failed:before { color: #b03911; content: "x"; font-weight: bold; margin-left: -1px; }
18
+ #HTMLReporter .symbolSummary li.skipped { font-size: 14px; }
19
+ #HTMLReporter .symbolSummary li.skipped:before { color: #bababa; content: "\02022"; }
20
+ #HTMLReporter .symbolSummary li.pending { line-height: 11px; }
21
+ #HTMLReporter .symbolSummary li.pending:before { color: #aaaaaa; content: "-"; }
22
+ #HTMLReporter .bar { line-height: 28px; font-size: 14px; display: block; color: #eee; }
23
+ #HTMLReporter .runningAlert { background-color: #666666; }
24
+ #HTMLReporter .skippedAlert { background-color: #aaaaaa; }
25
+ #HTMLReporter .skippedAlert:first-child { background-color: #333333; }
26
+ #HTMLReporter .skippedAlert:hover { text-decoration: none; color: white; text-decoration: underline; }
27
+ #HTMLReporter .passingAlert { background-color: #a6b779; }
28
+ #HTMLReporter .passingAlert:first-child { background-color: #5e7d00; }
29
+ #HTMLReporter .failingAlert { background-color: #cf867e; }
30
+ #HTMLReporter .failingAlert:first-child { background-color: #b03911; }
31
+ #HTMLReporter .results { margin-top: 14px; }
32
+ #HTMLReporter #details { display: none; }
33
+ #HTMLReporter .resultsMenu, #HTMLReporter .resultsMenu a { background-color: #fff; color: #333333; }
34
+ #HTMLReporter.showDetails .summaryMenuItem { font-weight: normal; text-decoration: inherit; }
35
+ #HTMLReporter.showDetails .summaryMenuItem:hover { text-decoration: underline; }
36
+ #HTMLReporter.showDetails .detailsMenuItem { font-weight: bold; text-decoration: underline; }
37
+ #HTMLReporter.showDetails .summary { display: none; }
38
+ #HTMLReporter.showDetails #details { display: block; }
39
+ #HTMLReporter .summaryMenuItem { font-weight: bold; text-decoration: underline; }
40
+ #HTMLReporter .summary { margin-top: 14px; }
41
+ #HTMLReporter .summary .suite .suite, #HTMLReporter .summary .specSummary { margin-left: 14px; }
42
+ #HTMLReporter .summary .specSummary.passed a { color: #5e7d00; }
43
+ #HTMLReporter .summary .specSummary.failed a { color: #b03911; }
44
+ #HTMLReporter .description + .suite { margin-top: 0; }
45
+ #HTMLReporter .suite { margin-top: 14px; }
46
+ #HTMLReporter .suite a { color: #333333; }
47
+ #HTMLReporter #details .specDetail { margin-bottom: 28px; }
48
+ #HTMLReporter #details .specDetail .description { display: block; color: white; background-color: #b03911; }
49
+ #HTMLReporter .resultMessage { padding-top: 14px; color: #333333; }
50
+ #HTMLReporter .resultMessage span.result { display: block; }
51
+ #HTMLReporter .stackTrace { margin: 5px 0 0 0; max-height: 224px; overflow: auto; line-height: 18px; color: #666666; border: 1px solid #ddd; background: white; white-space: pre; }
251
52
 
252
- /* line 2, _TrivialReporter.scss */
253
- #TrivialReporter {
254
- padding: 8px 13px;
255
- position: absolute;
256
- top: 0;
257
- bottom: 0;
258
- left: 0;
259
- right: 0;
260
- overflow-y: scroll;
261
- background-color: white;
262
- font-family: "Helvetica Neue Light", "Lucida Grande", "Calibri", "Arial", sans-serif;
263
- /*.resultMessage {*/
264
- /*white-space: pre;*/
265
- /*}*/
266
- }
267
- /* line 14, _TrivialReporter.scss */
268
- #TrivialReporter a:visited, #TrivialReporter a {
269
- color: #303;
270
- }
271
- /* line 18, _TrivialReporter.scss */
272
- #TrivialReporter a:hover, #TrivialReporter a:active {
273
- color: blue;
274
- }
275
- /* line 22, _TrivialReporter.scss */
276
- #TrivialReporter .run_spec {
277
- float: right;
278
- padding-right: 5px;
279
- font-size: .8em;
280
- text-decoration: none;
281
- }
282
- /* line 29, _TrivialReporter.scss */
283
- #TrivialReporter .banner {
284
- color: #303;
285
- background-color: #fef;
286
- padding: 5px;
287
- }
288
- /* line 35, _TrivialReporter.scss */
289
- #TrivialReporter .logo {
290
- float: left;
291
- font-size: 1.1em;
292
- padding-left: 5px;
293
- }
294
- /* line 41, _TrivialReporter.scss */
295
- #TrivialReporter .logo .version {
296
- font-size: .6em;
297
- padding-left: 1em;
298
- }
299
- /* line 46, _TrivialReporter.scss */
300
- #TrivialReporter .runner.running {
301
- background-color: yellow;
302
- }
303
- /* line 51, _TrivialReporter.scss */
304
- #TrivialReporter .options {
305
- text-align: right;
306
- font-size: .8em;
307
- }
308
- /* line 59, _TrivialReporter.scss */
309
- #TrivialReporter .suite {
310
- border: 1px outset gray;
311
- margin: 5px 0;
312
- padding-left: 1em;
313
- }
314
- /* line 65, _TrivialReporter.scss */
315
- #TrivialReporter .suite .suite {
316
- margin: 5px;
317
- }
318
- /* line 69, _TrivialReporter.scss */
319
- #TrivialReporter .suite.passed {
320
- background-color: #dfd;
321
- }
322
- /* line 73, _TrivialReporter.scss */
323
- #TrivialReporter .suite.failed {
324
- background-color: #fdd;
325
- }
326
- /* line 77, _TrivialReporter.scss */
327
- #TrivialReporter .spec {
328
- margin: 5px;
329
- padding-left: 1em;
330
- clear: both;
331
- }
332
- /* line 83, _TrivialReporter.scss */
333
- #TrivialReporter .spec.failed, #TrivialReporter .spec.passed, #TrivialReporter .spec.skipped {
334
- padding-bottom: 5px;
335
- border: 1px solid gray;
336
- }
337
- /* line 88, _TrivialReporter.scss */
338
- #TrivialReporter .spec.failed {
339
- background-color: #fbb;
340
- border-color: red;
341
- }
342
- /* line 93, _TrivialReporter.scss */
343
- #TrivialReporter .spec.passed {
344
- background-color: #bfb;
345
- border-color: green;
346
- }
347
- /* line 98, _TrivialReporter.scss */
348
- #TrivialReporter .spec.skipped {
349
- background-color: #bbb;
350
- }
351
- /* line 102, _TrivialReporter.scss */
352
- #TrivialReporter .messages {
353
- border-left: 1px dashed gray;
354
- padding-left: 1em;
355
- padding-right: 1em;
356
- }
357
- /* line 108, _TrivialReporter.scss */
358
- #TrivialReporter .passed {
359
- background-color: #cfc;
360
- display: none;
361
- }
362
- /* line 113, _TrivialReporter.scss */
363
- #TrivialReporter .failed {
364
- background-color: #fbb;
365
- }
366
- /* line 117, _TrivialReporter.scss */
367
- #TrivialReporter .skipped {
368
- color: #777;
369
- background-color: #eee;
370
- display: none;
371
- }
372
- /* line 128, _TrivialReporter.scss */
373
- #TrivialReporter .resultMessage span.result {
374
- display: block;
375
- line-height: 2em;
376
- color: black;
377
- }
378
- /* line 134, _TrivialReporter.scss */
379
- #TrivialReporter .resultMessage .mismatch {
380
- color: black;
381
- }
382
- /* line 138, _TrivialReporter.scss */
383
- #TrivialReporter .stackTrace {
384
- white-space: pre;
385
- font-size: .8em;
386
- margin-left: 10px;
387
- max-height: 5em;
388
- overflow: auto;
389
- border: 1px inset red;
390
- padding: 1em;
391
- background: #eef;
392
- }
393
- /* line 149, _TrivialReporter.scss */
394
- #TrivialReporter .finished-at {
395
- padding-left: 1em;
396
- font-size: .6em;
397
- }
398
- /* line 155, _TrivialReporter.scss */
399
- #TrivialReporter.show-passed .passed, #TrivialReporter.show-skipped .skipped {
400
- display: block;
401
- }
402
- /* line 160, _TrivialReporter.scss */
403
- #TrivialReporter #jasmine_content {
404
- position: fixed;
405
- right: 100%;
406
- }
407
- /* line 165, _TrivialReporter.scss */
408
- #TrivialReporter .runner {
409
- border: 1px solid gray;
410
- display: block;
411
- margin: 5px 0;
412
- padding: 2px 0 2px 10px;
413
- }
53
+ #TrivialReporter { padding: 8px 13px; position: absolute; top: 0; bottom: 0; left: 0; right: 0; overflow-y: scroll; background-color: white; font-family: "Helvetica Neue Light", "Lucida Grande", "Calibri", "Arial", sans-serif; /*.resultMessage {*/ /*white-space: pre;*/ /*}*/ }
54
+ #TrivialReporter a:visited, #TrivialReporter a { color: #303; }
55
+ #TrivialReporter a:hover, #TrivialReporter a:active { color: blue; }
56
+ #TrivialReporter .run_spec { float: right; padding-right: 5px; font-size: .8em; text-decoration: none; }
57
+ #TrivialReporter .banner { color: #303; background-color: #fef; padding: 5px; }
58
+ #TrivialReporter .logo { float: left; font-size: 1.1em; padding-left: 5px; }
59
+ #TrivialReporter .logo .version { font-size: .6em; padding-left: 1em; }
60
+ #TrivialReporter .runner.running { background-color: yellow; }
61
+ #TrivialReporter .options { text-align: right; font-size: .8em; }
62
+ #TrivialReporter .suite { border: 1px outset gray; margin: 5px 0; padding-left: 1em; }
63
+ #TrivialReporter .suite .suite { margin: 5px; }
64
+ #TrivialReporter .suite.passed { background-color: #dfd; }
65
+ #TrivialReporter .suite.failed { background-color: #fdd; }
66
+ #TrivialReporter .spec { margin: 5px; padding-left: 1em; clear: both; }
67
+ #TrivialReporter .spec.failed, #TrivialReporter .spec.passed, #TrivialReporter .spec.skipped { padding-bottom: 5px; border: 1px solid gray; }
68
+ #TrivialReporter .spec.failed { background-color: #fbb; border-color: red; }
69
+ #TrivialReporter .spec.passed { background-color: #bfb; border-color: green; }
70
+ #TrivialReporter .spec.skipped { background-color: #bbb; }
71
+ #TrivialReporter .messages { border-left: 1px dashed gray; padding-left: 1em; padding-right: 1em; }
72
+ #TrivialReporter .passed { background-color: #cfc; display: none; }
73
+ #TrivialReporter .failed { background-color: #fbb; }
74
+ #TrivialReporter .skipped { color: #777; background-color: #eee; display: none; }
75
+ #TrivialReporter .resultMessage span.result { display: block; line-height: 2em; color: black; }
76
+ #TrivialReporter .resultMessage .mismatch { color: black; }
77
+ #TrivialReporter .stackTrace { white-space: pre; font-size: .8em; margin-left: 10px; max-height: 5em; overflow: auto; border: 1px inset red; padding: 1em; background: #eef; }
78
+ #TrivialReporter .finished-at { padding-left: 1em; font-size: .6em; }
79
+ #TrivialReporter.show-passed .passed, #TrivialReporter.show-skipped .skipped { display: block; }
80
+ #TrivialReporter #jasmine_content { position: fixed; right: 100%; }
81
+ #TrivialReporter .runner { border: 1px solid gray; display: block; margin: 5px 0; padding: 2px 0 2px 10px; }