resin 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/README.markdown +52 -0
  2. data/amber/css/amber.css +519 -0
  3. data/amber/css/documentation.css +84 -0
  4. data/amber/css/profstef.css +75 -0
  5. data/amber/css/style.css +313 -0
  6. data/amber/images/amber.png +0 -0
  7. data/amber/images/amber_small.png +0 -0
  8. data/amber/images/off.png +0 -0
  9. data/amber/images/offHover.png +0 -0
  10. data/amber/images/presentation.png +0 -0
  11. data/amber/images/profstef.png +0 -0
  12. data/amber/images/sprite.png +0 -0
  13. data/amber/images/tinylogo.png +0 -0
  14. data/amber/images/twitterwall.png +0 -0
  15. data/amber/js/Additional-Examples.deploy.js +15 -0
  16. data/amber/js/Additional-Examples.js +21 -0
  17. data/amber/js/Benchfib.deploy.js +132 -0
  18. data/amber/js/Benchfib.js +167 -0
  19. data/amber/js/Canvas.deploy.js +1304 -0
  20. data/amber/js/Canvas.js +1885 -0
  21. data/amber/js/Compiler.deploy.js +1871 -0
  22. data/amber/js/Compiler.js +2616 -0
  23. data/amber/js/Documentation.deploy.js +961 -0
  24. data/amber/js/Documentation.js +1376 -0
  25. data/amber/js/Examples.deploy.js +53 -0
  26. data/amber/js/Examples.js +73 -0
  27. data/amber/js/IDE.deploy.js +3468 -0
  28. data/amber/js/IDE.js +4883 -0
  29. data/amber/js/Kernel-Announcements.deploy.js +107 -0
  30. data/amber/js/Kernel-Announcements.js +152 -0
  31. data/amber/js/Kernel-Classes.deploy.js +675 -0
  32. data/amber/js/Kernel-Classes.js +956 -0
  33. data/amber/js/Kernel-Collections.deploy.js +3273 -0
  34. data/amber/js/Kernel-Collections.js +4644 -0
  35. data/amber/js/Kernel-Exceptions.deploy.js +244 -0
  36. data/amber/js/Kernel-Exceptions.js +349 -0
  37. data/amber/js/Kernel-Methods.deploy.js +510 -0
  38. data/amber/js/Kernel-Methods.js +739 -0
  39. data/amber/js/Kernel-Objects.deploy.js +2698 -0
  40. data/amber/js/Kernel-Objects.js +3858 -0
  41. data/amber/js/Kernel-Tests.deploy.js +1419 -0
  42. data/amber/js/Kernel-Tests.js +1929 -0
  43. data/amber/js/Kernel-Transcript.deploy.js +142 -0
  44. data/amber/js/Kernel-Transcript.js +202 -0
  45. data/amber/js/SUnit.deploy.js +351 -0
  46. data/amber/js/SUnit.js +501 -0
  47. data/amber/js/amber.js +250 -0
  48. data/amber/js/boot.js +587 -0
  49. data/amber/js/compat.js +22 -0
  50. data/amber/js/init.js +8 -0
  51. data/amber/js/lib/CodeMirror/LICENSE +19 -0
  52. data/amber/js/lib/CodeMirror/amber.css +21 -0
  53. data/amber/js/lib/CodeMirror/codemirror.css +67 -0
  54. data/amber/js/lib/CodeMirror/codemirror.js +2144 -0
  55. data/amber/js/lib/CodeMirror/smalltalk.js +134 -0
  56. data/amber/js/lib/jQuery/jquery-1.4.4.min.js +167 -0
  57. data/amber/js/lib/jQuery/jquery-1.6.4.min.js +4 -0
  58. data/amber/js/lib/jQuery/jquery-ui-1.8.16.custom.min.js +791 -0
  59. data/amber/js/lib/jQuery/jquery.textarea.js +267 -0
  60. data/amber/js/lib/peg-0.6.2.min.js +2 -0
  61. data/amber/js/lib/showdown.js +419 -0
  62. data/amber/js/parser.js +4005 -0
  63. data/amber/js/parser.pegjs +220 -0
  64. data/amber/st/Benchfib.st +124 -0
  65. data/amber/st/Canvas.st +556 -0
  66. data/amber/st/Compiler.st +1425 -0
  67. data/amber/st/Documentation.st +758 -0
  68. data/amber/st/Examples.st +38 -0
  69. data/amber/st/IDE.st +2336 -0
  70. data/amber/st/Kernel-Announcements.st +61 -0
  71. data/amber/st/Kernel-Classes.st +403 -0
  72. data/amber/st/Kernel-Collections.st +1673 -0
  73. data/amber/st/Kernel-Exceptions.st +124 -0
  74. data/amber/st/Kernel-Methods.st +287 -0
  75. data/amber/st/Kernel-Objects.st +1489 -0
  76. data/amber/st/Kernel-Tests.st +892 -0
  77. data/amber/st/Kernel-Transcript.st +70 -0
  78. data/amber/st/SUnit.st +172 -0
  79. data/bin/runresin +12 -0
  80. data/lib/resin.rb +0 -0
  81. data/lib/resin/app/app.rb +121 -0
  82. data/lib/resin/app/views/index.haml +10 -0
  83. metadata +216 -0
@@ -0,0 +1,501 @@
1
+ smalltalk.addPackage('SUnit', {});
2
+ smalltalk.addClass('TestCase', smalltalk.Object, ['testSelector'], 'SUnit');
3
+ smalltalk.addMethod(
4
+ unescape('_setTestSelector_'),
5
+ smalltalk.method({
6
+ selector: unescape('setTestSelector%3A'),
7
+ category: 'accessing',
8
+ fn: function (aSelector){
9
+ var self=this;
10
+ (self['@testSelector']=aSelector);
11
+ return self;},
12
+ args: ["aSelector"],
13
+ source: unescape('setTestSelector%3A%20aSelector%0A%09testSelector%20%3A%3D%20aSelector'),
14
+ messageSends: [],
15
+ referencedClasses: []
16
+ }),
17
+ smalltalk.TestCase);
18
+
19
+ smalltalk.addMethod(
20
+ unescape('_selector'),
21
+ smalltalk.method({
22
+ selector: unescape('selector'),
23
+ category: 'accessing',
24
+ fn: function (){
25
+ var self=this;
26
+ return self['@testSelector'];
27
+ return self;},
28
+ args: [],
29
+ source: unescape('selector%0A%09%5EtestSelector'),
30
+ messageSends: [],
31
+ referencedClasses: []
32
+ }),
33
+ smalltalk.TestCase);
34
+
35
+ smalltalk.addMethod(
36
+ unescape('_signalFailure_'),
37
+ smalltalk.method({
38
+ selector: unescape('signalFailure%3A'),
39
+ category: 'private',
40
+ fn: function (aString){
41
+ var self=this;
42
+ (function($rec){smalltalk.send($rec, "_messageText_", [aString]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send((smalltalk.TestFailure || TestFailure), "_new", []));
43
+ return self;},
44
+ args: ["aString"],
45
+ source: unescape('signalFailure%3A%20aString%0A%09TestFailure%20new%0A%09%09messageText%3A%20aString%3B%0A%09%09signal'),
46
+ messageSends: ["messageText:", "signal", "new"],
47
+ referencedClasses: ["TestFailure"]
48
+ }),
49
+ smalltalk.TestCase);
50
+
51
+ smalltalk.addMethod(
52
+ unescape('_setUp'),
53
+ smalltalk.method({
54
+ selector: unescape('setUp'),
55
+ category: 'running',
56
+ fn: function (){
57
+ var self=this;
58
+
59
+ return self;},
60
+ args: [],
61
+ source: unescape('setUp'),
62
+ messageSends: [],
63
+ referencedClasses: []
64
+ }),
65
+ smalltalk.TestCase);
66
+
67
+ smalltalk.addMethod(
68
+ unescape('_tearDown'),
69
+ smalltalk.method({
70
+ selector: unescape('tearDown'),
71
+ category: 'running',
72
+ fn: function (){
73
+ var self=this;
74
+
75
+ return self;},
76
+ args: [],
77
+ source: unescape('tearDown'),
78
+ messageSends: [],
79
+ referencedClasses: []
80
+ }),
81
+ smalltalk.TestCase);
82
+
83
+ smalltalk.addMethod(
84
+ unescape('_runCaseFor_'),
85
+ smalltalk.method({
86
+ selector: unescape('runCaseFor%3A'),
87
+ category: 'running',
88
+ fn: function (aTestResult){
89
+ var self=this;
90
+ smalltalk.send(self, "_setUp", []);
91
+ smalltalk.send(aTestResult, "_increaseRuns", []);
92
+ smalltalk.send(self, "_performTestFor_", [aTestResult]);
93
+ smalltalk.send(self, "_tearDown", []);
94
+ return self;},
95
+ args: ["aTestResult"],
96
+ source: unescape('runCaseFor%3A%20aTestResult%0A%09self%20setUp.%0A%09aTestResult%20increaseRuns.%0A%09self%20performTestFor%3A%20aTestResult.%0A%09self%20tearDown'),
97
+ messageSends: ["setUp", "increaseRuns", "performTestFor:", "tearDown"],
98
+ referencedClasses: []
99
+ }),
100
+ smalltalk.TestCase);
101
+
102
+ smalltalk.addMethod(
103
+ unescape('_performTestFor_'),
104
+ smalltalk.method({
105
+ selector: unescape('performTestFor%3A'),
106
+ category: 'running',
107
+ fn: function (aResult){
108
+ var self=this;
109
+ smalltalk.send((function(){return smalltalk.send((function(){return smalltalk.send(self, "_perform_", [smalltalk.send(self, "_selector", [])]);}), "_on_do_", [(smalltalk.TestFailure || TestFailure), (function(ex){return smalltalk.send(aResult, "_addFailure_", [self]);})]);}), "_on_do_", [(smalltalk.Error || Error), (function(ex){return smalltalk.send(aResult, "_addError_", [self]);})]);
110
+ return self;},
111
+ args: ["aResult"],
112
+ source: unescape('performTestFor%3A%20aResult%0A%09%5B%5Bself%20perform%3A%20self%20selector%5D%0A%09%09on%3A%20TestFailure%20do%3A%20%5B%3Aex%20%7C%20aResult%20addFailure%3A%20self%5D%5D%0A%09%09on%3A%20Error%20do%3A%20%5B%3Aex%20%7C%20aResult%20addError%3A%20self%5D'),
113
+ messageSends: ["on:do:", "perform:", "selector", "addFailure:", "addError:"],
114
+ referencedClasses: ["TestFailure", "Error"]
115
+ }),
116
+ smalltalk.TestCase);
117
+
118
+ smalltalk.addMethod(
119
+ unescape('_assert_'),
120
+ smalltalk.method({
121
+ selector: unescape('assert%3A'),
122
+ category: 'testing',
123
+ fn: function (aBoolean){
124
+ var self=this;
125
+ smalltalk.send(self, "_assert_description_", [aBoolean, "Assertion failed"]);
126
+ return self;},
127
+ args: ["aBoolean"],
128
+ source: unescape('assert%3A%20aBoolean%0A%09self%20assert%3A%20aBoolean%20description%3A%20%27Assertion%20failed%27'),
129
+ messageSends: ["assert:description:"],
130
+ referencedClasses: []
131
+ }),
132
+ smalltalk.TestCase);
133
+
134
+ smalltalk.addMethod(
135
+ unescape('_deny_'),
136
+ smalltalk.method({
137
+ selector: unescape('deny%3A'),
138
+ category: 'testing',
139
+ fn: function (aBoolean){
140
+ var self=this;
141
+ smalltalk.send(self, "_assert_", [smalltalk.send(aBoolean, "_not", [])]);
142
+ return self;},
143
+ args: ["aBoolean"],
144
+ source: unescape('deny%3A%20aBoolean%0A%09self%20assert%3A%20aBoolean%20not'),
145
+ messageSends: ["assert:", "not"],
146
+ referencedClasses: []
147
+ }),
148
+ smalltalk.TestCase);
149
+
150
+ smalltalk.addMethod(
151
+ unescape('_assert_equals_'),
152
+ smalltalk.method({
153
+ selector: unescape('assert%3Aequals%3A'),
154
+ category: 'testing',
155
+ fn: function (expected, actual){
156
+ var self=this;
157
+ return smalltalk.send(self, "_assert_description_", [smalltalk.send(expected, "__eq", [actual]), smalltalk.send(smalltalk.send(smalltalk.send("Expected: ", "__comma", [smalltalk.send(expected, "_asString", [])]), "__comma", [" but was: "]), "__comma", [smalltalk.send(actual, "_asString", [])])]);
158
+ return self;},
159
+ args: ["expected", "actual"],
160
+ source: unescape('assert%3A%20expected%20equals%3A%20actual%0A%09%5E%20self%20assert%3A%20%28expected%20%3D%20actual%29%20description%3A%20%27Expected%3A%20%27%2C%20expected%20asString%2C%20%27%20but%20was%3A%20%27%2C%20actual%20asString'),
161
+ messageSends: ["assert:description:", unescape("%3D"), unescape("%2C"), "asString"],
162
+ referencedClasses: []
163
+ }),
164
+ smalltalk.TestCase);
165
+
166
+ smalltalk.addMethod(
167
+ unescape('_assert_description_'),
168
+ smalltalk.method({
169
+ selector: unescape('assert%3Adescription%3A'),
170
+ category: 'testing',
171
+ fn: function (aBoolean, aString){
172
+ var self=this;
173
+ ((($receiver = aBoolean).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_signalFailure_", [aString]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_signalFailure_", [aString]);})]));
174
+ return self;},
175
+ args: ["aBoolean", "aString"],
176
+ source: unescape('assert%3A%20aBoolean%20description%3A%20aString%0A%09aBoolean%20ifFalse%3A%20%5Bself%20signalFailure%3A%20aString%5D'),
177
+ messageSends: ["ifFalse:", "signalFailure:"],
178
+ referencedClasses: []
179
+ }),
180
+ smalltalk.TestCase);
181
+
182
+ smalltalk.addMethod(
183
+ unescape('_should_'),
184
+ smalltalk.method({
185
+ selector: unescape('should%3A'),
186
+ category: 'testing',
187
+ fn: function (aBlock){
188
+ var self=this;
189
+ smalltalk.send(self, "_assert_", [smalltalk.send(aBlock, "_value", [])]);
190
+ return self;},
191
+ args: ["aBlock"],
192
+ source: unescape('should%3A%20aBlock%0A%09self%20assert%3A%20aBlock%20value'),
193
+ messageSends: ["assert:", "value"],
194
+ referencedClasses: []
195
+ }),
196
+ smalltalk.TestCase);
197
+
198
+ smalltalk.addMethod(
199
+ unescape('_should_raise_'),
200
+ smalltalk.method({
201
+ selector: unescape('should%3Araise%3A'),
202
+ category: 'testing',
203
+ fn: function (aBlock, anExceptionClass){
204
+ var self=this;
205
+ smalltalk.send(self, "_assert_", [smalltalk.send((function(){smalltalk.send(aBlock, "_value", []);return false;}), "_on_do_", [anExceptionClass, (function(ex){return true;})])]);
206
+ return self;},
207
+ args: ["aBlock", "anExceptionClass"],
208
+ source: unescape('should%3A%20aBlock%20raise%3A%20anExceptionClass%0A%09self%20assert%3A%20%28%5BaBlock%20value.%20false%5D%20%0A%09%09on%3A%20anExceptionClass%20%0A%09%09do%3A%20%5B%3Aex%20%7C%20true%5D%29'),
209
+ messageSends: ["assert:", "on:do:", "value"],
210
+ referencedClasses: []
211
+ }),
212
+ smalltalk.TestCase);
213
+
214
+
215
+ smalltalk.addMethod(
216
+ unescape('_testSelectors'),
217
+ smalltalk.method({
218
+ selector: unescape('testSelectors'),
219
+ category: 'accessing',
220
+ fn: function (){
221
+ var self=this;
222
+ return smalltalk.send(smalltalk.send(smalltalk.send(self, "_methodDictionary", []), "_keys", []), "_select_", [(function(each){return smalltalk.send(each, "_match_", [unescape("%5Etest")]);})]);
223
+ return self;},
224
+ args: [],
225
+ source: unescape('testSelectors%0A%09%5Eself%20methodDictionary%20keys%20select%3A%20%5B%3Aeach%20%7C%20each%20match%3A%20%27%5Etest%27%5D'),
226
+ messageSends: ["select:", "keys", "methodDictionary", "match:"],
227
+ referencedClasses: []
228
+ }),
229
+ smalltalk.TestCase.klass);
230
+
231
+ smalltalk.addMethod(
232
+ unescape('_selector_'),
233
+ smalltalk.method({
234
+ selector: unescape('selector%3A'),
235
+ category: 'accessing',
236
+ fn: function (aSelector){
237
+ var self=this;
238
+ return (function($rec){smalltalk.send($rec, "_setTestSelector_", [aSelector]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
239
+ return self;},
240
+ args: ["aSelector"],
241
+ source: unescape('selector%3A%20aSelector%0A%09%5Eself%20new%0A%09%09setTestSelector%3A%20aSelector%3B%0A%09%09yourself'),
242
+ messageSends: ["setTestSelector:", "yourself", "new"],
243
+ referencedClasses: []
244
+ }),
245
+ smalltalk.TestCase.klass);
246
+
247
+ smalltalk.addMethod(
248
+ unescape('_lookupHierarchyRoot'),
249
+ smalltalk.method({
250
+ selector: unescape('lookupHierarchyRoot'),
251
+ category: 'accessing',
252
+ fn: function (){
253
+ var self=this;
254
+ return (smalltalk.TestCase || TestCase);
255
+ return self;},
256
+ args: [],
257
+ source: unescape('lookupHierarchyRoot%0A%09%5ETestCase'),
258
+ messageSends: [],
259
+ referencedClasses: ["TestCase"]
260
+ }),
261
+ smalltalk.TestCase.klass);
262
+
263
+ smalltalk.addMethod(
264
+ unescape('_allTestSelectors'),
265
+ smalltalk.method({
266
+ selector: unescape('allTestSelectors'),
267
+ category: 'accessing',
268
+ fn: function (){
269
+ var self=this;
270
+ var selectors=nil;
271
+ (selectors=smalltalk.send(self, "_testSelectors", []));
272
+ ((($receiver = smalltalk.send(self, "_shouldInheritSelectors", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(selectors, "_addAll_", [smalltalk.send(smalltalk.send(self, "_superclass", []), "_allTestSelectors", [])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(selectors, "_addAll_", [smalltalk.send(smalltalk.send(self, "_superclass", []), "_allTestSelectors", [])]);})]));
273
+ return selectors;
274
+ return self;},
275
+ args: [],
276
+ source: unescape('allTestSelectors%0A%09%7C%20selectors%20%7C%0A%09selectors%20%3A%3D%20self%20testSelectors.%0A%09self%20shouldInheritSelectors%20ifTrue%3A%20%5B%0A%09%09selectors%20addAll%3A%20self%20superclass%20allTestSelectors%5D.%0A%09%5Eselectors'),
277
+ messageSends: ["testSelectors", "ifTrue:", "shouldInheritSelectors", "addAll:", "allTestSelectors", "superclass"],
278
+ referencedClasses: []
279
+ }),
280
+ smalltalk.TestCase.klass);
281
+
282
+ smalltalk.addMethod(
283
+ unescape('_buildSuite'),
284
+ smalltalk.method({
285
+ selector: unescape('buildSuite'),
286
+ category: 'accessing',
287
+ fn: function (){
288
+ var self=this;
289
+ return smalltalk.send(smalltalk.send(self, "_allTestSelectors", []), "_collect_", [(function(each){return smalltalk.send(self, "_selector_", [each]);})]);
290
+ return self;},
291
+ args: [],
292
+ source: unescape('buildSuite%0A%09%5Eself%20allTestSelectors%20collect%3A%20%5B%3Aeach%20%7C%20self%20selector%3A%20each%5D'),
293
+ messageSends: ["collect:", "allTestSelectors", "selector:"],
294
+ referencedClasses: []
295
+ }),
296
+ smalltalk.TestCase.klass);
297
+
298
+ smalltalk.addMethod(
299
+ unescape('_shouldInheritSelectors'),
300
+ smalltalk.method({
301
+ selector: unescape('shouldInheritSelectors'),
302
+ category: 'testing',
303
+ fn: function (){
304
+ var self=this;
305
+ return smalltalk.send(self, "_~_eq", [smalltalk.send(self, "_lookupHierarchyRoot", [])]);
306
+ return self;},
307
+ args: [],
308
+ source: unescape('shouldInheritSelectors%0A%09%5Eself%20%7E%3D%20self%20lookupHierarchyRoot'),
309
+ messageSends: [unescape("%7E%3D"), "lookupHierarchyRoot"],
310
+ referencedClasses: []
311
+ }),
312
+ smalltalk.TestCase.klass);
313
+
314
+
315
+ smalltalk.addClass('TestFailure', smalltalk.Error, [], 'SUnit');
316
+
317
+
318
+ smalltalk.addClass('TestResult', smalltalk.Object, ['timestamp', 'runs', 'errors', 'failures', 'total'], 'SUnit');
319
+ smalltalk.addMethod(
320
+ unescape('_timestamp'),
321
+ smalltalk.method({
322
+ selector: unescape('timestamp'),
323
+ category: 'accessing',
324
+ fn: function (){
325
+ var self=this;
326
+ return self['@timestamp'];
327
+ return self;},
328
+ args: [],
329
+ source: unescape('timestamp%0A%09%5Etimestamp'),
330
+ messageSends: [],
331
+ referencedClasses: []
332
+ }),
333
+ smalltalk.TestResult);
334
+
335
+ smalltalk.addMethod(
336
+ unescape('_errors'),
337
+ smalltalk.method({
338
+ selector: unescape('errors'),
339
+ category: 'accessing',
340
+ fn: function (){
341
+ var self=this;
342
+ return self['@errors'];
343
+ return self;},
344
+ args: [],
345
+ source: unescape('errors%0A%09%5Eerrors'),
346
+ messageSends: [],
347
+ referencedClasses: []
348
+ }),
349
+ smalltalk.TestResult);
350
+
351
+ smalltalk.addMethod(
352
+ unescape('_failures'),
353
+ smalltalk.method({
354
+ selector: unescape('failures'),
355
+ category: 'accessing',
356
+ fn: function (){
357
+ var self=this;
358
+ return self['@failures'];
359
+ return self;},
360
+ args: [],
361
+ source: unescape('failures%0A%09%5Efailures'),
362
+ messageSends: [],
363
+ referencedClasses: []
364
+ }),
365
+ smalltalk.TestResult);
366
+
367
+ smalltalk.addMethod(
368
+ unescape('_total'),
369
+ smalltalk.method({
370
+ selector: unescape('total'),
371
+ category: 'accessing',
372
+ fn: function (){
373
+ var self=this;
374
+ return self['@total'];
375
+ return self;},
376
+ args: [],
377
+ source: unescape('total%0A%09%5Etotal'),
378
+ messageSends: [],
379
+ referencedClasses: []
380
+ }),
381
+ smalltalk.TestResult);
382
+
383
+ smalltalk.addMethod(
384
+ unescape('_total_'),
385
+ smalltalk.method({
386
+ selector: unescape('total%3A'),
387
+ category: 'accessing',
388
+ fn: function (aNumber){
389
+ var self=this;
390
+ (self['@total']=aNumber);
391
+ return self;},
392
+ args: ["aNumber"],
393
+ source: unescape('total%3A%20aNumber%0A%09total%20%3A%3D%20aNumber'),
394
+ messageSends: [],
395
+ referencedClasses: []
396
+ }),
397
+ smalltalk.TestResult);
398
+
399
+ smalltalk.addMethod(
400
+ unescape('_addError_'),
401
+ smalltalk.method({
402
+ selector: unescape('addError%3A'),
403
+ category: 'accessing',
404
+ fn: function (anError){
405
+ var self=this;
406
+ smalltalk.send(smalltalk.send(self, "_errors", []), "_add_", [anError]);
407
+ return self;},
408
+ args: ["anError"],
409
+ source: unescape('addError%3A%20anError%0A%09self%20errors%20add%3A%20anError'),
410
+ messageSends: ["add:", "errors"],
411
+ referencedClasses: []
412
+ }),
413
+ smalltalk.TestResult);
414
+
415
+ smalltalk.addMethod(
416
+ unescape('_addFailure_'),
417
+ smalltalk.method({
418
+ selector: unescape('addFailure%3A'),
419
+ category: 'accessing',
420
+ fn: function (aFailure){
421
+ var self=this;
422
+ smalltalk.send(smalltalk.send(self, "_failures", []), "_add_", [aFailure]);
423
+ return self;},
424
+ args: ["aFailure"],
425
+ source: unescape('addFailure%3A%20aFailure%0A%09self%20failures%20add%3A%20aFailure'),
426
+ messageSends: ["add:", "failures"],
427
+ referencedClasses: []
428
+ }),
429
+ smalltalk.TestResult);
430
+
431
+ smalltalk.addMethod(
432
+ unescape('_runs'),
433
+ smalltalk.method({
434
+ selector: unescape('runs'),
435
+ category: 'accessing',
436
+ fn: function (){
437
+ var self=this;
438
+ return self['@runs'];
439
+ return self;},
440
+ args: [],
441
+ source: unescape('runs%0A%09%5Eruns'),
442
+ messageSends: [],
443
+ referencedClasses: []
444
+ }),
445
+ smalltalk.TestResult);
446
+
447
+ smalltalk.addMethod(
448
+ unescape('_increaseRuns'),
449
+ smalltalk.method({
450
+ selector: unescape('increaseRuns'),
451
+ category: 'accessing',
452
+ fn: function (){
453
+ var self=this;
454
+ (self['@runs']=((($receiver = self['@runs']).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));
455
+ return self;},
456
+ args: [],
457
+ source: unescape('increaseRuns%0A%09runs%20%3A%3D%20runs%20+%201'),
458
+ messageSends: [unescape("+")],
459
+ referencedClasses: []
460
+ }),
461
+ smalltalk.TestResult);
462
+
463
+ smalltalk.addMethod(
464
+ unescape('_status'),
465
+ smalltalk.method({
466
+ selector: unescape('status'),
467
+ category: 'accessing',
468
+ fn: function (){
469
+ var self=this;
470
+ return ((($receiver = smalltalk.send(smalltalk.send(self, "_errors", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return ((($receiver = smalltalk.send(smalltalk.send(self, "_failures", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "success";})() : (function(){return "failure";})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "success";}), (function(){return "failure";})]));})() : (function(){return "error";})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return ((($receiver = smalltalk.send(smalltalk.send(self, "_failures", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return "success";})() : (function(){return "failure";})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return "success";}), (function(){return "failure";})]));}), (function(){return "error";})]));
471
+ return self;},
472
+ args: [],
473
+ source: unescape('status%0A%09%5Eself%20errors%20isEmpty%20%0A%09%09ifTrue%3A%20%5B%0A%09%09%09self%20failures%20isEmpty%20%0A%09%09%09%09ifTrue%3A%20%5B%27success%27%5D%0A%09%09%09%09ifFalse%3A%20%5B%27failure%27%5D%5D%0A%09%09ifFalse%3A%20%5B%27error%27%5D'),
474
+ messageSends: ["ifTrue:ifFalse:", "isEmpty", "errors", "failures"],
475
+ referencedClasses: []
476
+ }),
477
+ smalltalk.TestResult);
478
+
479
+ smalltalk.addMethod(
480
+ unescape('_initialize'),
481
+ smalltalk.method({
482
+ selector: unescape('initialize'),
483
+ category: 'initialization',
484
+ fn: function (){
485
+ var self=this;
486
+ smalltalk.send(self, "_initialize", [], smalltalk.Object);
487
+ (self['@timestamp']=smalltalk.send((smalltalk.Date || Date), "_now", []));
488
+ (self['@runs']=(0));
489
+ (self['@errors']=smalltalk.send((smalltalk.Array || Array), "_new", []));
490
+ (self['@failures']=smalltalk.send((smalltalk.Array || Array), "_new", []));
491
+ (self['@total']=(0));
492
+ return self;},
493
+ args: [],
494
+ source: unescape('initialize%0A%09super%20initialize.%0A%09timestamp%20%3A%3D%20Date%20now.%0A%09runs%20%3A%3D%200.%0A%09errors%20%3A%3D%20Array%20new.%0A%09failures%20%3A%3D%20Array%20new.%0A%09total%20%3A%3D%200'),
495
+ messageSends: ["initialize", "now", "new"],
496
+ referencedClasses: ["Date", "Array"]
497
+ }),
498
+ smalltalk.TestResult);
499
+
500
+
501
+