opal-rails 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/assets/javascripts/opal-jquery.js +17 -74
- data/lib/assets/javascripts/opal-spec.js +48 -133
- data/lib/assets/javascripts/opal.js +577 -805
- data/lib/opal/rails/version.rb +2 -2
- data/spec/integration/assigns_spec.rb +3 -0
- data/test_app/app/views/application/with_assignments.js.opal +0 -23
- metadata +5 -5
@@ -3,28 +3,25 @@
|
|
3
3
|
var __opal = Opal, self = __opal.top, __scope = __opal, nil = __opal.nil, __breaker = __opal.breaker, __slice = __opal.slice, __module = __opal.module, __klass = __opal.klass;
|
4
4
|
|
5
5
|
return (function(__base){
|
6
|
-
// line 1, opal-spec/browser_formatter, module OpalSpec
|
7
6
|
function OpalSpec() {};
|
8
7
|
OpalSpec = __module(__base, "OpalSpec", OpalSpec);
|
9
8
|
var OpalSpec_prototype = OpalSpec.prototype, __scope = OpalSpec._scope;
|
10
9
|
|
11
10
|
(function(__base, __super){
|
12
|
-
// line 2, opal-spec/browser_formatter, class BrowserFormatter
|
13
11
|
function BrowserFormatter() {};
|
14
12
|
BrowserFormatter = __klass(__base, __super, "BrowserFormatter", BrowserFormatter);
|
13
|
+
|
15
14
|
var BrowserFormatter_prototype = BrowserFormatter.prototype, __scope = BrowserFormatter._scope;
|
16
15
|
BrowserFormatter_prototype.start_time = BrowserFormatter_prototype.failed_examples = BrowserFormatter_prototype.summary_element = BrowserFormatter_prototype.groups_element = BrowserFormatter_prototype.example_group_failed = BrowserFormatter_prototype.group_element = BrowserFormatter_prototype.examples = BrowserFormatter_prototype.example_list = nil;
|
17
16
|
|
18
17
|
__scope.CSS = "\n body {\n font-size: 14px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n\n pre {\n font-family: \"Bitstream Vera Sans Mono\", Monaco, \"Lucida Console\", monospace;\n font-size: 12px;\n color: #444444;\n white-space: pre;\n padding: 3px 0px 3px 12px;\n margin: 0px 0px 8px;\n\n background: #FAFAFA;\n -webkit-box-shadow: rgba(0,0,0,0.07) 0 1px 2px inset;\n -webkit-border-radius: 3px;\n -moz-border-radius: 3px;\n border-radius: 3px;\n border: 1px solid #DDDDDD;\n }\n\n ul.example_groups {\n list-style-type: none;\n }\n\n li.group.passed .group_description {\n color: #597800;\n font-weight: bold;\n }\n\n li.group.failed .group_description {\n color: #FF000E;\n font-weight: bold;\n }\n\n li.example.passed {\n color: #597800;\n }\n\n li.example.failed {\n color: #FF000E;\n }\n\n .examples {\n list-style-type: none;\n }\n ";
|
19
18
|
|
20
|
-
// line 52, opal-spec/browser_formatter, BrowserFormatter#initialize
|
21
19
|
BrowserFormatter_prototype.$initialize = function() {
|
22
20
|
|
23
21
|
this.examples = [];
|
24
22
|
return this.failed_examples = [];
|
25
23
|
};
|
26
24
|
|
27
|
-
// line 57, opal-spec/browser_formatter, BrowserFormatter#start
|
28
25
|
BrowserFormatter_prototype.$start = function() {
|
29
26
|
|
30
27
|
|
@@ -64,7 +61,6 @@
|
|
64
61
|
return this.summary_element = summary_element;
|
65
62
|
};
|
66
63
|
|
67
|
-
// line 96, opal-spec/browser_formatter, BrowserFormatter#finish
|
68
64
|
BrowserFormatter_prototype.$finish = function() {
|
69
65
|
var time = nil, text = nil, __a, __b;
|
70
66
|
time = (__a = __scope.Time.$now().$to_f(), __b = this.start_time, typeof(__a) === 'number' ? __a - __b : __a['$-'](__b));
|
@@ -72,7 +68,6 @@
|
|
72
68
|
return this.summary_element.innerHTML = text;
|
73
69
|
};
|
74
70
|
|
75
|
-
// line 103, opal-spec/browser_formatter, BrowserFormatter#example_group_started
|
76
71
|
BrowserFormatter_prototype.$example_group_started = function(group) {
|
77
72
|
|
78
73
|
this.example_group = group;
|
@@ -95,7 +90,6 @@
|
|
95
90
|
return this.example_list = example_list;
|
96
91
|
};
|
97
92
|
|
98
|
-
// line 126, opal-spec/browser_formatter, BrowserFormatter#example_group_finished
|
99
93
|
BrowserFormatter_prototype.$example_group_finished = function(group) {
|
100
94
|
var __a;
|
101
95
|
if ((__a = this.example_group_failed) !== false && __a !== nil) {
|
@@ -105,14 +99,12 @@
|
|
105
99
|
};
|
106
100
|
};
|
107
101
|
|
108
|
-
// line 134, opal-spec/browser_formatter, BrowserFormatter#example_started
|
109
102
|
BrowserFormatter_prototype.$example_started = function(example) {
|
110
103
|
|
111
104
|
this.examples['$<<'](example);
|
112
105
|
return this.example = example;
|
113
106
|
};
|
114
107
|
|
115
|
-
// line 139, opal-spec/browser_formatter, BrowserFormatter#example_failed
|
116
108
|
BrowserFormatter_prototype.$example_failed = function(example) {
|
117
109
|
var exception = nil, $case = nil, output = nil;
|
118
110
|
this.failed_examples['$<<'](example);
|
@@ -143,7 +135,6 @@
|
|
143
135
|
|
144
136
|
};
|
145
137
|
|
146
|
-
// line 176, opal-spec/browser_formatter, BrowserFormatter#example_passed
|
147
138
|
BrowserFormatter_prototype.$example_passed = function(example) {
|
148
139
|
|
149
140
|
|
@@ -159,12 +150,12 @@
|
|
159
150
|
|
160
151
|
};
|
161
152
|
|
162
|
-
// line 190, opal-spec/browser_formatter, BrowserFormatter#example_count
|
163
153
|
BrowserFormatter_prototype.$example_count = function() {
|
164
154
|
|
165
155
|
return this.examples.$size();
|
166
156
|
};
|
167
157
|
|
158
|
+
return nil;
|
168
159
|
})(OpalSpec, null)
|
169
160
|
|
170
161
|
})(self)
|
@@ -174,46 +165,39 @@
|
|
174
165
|
var __opal = Opal, self = __opal.top, __scope = __opal, nil = __opal.nil, __breaker = __opal.breaker, __slice = __opal.slice, __module = __opal.module, __klass = __opal.klass;
|
175
166
|
|
176
167
|
return (function(__base){
|
177
|
-
// line 1, opal-spec/example, module OpalSpec
|
178
168
|
function OpalSpec() {};
|
179
169
|
OpalSpec = __module(__base, "OpalSpec", OpalSpec);
|
180
170
|
var OpalSpec_prototype = OpalSpec.prototype, __scope = OpalSpec._scope;
|
181
171
|
|
182
172
|
(function(__base, __super){
|
183
|
-
// line 2, opal-spec/example, class Example
|
184
173
|
function Example() {};
|
185
174
|
Example = __klass(__base, __super, "Example", Example);
|
175
|
+
|
186
176
|
var Example_prototype = Example.prototype, __scope = Example._scope, TMP_1, TMP_2;
|
187
177
|
Example_prototype.description = Example_prototype.example_group = Example_prototype.exception = Example_prototype.asynchronous = Example_prototype.__block__ = nil;
|
188
178
|
|
189
|
-
// line 3, opal-spec/example, Example#description
|
190
179
|
Example_prototype.$description = function() {
|
191
180
|
|
192
181
|
return this.description
|
193
182
|
},
|
194
|
-
// line 3, opal-spec/example, Example#example_group
|
195
183
|
Example_prototype.$example_group = function() {
|
196
184
|
|
197
185
|
return this.example_group
|
198
186
|
},
|
199
|
-
// line 3, opal-spec/example, Example#exception
|
200
187
|
Example_prototype.$exception = function() {
|
201
188
|
|
202
189
|
return this.exception
|
203
|
-
};
|
190
|
+
}, nil;
|
204
191
|
|
205
|
-
// line 4, opal-spec/example, Example#asynchronous
|
206
192
|
Example_prototype.$asynchronous = function() {
|
207
193
|
|
208
194
|
return this.asynchronous
|
209
195
|
},
|
210
|
-
// line 4, opal-spec/example, Example#asynchronous=
|
211
196
|
Example_prototype['$asynchronous='] = function(val) {
|
212
197
|
|
213
198
|
return this.asynchronous = val
|
214
|
-
};
|
199
|
+
}, nil;
|
215
200
|
|
216
|
-
// line 6, opal-spec/example, Example#initialize
|
217
201
|
Example_prototype.$initialize = function(group, desc, block) {
|
218
202
|
|
219
203
|
this.example_group = group;
|
@@ -221,7 +205,6 @@
|
|
221
205
|
return this.__block__ = block;
|
222
206
|
};
|
223
207
|
|
224
|
-
// line 12, opal-spec/example, Example#finish_running
|
225
208
|
Example_prototype.$finish_running = function() {
|
226
209
|
var __a;
|
227
210
|
if ((__a = this.exception) !== false && __a !== nil) {
|
@@ -231,7 +214,6 @@
|
|
231
214
|
};
|
232
215
|
};
|
233
216
|
|
234
|
-
// line 20, opal-spec/example, Example#run
|
235
217
|
Example_prototype.$run = function() {
|
236
218
|
var e = nil, __a, __b;
|
237
219
|
try {
|
@@ -254,11 +236,10 @@
|
|
254
236
|
};
|
255
237
|
};
|
256
238
|
|
257
|
-
// line 38, opal-spec/example, Example#run_after_hooks
|
258
239
|
Example_prototype.$run_after_hooks = function() {
|
259
240
|
var e = nil, __a, __b;
|
260
|
-
|
261
|
-
(__b = this.example_group.$after_hooks(), __b.$each._p = (__a = function(after) {
|
241
|
+
try {
|
242
|
+
return (__b = this.example_group.$after_hooks(), __b.$each._p = (__a = function(after) {
|
262
243
|
|
263
244
|
var __a;
|
264
245
|
if (after == null) after = nil;
|
@@ -269,10 +250,9 @@
|
|
269
250
|
if (true) {
|
270
251
|
e = $err;this.exception = e}
|
271
252
|
else { throw $err; }
|
272
|
-
}
|
253
|
+
};
|
273
254
|
};
|
274
255
|
|
275
|
-
// line 48, opal-spec/example, Example#run_before_hooks
|
276
256
|
Example_prototype.$run_before_hooks = function() {
|
277
257
|
var __a, __b;
|
278
258
|
return (__b = this.example_group.$before_hooks(), __b.$each._p = (__a = function(before) {
|
@@ -284,7 +264,6 @@
|
|
284
264
|
}, __a._s = this, __a), __b.$each());
|
285
265
|
};
|
286
266
|
|
287
|
-
// line 54, opal-spec/example, Example#run_async
|
288
267
|
Example_prototype.$run_async = TMP_1 = function() {
|
289
268
|
var e = nil, __context, block;
|
290
269
|
block = TMP_1._p || nil, __context = block._s, TMP_1._p = null;
|
@@ -301,7 +280,6 @@
|
|
301
280
|
return this.$finish_running();
|
302
281
|
};
|
303
282
|
|
304
|
-
// line 66, opal-spec/example, Example#set_timeout
|
305
283
|
Example_prototype.$set_timeout = TMP_2 = function(duration) {
|
306
284
|
var __context, block;
|
307
285
|
block = TMP_2._p || nil, __context = block._s, TMP_2._p = null;
|
@@ -314,6 +292,7 @@
|
|
314
292
|
return this;
|
315
293
|
};
|
316
294
|
|
295
|
+
return nil;
|
317
296
|
})(OpalSpec, null)
|
318
297
|
|
319
298
|
})(self)
|
@@ -323,21 +302,19 @@
|
|
323
302
|
var __opal = Opal, self = __opal.top, __scope = __opal, nil = __opal.nil, __breaker = __opal.breaker, __slice = __opal.slice, __module = __opal.module, __klass = __opal.klass;
|
324
303
|
|
325
304
|
return (function(__base){
|
326
|
-
// line 1, opal-spec/example_group, module OpalSpec
|
327
305
|
function OpalSpec() {};
|
328
306
|
OpalSpec = __module(__base, "OpalSpec", OpalSpec);
|
329
307
|
var OpalSpec_prototype = OpalSpec.prototype, __scope = OpalSpec._scope;
|
330
308
|
|
331
309
|
(function(__base, __super){
|
332
|
-
// line 2, opal-spec/example_group, class ExampleGroup
|
333
310
|
function ExampleGroup() {};
|
334
311
|
ExampleGroup = __klass(__base, __super, "ExampleGroup", ExampleGroup);
|
335
|
-
|
312
|
+
|
313
|
+
;ExampleGroup._sdonate(["$example_groups", "$create"]); var ExampleGroup_prototype = ExampleGroup.prototype, __scope = ExampleGroup._scope, TMP_1, TMP_2, TMP_3, TMP_4;
|
336
314
|
ExampleGroup_prototype.examples = ExampleGroup_prototype.before_hooks = ExampleGroup_prototype.after_hooks = ExampleGroup_prototype.parent = ExampleGroup_prototype.runner = ExampleGroup_prototype.running_examples = ExampleGroup_prototype.desc = nil;
|
337
315
|
|
338
316
|
ExampleGroup.example_groups = [];
|
339
317
|
|
340
|
-
// line 4, opal-spec/example_group, ExampleGroup.example_groups
|
341
318
|
ExampleGroup.$example_groups = function() {
|
342
319
|
|
343
320
|
if (this.example_groups == null) this.example_groups = nil;
|
@@ -347,7 +324,6 @@
|
|
347
324
|
|
348
325
|
ExampleGroup.stack = [];
|
349
326
|
|
350
|
-
// line 9, opal-spec/example_group, ExampleGroup.create
|
351
327
|
ExampleGroup.$create = function(desc, block) {
|
352
328
|
var group = nil, __a;
|
353
329
|
if (this.stack == null) this.stack = nil;
|
@@ -360,7 +336,6 @@
|
|
360
336
|
return this.stack.$pop();
|
361
337
|
};
|
362
338
|
|
363
|
-
// line 18, opal-spec/example_group, ExampleGroup#initialize
|
364
339
|
ExampleGroup_prototype.$initialize = function(desc, parent) {
|
365
340
|
|
366
341
|
this.desc = desc.$to_s();
|
@@ -370,7 +345,6 @@
|
|
370
345
|
return this.after_hooks = [];
|
371
346
|
};
|
372
347
|
|
373
|
-
// line 27, opal-spec/example_group, ExampleGroup#it
|
374
348
|
ExampleGroup_prototype.$it = TMP_1 = function(desc) {
|
375
349
|
var __context, block;
|
376
350
|
block = TMP_1._p || nil, __context = block._s, TMP_1._p = null;
|
@@ -378,7 +352,6 @@
|
|
378
352
|
return this.examples['$<<'](__scope.Example.$new(this, desc, block));
|
379
353
|
};
|
380
354
|
|
381
|
-
// line 31, opal-spec/example_group, ExampleGroup#async
|
382
355
|
ExampleGroup_prototype.$async = TMP_2 = function(desc) {
|
383
356
|
var example = nil, __context, block;
|
384
357
|
block = TMP_2._p || nil, __context = block._s, TMP_2._p = null;
|
@@ -388,13 +361,11 @@
|
|
388
361
|
return this.examples['$<<'](example);
|
389
362
|
};
|
390
363
|
|
391
|
-
// line 37, opal-spec/example_group, ExampleGroup#it_behaves_like
|
392
364
|
ExampleGroup_prototype.$it_behaves_like = function(objs) {
|
393
365
|
objs = __slice.call(arguments, 0);
|
394
366
|
return nil;
|
395
367
|
};
|
396
368
|
|
397
|
-
// line 40, opal-spec/example_group, ExampleGroup#before
|
398
369
|
ExampleGroup_prototype.$before = TMP_3 = function(type) {
|
399
370
|
var __a, __context, block;
|
400
371
|
block = TMP_3._p || nil, __context = block._s, TMP_3._p = null;
|
@@ -407,7 +378,6 @@
|
|
407
378
|
return this.before_hooks['$<<'](block);
|
408
379
|
};
|
409
380
|
|
410
|
-
// line 45, opal-spec/example_group, ExampleGroup#after
|
411
381
|
ExampleGroup_prototype.$after = TMP_4 = function(type) {
|
412
382
|
var __a, __context, block;
|
413
383
|
block = TMP_4._p || nil, __context = block._s, TMP_4._p = null;
|
@@ -420,7 +390,6 @@
|
|
420
390
|
return this.after_hooks['$<<'](block);
|
421
391
|
};
|
422
392
|
|
423
|
-
// line 50, opal-spec/example_group, ExampleGroup#before_hooks
|
424
393
|
ExampleGroup_prototype.$before_hooks = function() {
|
425
394
|
var __a;
|
426
395
|
if ((__a = this.parent) !== false && __a !== nil) {
|
@@ -430,7 +399,6 @@
|
|
430
399
|
};
|
431
400
|
};
|
432
401
|
|
433
|
-
// line 54, opal-spec/example_group, ExampleGroup#after_hooks
|
434
402
|
ExampleGroup_prototype.$after_hooks = function() {
|
435
403
|
var __a;
|
436
404
|
if ((__a = this.parent) !== false && __a !== nil) {
|
@@ -440,7 +408,6 @@
|
|
440
408
|
};
|
441
409
|
};
|
442
410
|
|
443
|
-
// line 58, opal-spec/example_group, ExampleGroup#run
|
444
411
|
ExampleGroup_prototype.$run = function(runner) {
|
445
412
|
|
446
413
|
this.runner = runner;
|
@@ -449,7 +416,6 @@
|
|
449
416
|
return this.$run_next_example();
|
450
417
|
};
|
451
418
|
|
452
|
-
// line 66, opal-spec/example_group, ExampleGroup#run_next_example
|
453
419
|
ExampleGroup_prototype.$run_next_example = function() {
|
454
420
|
var __a;
|
455
421
|
if ((__a = this.running_examples['$empty?']()) !== false && __a !== nil) {
|
@@ -459,27 +425,23 @@
|
|
459
425
|
};
|
460
426
|
};
|
461
427
|
|
462
|
-
// line 74, opal-spec/example_group, ExampleGroup#example_started
|
463
428
|
ExampleGroup_prototype.$example_started = function(example) {
|
464
429
|
|
465
430
|
return this.runner.$example_started(example);
|
466
431
|
};
|
467
432
|
|
468
|
-
// line 78, opal-spec/example_group, ExampleGroup#example_passed
|
469
433
|
ExampleGroup_prototype.$example_passed = function(example) {
|
470
434
|
|
471
435
|
this.runner.$example_passed(example);
|
472
436
|
return this.$run_next_example();
|
473
437
|
};
|
474
438
|
|
475
|
-
// line 83, opal-spec/example_group, ExampleGroup#example_failed
|
476
439
|
ExampleGroup_prototype.$example_failed = function(example) {
|
477
440
|
|
478
441
|
this.runner.$example_failed(example);
|
479
442
|
return this.$run_next_example();
|
480
443
|
};
|
481
444
|
|
482
|
-
// line 88, opal-spec/example_group, ExampleGroup#description
|
483
445
|
ExampleGroup_prototype.$description = function() {
|
484
446
|
var __a;
|
485
447
|
if ((__a = this.parent) !== false && __a !== nil) {
|
@@ -488,7 +450,8 @@
|
|
488
450
|
return this.desc
|
489
451
|
};
|
490
452
|
};
|
491
|
-
|
453
|
+
|
454
|
+
return nil;
|
492
455
|
})(OpalSpec, null)
|
493
456
|
|
494
457
|
})(self)
|
@@ -498,28 +461,24 @@
|
|
498
461
|
var __opal = Opal, self = __opal.top, __scope = __opal, nil = __opal.nil, __breaker = __opal.breaker, __slice = __opal.slice, __module = __opal.module, __klass = __opal.klass;
|
499
462
|
|
500
463
|
(function(__base){
|
501
|
-
// line 1, opal-spec/expectations, module OpalSpec
|
502
464
|
function OpalSpec() {};
|
503
465
|
OpalSpec = __module(__base, "OpalSpec", OpalSpec);
|
504
466
|
var OpalSpec_prototype = OpalSpec.prototype, __scope = OpalSpec._scope;
|
505
467
|
|
506
468
|
(function(__base, __super){
|
507
|
-
// line 2, opal-spec/expectations, class ExpectationNotMetError
|
508
469
|
function ExpectationNotMetError() {};
|
509
470
|
ExpectationNotMetError = __klass(__base, __super, "ExpectationNotMetError", ExpectationNotMetError);
|
510
|
-
var ExpectationNotMetError_prototype = ExpectationNotMetError.prototype, __scope = ExpectationNotMetError._scope;
|
511
471
|
|
512
|
-
|
472
|
+
var ExpectationNotMetError_prototype = ExpectationNotMetError.prototype, __scope = ExpectationNotMetError._scope;
|
513
473
|
|
474
|
+
return nil
|
514
475
|
})(OpalSpec, __scope.StandardError);
|
515
476
|
|
516
477
|
(function(__base){
|
517
|
-
// line 4, opal-spec/expectations, module Expectations
|
518
478
|
function Expectations() {};
|
519
479
|
Expectations = __module(__base, "Expectations", Expectations);
|
520
480
|
var Expectations_prototype = Expectations.prototype, __scope = Expectations._scope;
|
521
481
|
|
522
|
-
// line 5, opal-spec/expectations, Expectations#should
|
523
482
|
Expectations_prototype.$should = function(matcher) {
|
524
483
|
if (matcher == null) {
|
525
484
|
matcher = nil
|
@@ -531,7 +490,6 @@
|
|
531
490
|
};
|
532
491
|
};
|
533
492
|
|
534
|
-
// line 13, opal-spec/expectations, Expectations#should_not
|
535
493
|
Expectations_prototype.$should_not = function(matcher) {
|
536
494
|
if (matcher == null) {
|
537
495
|
matcher = nil
|
@@ -543,37 +501,31 @@
|
|
543
501
|
};
|
544
502
|
};
|
545
503
|
|
546
|
-
// line 21, opal-spec/expectations, Expectations#be_kind_of
|
547
504
|
Expectations_prototype.$be_kind_of = function(expected) {
|
548
505
|
|
549
506
|
return (__scope.OpalSpec)._scope.BeKindOfMatcher.$new(expected);
|
550
507
|
};
|
551
508
|
|
552
|
-
// line 25, opal-spec/expectations, Expectations#be_nil
|
553
509
|
Expectations_prototype.$be_nil = function() {
|
554
510
|
|
555
511
|
return (__scope.OpalSpec)._scope.BeNilMatcher.$new(nil);
|
556
512
|
};
|
557
513
|
|
558
|
-
// line 29, opal-spec/expectations, Expectations#be_true
|
559
514
|
Expectations_prototype.$be_true = function() {
|
560
515
|
|
561
516
|
return (__scope.OpalSpec)._scope.BeTrueMatcher.$new(true);
|
562
517
|
};
|
563
518
|
|
564
|
-
// line 33, opal-spec/expectations, Expectations#be_false
|
565
519
|
Expectations_prototype.$be_false = function() {
|
566
520
|
|
567
521
|
return (__scope.OpalSpec)._scope.BeFalseMatcher.$new(false);
|
568
522
|
};
|
569
523
|
|
570
|
-
// line 37, opal-spec/expectations, Expectations#equal
|
571
524
|
Expectations_prototype.$equal = function(expected) {
|
572
525
|
|
573
526
|
return (__scope.OpalSpec)._scope.EqualMatcher.$new(expected);
|
574
527
|
};
|
575
528
|
|
576
|
-
// line 41, opal-spec/expectations, Expectations#raise_error
|
577
529
|
Expectations_prototype.$raise_error = function(expected) {
|
578
530
|
|
579
531
|
return (__scope.OpalSpec)._scope.RaiseErrorMatcher.$new(expected);
|
@@ -583,13 +535,12 @@
|
|
583
535
|
|
584
536
|
})(self);
|
585
537
|
return (function(__base, __super){
|
586
|
-
// line 47, opal-spec/expectations, class Object
|
587
538
|
function Object() {};
|
588
539
|
Object = __klass(__base, __super, "Object", Object);
|
589
|
-
var Object_prototype = Object.prototype, __scope = Object._scope;
|
590
540
|
|
591
|
-
Object
|
541
|
+
var Object_prototype = Object.prototype, __scope = Object._scope;
|
592
542
|
|
543
|
+
return Object.$include((__scope.OpalSpec)._scope.Expectations)
|
593
544
|
})(self, null);
|
594
545
|
})();
|
595
546
|
// lib/opal-spec/kernel.rb
|
@@ -597,12 +548,10 @@
|
|
597
548
|
var __opal = Opal, self = __opal.top, __scope = __opal, nil = __opal.nil, __breaker = __opal.breaker, __slice = __opal.slice, __module = __opal.module;
|
598
549
|
|
599
550
|
return (function(__base){
|
600
|
-
// line 1, opal-spec/kernel, module Kernel
|
601
551
|
function Kernel() {};
|
602
552
|
Kernel = __module(__base, "Kernel", Kernel);
|
603
553
|
var Kernel_prototype = Kernel.prototype, __scope = Kernel._scope, TMP_1;
|
604
554
|
|
605
|
-
// line 2, opal-spec/kernel, Kernel#describe
|
606
555
|
Kernel_prototype.$describe = TMP_1 = function(desc) {
|
607
556
|
var __context, block;
|
608
557
|
block = TMP_1._p || nil, __context = block._s, TMP_1._p = null;
|
@@ -610,7 +559,6 @@
|
|
610
559
|
return (__scope.OpalSpec)._scope.ExampleGroup.$create(desc, block);
|
611
560
|
};
|
612
561
|
|
613
|
-
// line 6, opal-spec/kernel, Kernel#mock
|
614
562
|
Kernel_prototype.$mock = function(obj) {
|
615
563
|
|
616
564
|
return __scope.Object.$new();
|
@@ -623,39 +571,36 @@
|
|
623
571
|
var __opal = Opal, self = __opal.top, __scope = __opal, nil = __opal.nil, __breaker = __opal.breaker, __slice = __opal.slice, __module = __opal.module, __klass = __opal.klass;
|
624
572
|
|
625
573
|
return (function(__base){
|
626
|
-
// line 1, opal-spec/matchers, module OpalSpec
|
627
574
|
function OpalSpec() {};
|
628
575
|
OpalSpec = __module(__base, "OpalSpec", OpalSpec);
|
629
576
|
var OpalSpec_prototype = OpalSpec.prototype, __scope = OpalSpec._scope;
|
630
577
|
|
631
578
|
(function(__base, __super){
|
632
|
-
// line 2, opal-spec/matchers, class Matcher
|
633
579
|
function Matcher() {};
|
634
580
|
Matcher = __klass(__base, __super, "Matcher", Matcher);
|
581
|
+
|
635
582
|
var Matcher_prototype = Matcher.prototype, __scope = Matcher._scope;
|
636
583
|
|
637
|
-
// line 3, opal-spec/matchers, Matcher#initialize
|
638
584
|
Matcher_prototype.$initialize = function(actual) {
|
639
585
|
|
640
586
|
return this.actual = actual;
|
641
587
|
};
|
642
588
|
|
643
|
-
// line 7, opal-spec/matchers, Matcher#failure
|
644
589
|
Matcher_prototype.$failure = function(message) {
|
645
590
|
|
646
591
|
return this.$raise((__scope.OpalSpec)._scope.ExpectationNotMetError, message);
|
647
592
|
};
|
648
593
|
|
594
|
+
return nil;
|
649
595
|
})(OpalSpec, null);
|
650
596
|
|
651
597
|
(function(__base, __super){
|
652
|
-
// line 12, opal-spec/matchers, class PositiveOperatorMatcher
|
653
598
|
function PositiveOperatorMatcher() {};
|
654
599
|
PositiveOperatorMatcher = __klass(__base, __super, "PositiveOperatorMatcher", PositiveOperatorMatcher);
|
600
|
+
|
655
601
|
var PositiveOperatorMatcher_prototype = PositiveOperatorMatcher.prototype, __scope = PositiveOperatorMatcher._scope;
|
656
602
|
PositiveOperatorMatcher_prototype.actual = nil;
|
657
603
|
|
658
|
-
// line 13, opal-spec/matchers, PositiveOperatorMatcher#==
|
659
604
|
PositiveOperatorMatcher_prototype['$=='] = function(expected) {
|
660
605
|
|
661
606
|
if (this.actual['$=='](expected)) {
|
@@ -663,18 +608,18 @@
|
|
663
608
|
} else {
|
664
609
|
return this.$failure("expected: " + (expected.$inspect()) + ", got: " + (this.actual.$inspect()) + " (using ==).")
|
665
610
|
};
|
666
|
-
}
|
611
|
+
};
|
667
612
|
|
613
|
+
return nil;
|
668
614
|
})(OpalSpec, __scope.Matcher);
|
669
615
|
|
670
616
|
(function(__base, __super){
|
671
|
-
// line 22, opal-spec/matchers, class NegativeOperatorMatcher
|
672
617
|
function NegativeOperatorMatcher() {};
|
673
618
|
NegativeOperatorMatcher = __klass(__base, __super, "NegativeOperatorMatcher", NegativeOperatorMatcher);
|
619
|
+
|
674
620
|
var NegativeOperatorMatcher_prototype = NegativeOperatorMatcher.prototype, __scope = NegativeOperatorMatcher._scope;
|
675
621
|
NegativeOperatorMatcher_prototype.actual = nil;
|
676
622
|
|
677
|
-
// line 23, opal-spec/matchers, NegativeOperatorMatcher#==
|
678
623
|
NegativeOperatorMatcher_prototype['$=='] = function(expected) {
|
679
624
|
|
680
625
|
if (this.actual['$=='](expected)) {
|
@@ -682,18 +627,18 @@
|
|
682
627
|
} else {
|
683
628
|
return nil
|
684
629
|
};
|
685
|
-
}
|
630
|
+
};
|
686
631
|
|
632
|
+
return nil;
|
687
633
|
})(OpalSpec, __scope.Matcher);
|
688
634
|
|
689
635
|
(function(__base, __super){
|
690
|
-
// line 30, opal-spec/matchers, class BeKindOfMatcher
|
691
636
|
function BeKindOfMatcher() {};
|
692
637
|
BeKindOfMatcher = __klass(__base, __super, "BeKindOfMatcher", BeKindOfMatcher);
|
638
|
+
|
693
639
|
var BeKindOfMatcher_prototype = BeKindOfMatcher.prototype, __scope = BeKindOfMatcher._scope;
|
694
640
|
BeKindOfMatcher_prototype.actual = nil;
|
695
641
|
|
696
|
-
// line 31, opal-spec/matchers, BeKindOfMatcher#match
|
697
642
|
BeKindOfMatcher_prototype.$match = function(expected) {
|
698
643
|
var __a;
|
699
644
|
if ((__a = expected['$kind_of?'](this.actual)) !== false && __a !== nil) {
|
@@ -701,17 +646,17 @@
|
|
701
646
|
} else {
|
702
647
|
return this.$failure("expected " + (expected.$inspect()) + " to be a kind of " + (this.actual) + ", not " + (expected.$class()) + ".")
|
703
648
|
};
|
704
|
-
}
|
649
|
+
};
|
705
650
|
|
651
|
+
return nil;
|
706
652
|
})(OpalSpec, __scope.Matcher);
|
707
653
|
|
708
654
|
(function(__base, __super){
|
709
|
-
// line 38, opal-spec/matchers, class BeNilMatcher
|
710
655
|
function BeNilMatcher() {};
|
711
656
|
BeNilMatcher = __klass(__base, __super, "BeNilMatcher", BeNilMatcher);
|
657
|
+
|
712
658
|
var BeNilMatcher_prototype = BeNilMatcher.prototype, __scope = BeNilMatcher._scope;
|
713
659
|
|
714
|
-
// line 39, opal-spec/matchers, BeNilMatcher#match
|
715
660
|
BeNilMatcher_prototype.$match = function(expected) {
|
716
661
|
var __a;
|
717
662
|
if ((__a = expected['$nil?']()) !== false && __a !== nil) {
|
@@ -719,17 +664,17 @@
|
|
719
664
|
} else {
|
720
665
|
return this.$failure("expected " + (expected.$inspect()) + " to be nil.")
|
721
666
|
};
|
722
|
-
}
|
667
|
+
};
|
723
668
|
|
669
|
+
return nil;
|
724
670
|
})(OpalSpec, __scope.Matcher);
|
725
671
|
|
726
672
|
(function(__base, __super){
|
727
|
-
// line 46, opal-spec/matchers, class BeTrueMatcher
|
728
673
|
function BeTrueMatcher() {};
|
729
674
|
BeTrueMatcher = __klass(__base, __super, "BeTrueMatcher", BeTrueMatcher);
|
675
|
+
|
730
676
|
var BeTrueMatcher_prototype = BeTrueMatcher.prototype, __scope = BeTrueMatcher._scope;
|
731
677
|
|
732
|
-
// line 47, opal-spec/matchers, BeTrueMatcher#match
|
733
678
|
BeTrueMatcher_prototype.$match = function(expected) {
|
734
679
|
|
735
680
|
if (expected['$=='](true)) {
|
@@ -737,17 +682,17 @@
|
|
737
682
|
} else {
|
738
683
|
return this.$failure("expected " + (expected.$inspect()) + " to be true.")
|
739
684
|
};
|
740
|
-
}
|
685
|
+
};
|
741
686
|
|
687
|
+
return nil;
|
742
688
|
})(OpalSpec, __scope.Matcher);
|
743
689
|
|
744
690
|
(function(__base, __super){
|
745
|
-
// line 54, opal-spec/matchers, class BeFalseMatcher
|
746
691
|
function BeFalseMatcher() {};
|
747
692
|
BeFalseMatcher = __klass(__base, __super, "BeFalseMatcher", BeFalseMatcher);
|
693
|
+
|
748
694
|
var BeFalseMatcher_prototype = BeFalseMatcher.prototype, __scope = BeFalseMatcher._scope;
|
749
695
|
|
750
|
-
// line 55, opal-spec/matchers, BeFalseMatcher#match
|
751
696
|
BeFalseMatcher_prototype.$match = function(expected) {
|
752
697
|
|
753
698
|
if (expected['$=='](false)) {
|
@@ -755,18 +700,18 @@
|
|
755
700
|
} else {
|
756
701
|
return this.$failure("expected " + (expected.$inspect()) + " to be false.")
|
757
702
|
};
|
758
|
-
}
|
703
|
+
};
|
759
704
|
|
705
|
+
return nil;
|
760
706
|
})(OpalSpec, __scope.Matcher);
|
761
707
|
|
762
708
|
(function(__base, __super){
|
763
|
-
// line 62, opal-spec/matchers, class EqualMatcher
|
764
709
|
function EqualMatcher() {};
|
765
710
|
EqualMatcher = __klass(__base, __super, "EqualMatcher", EqualMatcher);
|
711
|
+
|
766
712
|
var EqualMatcher_prototype = EqualMatcher.prototype, __scope = EqualMatcher._scope;
|
767
713
|
EqualMatcher_prototype.actual = nil;
|
768
714
|
|
769
|
-
// line 63, opal-spec/matchers, EqualMatcher#match
|
770
715
|
EqualMatcher_prototype.$match = function(expected) {
|
771
716
|
var __a;
|
772
717
|
if ((__a = expected['$equal?'](this.actual)) !== false && __a !== nil) {
|
@@ -776,7 +721,6 @@
|
|
776
721
|
};
|
777
722
|
};
|
778
723
|
|
779
|
-
// line 69, opal-spec/matchers, EqualMatcher#not_match
|
780
724
|
EqualMatcher_prototype.$not_match = function(expected) {
|
781
725
|
var __a;
|
782
726
|
if ((__a = expected['$equal?'](this.actual)) !== false && __a !== nil) {
|
@@ -786,16 +730,16 @@
|
|
786
730
|
};
|
787
731
|
};
|
788
732
|
|
733
|
+
return nil;
|
789
734
|
})(OpalSpec, __scope.Matcher);
|
790
735
|
|
791
736
|
(function(__base, __super){
|
792
|
-
// line 76, opal-spec/matchers, class RaiseErrorMatcher
|
793
737
|
function RaiseErrorMatcher() {};
|
794
738
|
RaiseErrorMatcher = __klass(__base, __super, "RaiseErrorMatcher", RaiseErrorMatcher);
|
739
|
+
|
795
740
|
var RaiseErrorMatcher_prototype = RaiseErrorMatcher.prototype, __scope = RaiseErrorMatcher._scope;
|
796
741
|
RaiseErrorMatcher_prototype.actual = nil;
|
797
742
|
|
798
|
-
// line 77, opal-spec/matchers, RaiseErrorMatcher#match
|
799
743
|
RaiseErrorMatcher_prototype.$match = function(block) {
|
800
744
|
var should_raise = nil, e = nil;
|
801
745
|
should_raise = false;
|
@@ -812,8 +756,9 @@
|
|
812
756
|
} else {
|
813
757
|
return nil
|
814
758
|
};
|
815
|
-
}
|
759
|
+
};
|
816
760
|
|
761
|
+
return nil;
|
817
762
|
})(OpalSpec, __scope.Matcher);
|
818
763
|
|
819
764
|
})(self)
|
@@ -823,50 +768,43 @@
|
|
823
768
|
var __opal = Opal, self = __opal.top, __scope = __opal, nil = __opal.nil, __breaker = __opal.breaker, __slice = __opal.slice, __module = __opal.module, __klass = __opal.klass;
|
824
769
|
|
825
770
|
return (function(__base){
|
826
|
-
// line 1, opal-spec/phantom_formatter, module OpalSpec
|
827
771
|
function OpalSpec() {};
|
828
772
|
OpalSpec = __module(__base, "OpalSpec", OpalSpec);
|
829
773
|
var OpalSpec_prototype = OpalSpec.prototype, __scope = OpalSpec._scope;
|
830
774
|
|
831
775
|
(function(__base, __super){
|
832
|
-
// line 2, opal-spec/phantom_formatter, class PhantomFormatter
|
833
776
|
function PhantomFormatter() {};
|
834
777
|
PhantomFormatter = __klass(__base, __super, "PhantomFormatter", PhantomFormatter);
|
778
|
+
|
835
779
|
var PhantomFormatter_prototype = PhantomFormatter.prototype, __scope = PhantomFormatter._scope;
|
836
780
|
PhantomFormatter_prototype.failed_examples = PhantomFormatter_prototype.examples = nil;
|
837
781
|
|
838
|
-
// line 3, opal-spec/phantom_formatter, PhantomFormatter#initialize
|
839
782
|
PhantomFormatter_prototype.$initialize = function() {
|
840
783
|
|
841
784
|
this.examples = [];
|
842
785
|
return this.failed_examples = [];
|
843
786
|
};
|
844
787
|
|
845
|
-
// line 8, opal-spec/phantom_formatter, PhantomFormatter#log_green
|
846
788
|
PhantomFormatter_prototype.$log_green = function(str) {
|
847
789
|
|
848
790
|
return console.log('\033[92m' + str + '\033[0m');
|
849
791
|
};
|
850
792
|
|
851
|
-
// line 12, opal-spec/phantom_formatter, PhantomFormatter#log_red
|
852
793
|
PhantomFormatter_prototype.$log_red = function(str) {
|
853
794
|
|
854
795
|
return console.log('\033[31m' + str + '\033[0m');
|
855
796
|
};
|
856
797
|
|
857
|
-
// line 16, opal-spec/phantom_formatter, PhantomFormatter#log
|
858
798
|
PhantomFormatter_prototype.$log = function(str) {
|
859
799
|
|
860
800
|
return console.log(str);
|
861
801
|
};
|
862
802
|
|
863
|
-
// line 20, opal-spec/phantom_formatter, PhantomFormatter#start
|
864
803
|
PhantomFormatter_prototype.$start = function() {
|
865
804
|
|
866
805
|
return nil;
|
867
806
|
};
|
868
807
|
|
869
|
-
// line 23, opal-spec/phantom_formatter, PhantomFormatter#finish
|
870
808
|
PhantomFormatter_prototype.$finish = function() {
|
871
809
|
var __a, __b;
|
872
810
|
if ((__a = this.failed_examples['$empty?']()) !== false && __a !== nil) {
|
@@ -896,7 +834,6 @@ if (idx == null) idx = nil;
|
|
896
834
|
};
|
897
835
|
};
|
898
836
|
|
899
|
-
// line 57, opal-spec/phantom_formatter, PhantomFormatter#finish_with_code
|
900
837
|
PhantomFormatter_prototype.$finish_with_code = function(code) {
|
901
838
|
|
902
839
|
|
@@ -909,7 +846,6 @@ if (idx == null) idx = nil;
|
|
909
846
|
|
910
847
|
};
|
911
848
|
|
912
|
-
// line 68, opal-spec/phantom_formatter, PhantomFormatter#example_group_started
|
913
849
|
PhantomFormatter_prototype.$example_group_started = function(group) {
|
914
850
|
|
915
851
|
this.example_group = group;
|
@@ -917,20 +853,17 @@ if (idx == null) idx = nil;
|
|
917
853
|
return this.$log("\n" + (group.$description()));
|
918
854
|
};
|
919
855
|
|
920
|
-
// line 75, opal-spec/phantom_formatter, PhantomFormatter#example_group_finished
|
921
856
|
PhantomFormatter_prototype.$example_group_finished = function(group) {
|
922
857
|
|
923
858
|
return nil;
|
924
859
|
};
|
925
860
|
|
926
|
-
// line 78, opal-spec/phantom_formatter, PhantomFormatter#example_started
|
927
861
|
PhantomFormatter_prototype.$example_started = function(example) {
|
928
862
|
|
929
863
|
this.examples['$<<'](example);
|
930
864
|
return this.example = example;
|
931
865
|
};
|
932
866
|
|
933
|
-
// line 83, opal-spec/phantom_formatter, PhantomFormatter#example_failed
|
934
867
|
PhantomFormatter_prototype.$example_failed = function(example) {
|
935
868
|
|
936
869
|
this.failed_examples['$<<'](example);
|
@@ -938,18 +871,17 @@ if (idx == null) idx = nil;
|
|
938
871
|
return this.$log_red(" " + (example.$description()));
|
939
872
|
};
|
940
873
|
|
941
|
-
// line 89, opal-spec/phantom_formatter, PhantomFormatter#example_passed
|
942
874
|
PhantomFormatter_prototype.$example_passed = function(example) {
|
943
875
|
|
944
876
|
return this.$log_green(" " + (example.$description()));
|
945
877
|
};
|
946
878
|
|
947
|
-
// line 93, opal-spec/phantom_formatter, PhantomFormatter#example_count
|
948
879
|
PhantomFormatter_prototype.$example_count = function() {
|
949
880
|
|
950
881
|
return this.examples.$size();
|
951
882
|
};
|
952
883
|
|
884
|
+
return nil;
|
953
885
|
})(OpalSpec, null)
|
954
886
|
|
955
887
|
})(self)
|
@@ -959,19 +891,17 @@ if (idx == null) idx = nil;
|
|
959
891
|
var __opal = Opal, self = __opal.top, __scope = __opal, nil = __opal.nil, __breaker = __opal.breaker, __slice = __opal.slice, __module = __opal.module, __klass = __opal.klass;
|
960
892
|
|
961
893
|
return (function(__base){
|
962
|
-
// line 1, opal-spec/runner, module OpalSpec
|
963
894
|
function OpalSpec() {};
|
964
895
|
OpalSpec = __module(__base, "OpalSpec", OpalSpec);
|
965
896
|
var OpalSpec_prototype = OpalSpec.prototype, __scope = OpalSpec._scope;
|
966
897
|
|
967
898
|
(function(__base, __super){
|
968
|
-
// line 2, opal-spec/runner, class Runner
|
969
899
|
function Runner() {};
|
970
900
|
Runner = __klass(__base, __super, "Runner", Runner);
|
971
|
-
|
901
|
+
|
902
|
+
;Runner._sdonate(["$in_browser?", "$in_phantom?", "$autorun"]); var Runner_prototype = Runner.prototype, __scope = Runner._scope;
|
972
903
|
Runner_prototype.formatter = Runner_prototype.groups = nil;
|
973
904
|
|
974
|
-
// line 3, opal-spec/runner, Runner.in_browser?
|
975
905
|
Runner['$in_browser?'] = function() {
|
976
906
|
|
977
907
|
|
@@ -983,7 +913,6 @@ if (idx == null) idx = nil;
|
|
983
913
|
|
984
914
|
};
|
985
915
|
|
986
|
-
// line 13, opal-spec/runner, Runner.in_phantom?
|
987
916
|
Runner['$in_phantom?'] = function() {
|
988
917
|
|
989
918
|
|
@@ -995,7 +924,6 @@ if (idx == null) idx = nil;
|
|
995
924
|
|
996
925
|
};
|
997
926
|
|
998
|
-
// line 23, opal-spec/runner, Runner.autorun
|
999
927
|
Runner.$autorun = function() {
|
1000
928
|
var __a;
|
1001
929
|
if ((__a = this['$in_browser?']()) !== false && __a !== nil) {
|
@@ -1009,7 +937,6 @@ if (idx == null) idx = nil;
|
|
1009
937
|
}
|
1010
938
|
};
|
1011
939
|
|
1012
|
-
// line 35, opal-spec/runner, Runner#initialize
|
1013
940
|
Runner_prototype.$initialize = function() {
|
1014
941
|
var __a;
|
1015
942
|
if ((__a = __scope.Runner['$in_phantom?']()) !== false && __a !== nil) {
|
@@ -1023,7 +950,6 @@ if (idx == null) idx = nil;
|
|
1023
950
|
};
|
1024
951
|
};
|
1025
952
|
|
1026
|
-
// line 43, opal-spec/runner, Runner#run
|
1027
953
|
Runner_prototype.$run = function() {
|
1028
954
|
|
1029
955
|
this.groups = __scope.ExampleGroup.$example_groups().$dup();
|
@@ -1031,7 +957,6 @@ if (idx == null) idx = nil;
|
|
1031
957
|
return this.$run_next_group();
|
1032
958
|
};
|
1033
959
|
|
1034
|
-
// line 49, opal-spec/runner, Runner#run_next_group
|
1035
960
|
Runner_prototype.$run_next_group = function() {
|
1036
961
|
var __a;
|
1037
962
|
if ((__a = this.groups['$empty?']()) !== false && __a !== nil) {
|
@@ -1041,37 +966,33 @@ if (idx == null) idx = nil;
|
|
1041
966
|
};
|
1042
967
|
};
|
1043
968
|
|
1044
|
-
// line 57, opal-spec/runner, Runner#example_group_started
|
1045
969
|
Runner_prototype.$example_group_started = function(group) {
|
1046
970
|
|
1047
971
|
return this.formatter.$example_group_started(group);
|
1048
972
|
};
|
1049
973
|
|
1050
|
-
// line 61, opal-spec/runner, Runner#example_group_finished
|
1051
974
|
Runner_prototype.$example_group_finished = function(group) {
|
1052
975
|
|
1053
976
|
this.formatter.$example_group_finished(group);
|
1054
977
|
return this.$run_next_group();
|
1055
978
|
};
|
1056
979
|
|
1057
|
-
// line 66, opal-spec/runner, Runner#example_started
|
1058
980
|
Runner_prototype.$example_started = function(example) {
|
1059
981
|
|
1060
982
|
return this.formatter.$example_started(example);
|
1061
983
|
};
|
1062
984
|
|
1063
|
-
// line 70, opal-spec/runner, Runner#example_passed
|
1064
985
|
Runner_prototype.$example_passed = function(example) {
|
1065
986
|
|
1066
987
|
return this.formatter.$example_passed(example);
|
1067
988
|
};
|
1068
989
|
|
1069
|
-
// line 74, opal-spec/runner, Runner#example_failed
|
1070
990
|
Runner_prototype.$example_failed = function(example) {
|
1071
991
|
|
1072
992
|
return this.formatter.$example_failed(example);
|
1073
993
|
};
|
1074
|
-
|
994
|
+
|
995
|
+
return nil;
|
1075
996
|
})(OpalSpec, null)
|
1076
997
|
|
1077
998
|
})(self)
|
@@ -1081,24 +1002,20 @@ if (idx == null) idx = nil;
|
|
1081
1002
|
var __opal = Opal, self = __opal.top, __scope = __opal, nil = __opal.nil, __breaker = __opal.breaker, __slice = __opal.slice, __module = __opal.module;
|
1082
1003
|
|
1083
1004
|
return (function(__base){
|
1084
|
-
// line 1, opal-spec/scratch_pad, module ScratchPad
|
1085
1005
|
function ScratchPad() {};
|
1086
1006
|
ScratchPad = __module(__base, "ScratchPad", ScratchPad);
|
1087
1007
|
var ScratchPad_prototype = ScratchPad.prototype, __scope = ScratchPad._scope;
|
1088
1008
|
|
1089
|
-
// line 2, opal-spec/scratch_pad, ScratchPad.clear
|
1090
1009
|
ScratchPad.$clear = function() {
|
1091
1010
|
|
1092
1011
|
return this.record = nil
|
1093
1012
|
};
|
1094
1013
|
|
1095
|
-
// line 6, opal-spec/scratch_pad, ScratchPad.record
|
1096
1014
|
ScratchPad.$record = function(arg) {
|
1097
1015
|
|
1098
1016
|
return this.record = arg
|
1099
1017
|
};
|
1100
1018
|
|
1101
|
-
// line 10, opal-spec/scratch_pad, ScratchPad.<<
|
1102
1019
|
ScratchPad['$<<'] = function(arg) {
|
1103
1020
|
|
1104
1021
|
if (this.record == null) this.record = nil;
|
@@ -1106,7 +1023,6 @@ if (idx == null) idx = nil;
|
|
1106
1023
|
return this.record['$<<'](arg)
|
1107
1024
|
};
|
1108
1025
|
|
1109
|
-
// line 14, opal-spec/scratch_pad, ScratchPad.recorded
|
1110
1026
|
ScratchPad.$recorded = function() {
|
1111
1027
|
|
1112
1028
|
if (this.record == null) this.record = nil;
|
@@ -1121,7 +1037,6 @@ if (idx == null) idx = nil;
|
|
1121
1037
|
var __opal = Opal, self = __opal.top, __scope = __opal, nil = __opal.nil, __breaker = __opal.breaker, __slice = __opal.slice, __module = __opal.module;
|
1122
1038
|
|
1123
1039
|
return (function(__base){
|
1124
|
-
// line 1, opal-spec/version, module OpalSpec
|
1125
1040
|
function OpalSpec() {};
|
1126
1041
|
OpalSpec = __module(__base, "OpalSpec", OpalSpec);
|
1127
1042
|
var OpalSpec_prototype = OpalSpec.prototype, __scope = OpalSpec._scope;
|