ember-source 1.10.0.beta.2 → 1.10.0.beta.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ember-source might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/dist/ember-runtime.js +11 -8
- data/dist/ember-template-compiler.js +281 -312
- data/dist/ember-testing.js +4 -2
- data/dist/ember-tests.js +140 -164
- data/dist/ember-tests.prod.js +96 -164
- data/dist/ember.debug.js +874 -769
- data/dist/ember.js +874 -769
- data/dist/ember.min.js +15 -15
- data/dist/ember.prod.js +864 -765
- metadata +3 -17
data/dist/ember-testing.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
6
6
|
* @license Licensed under MIT license
|
7
7
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
8
|
-
* @version 1.10.0-beta.
|
8
|
+
* @version 1.10.0-beta.3
|
9
9
|
*/
|
10
10
|
|
11
11
|
(function() {
|
@@ -153,7 +153,9 @@ enifed("ember-debug",
|
|
153
153
|
Ember.warn = function(message, test) {
|
154
154
|
if (!test) {
|
155
155
|
Logger.warn("WARNING: "+message);
|
156
|
-
if ('trace' in Logger)
|
156
|
+
if ('trace' in Logger) {
|
157
|
+
Logger.trace();
|
158
|
+
}
|
157
159
|
}
|
158
160
|
};
|
159
161
|
|
data/dist/ember-tests.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
6
6
|
* @license Licensed under MIT license
|
7
7
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
8
|
-
* @version 1.10.0-beta.
|
8
|
+
* @version 1.10.0-beta.3
|
9
9
|
*/
|
10
10
|
|
11
11
|
(function() {
|
@@ -4037,78 +4037,6 @@ enifed("ember-htmlbars.jshint",
|
|
4037
4037
|
ok(true, 'ember-htmlbars.js should pass jshint.');
|
4038
4038
|
});
|
4039
4039
|
});
|
4040
|
-
enifed("ember-htmlbars/attr_nodes.jshint",
|
4041
|
-
[],
|
4042
|
-
function() {
|
4043
|
-
"use strict";
|
4044
|
-
module('JSHint - ember-htmlbars');
|
4045
|
-
test('ember-htmlbars/attr_nodes.js should pass jshint', function() {
|
4046
|
-
ok(true, 'ember-htmlbars/attr_nodes.js should pass jshint.');
|
4047
|
-
});
|
4048
|
-
});
|
4049
|
-
enifed("ember-htmlbars/attr_nodes/legacy_bind.jshint",
|
4050
|
-
[],
|
4051
|
-
function() {
|
4052
|
-
"use strict";
|
4053
|
-
module('JSHint - ember-htmlbars/attr_nodes');
|
4054
|
-
test('ember-htmlbars/attr_nodes/legacy_bind.js should pass jshint', function() {
|
4055
|
-
ok(true, 'ember-htmlbars/attr_nodes/legacy_bind.js should pass jshint.');
|
4056
|
-
});
|
4057
|
-
});
|
4058
|
-
enifed("ember-htmlbars/attr_nodes/quoted.jshint",
|
4059
|
-
[],
|
4060
|
-
function() {
|
4061
|
-
"use strict";
|
4062
|
-
module('JSHint - ember-htmlbars/attr_nodes');
|
4063
|
-
test('ember-htmlbars/attr_nodes/quoted.js should pass jshint', function() {
|
4064
|
-
ok(true, 'ember-htmlbars/attr_nodes/quoted.js should pass jshint.');
|
4065
|
-
});
|
4066
|
-
});
|
4067
|
-
enifed("ember-htmlbars/attr_nodes/sanitized.jshint",
|
4068
|
-
[],
|
4069
|
-
function() {
|
4070
|
-
"use strict";
|
4071
|
-
module('JSHint - ember-htmlbars/attr_nodes');
|
4072
|
-
test('ember-htmlbars/attr_nodes/sanitized.js should pass jshint', function() {
|
4073
|
-
ok(true, 'ember-htmlbars/attr_nodes/sanitized.js should pass jshint.');
|
4074
|
-
});
|
4075
|
-
});
|
4076
|
-
enifed("ember-htmlbars/attr_nodes/simple.jshint",
|
4077
|
-
[],
|
4078
|
-
function() {
|
4079
|
-
"use strict";
|
4080
|
-
module('JSHint - ember-htmlbars/attr_nodes');
|
4081
|
-
test('ember-htmlbars/attr_nodes/simple.js should pass jshint', function() {
|
4082
|
-
ok(true, 'ember-htmlbars/attr_nodes/simple.js should pass jshint.');
|
4083
|
-
});
|
4084
|
-
});
|
4085
|
-
enifed("ember-htmlbars/attr_nodes/unquoted.jshint",
|
4086
|
-
[],
|
4087
|
-
function() {
|
4088
|
-
"use strict";
|
4089
|
-
module('JSHint - ember-htmlbars/attr_nodes');
|
4090
|
-
test('ember-htmlbars/attr_nodes/unquoted.js should pass jshint', function() {
|
4091
|
-
ok(true, 'ember-htmlbars/attr_nodes/unquoted.js should pass jshint.');
|
4092
|
-
});
|
4093
|
-
});
|
4094
|
-
enifed("ember-htmlbars/attr_nodes/unquoted_nonproperty.jshint",
|
4095
|
-
[],
|
4096
|
-
function() {
|
4097
|
-
"use strict";
|
4098
|
-
module('JSHint - ember-htmlbars/attr_nodes');
|
4099
|
-
test('ember-htmlbars/attr_nodes/unquoted_nonproperty.js should pass jshint', function() {
|
4100
|
-
ok(true, 'ember-htmlbars/attr_nodes/unquoted_nonproperty.js should pass jshint.');
|
4101
|
-
});
|
4102
|
-
});
|
4103
|
-
enifed("ember-htmlbars/attr_nodes/utils.jshint",
|
4104
|
-
[],
|
4105
|
-
function() {
|
4106
|
-
"use strict";
|
4107
|
-
module('JSHint - ember-htmlbars/attr_nodes');
|
4108
|
-
test('ember-htmlbars/attr_nodes/utils.js should pass jshint', function() {
|
4109
|
-
ok(true, 'ember-htmlbars/attr_nodes/utils.js should pass jshint.');
|
4110
|
-
});
|
4111
|
-
});
|
4112
4040
|
enifed("ember-htmlbars/compat.jshint",
|
4113
4041
|
[],
|
4114
4042
|
function() {
|
@@ -4325,6 +4253,15 @@ enifed("ember-htmlbars/hooks/attribute.jshint",
|
|
4325
4253
|
ok(true, 'ember-htmlbars/hooks/attribute.js should pass jshint.');
|
4326
4254
|
});
|
4327
4255
|
});
|
4256
|
+
enifed("ember-htmlbars/hooks/block.jshint",
|
4257
|
+
[],
|
4258
|
+
function() {
|
4259
|
+
"use strict";
|
4260
|
+
module('JSHint - ember-htmlbars/hooks');
|
4261
|
+
test('ember-htmlbars/hooks/block.js should pass jshint', function() {
|
4262
|
+
ok(true, 'ember-htmlbars/hooks/block.js should pass jshint.');
|
4263
|
+
});
|
4264
|
+
});
|
4328
4265
|
enifed("ember-htmlbars/hooks/component.jshint",
|
4329
4266
|
[],
|
4330
4267
|
function() {
|
@@ -4370,6 +4307,15 @@ enifed("ember-htmlbars/hooks/get.jshint",
|
|
4370
4307
|
ok(true, 'ember-htmlbars/hooks/get.js should pass jshint.');
|
4371
4308
|
});
|
4372
4309
|
});
|
4310
|
+
enifed("ember-htmlbars/hooks/inline.jshint",
|
4311
|
+
[],
|
4312
|
+
function() {
|
4313
|
+
"use strict";
|
4314
|
+
module('JSHint - ember-htmlbars/hooks');
|
4315
|
+
test('ember-htmlbars/hooks/inline.js should pass jshint', function() {
|
4316
|
+
ok(true, 'ember-htmlbars/hooks/inline.js should pass jshint.');
|
4317
|
+
});
|
4318
|
+
});
|
4373
4319
|
enifed("ember-htmlbars/hooks/set.jshint",
|
4374
4320
|
[],
|
4375
4321
|
function() {
|
@@ -4551,6 +4497,13 @@ enifed("ember-htmlbars/tests/attr_nodes/nonmatching_reflection_test",
|
|
4551
4497
|
run(function() { view.appendTo('#qunit-fixture'); });
|
4552
4498
|
}
|
4553
4499
|
|
4500
|
+
function canSetFalsyMaxLength() {
|
4501
|
+
var input = document.createElement('input');
|
4502
|
+
input.maxLength = 0;
|
4503
|
+
|
4504
|
+
return input.maxLength === 0;
|
4505
|
+
}
|
4506
|
+
|
4554
4507
|
});
|
4555
4508
|
enifed("ember-htmlbars/tests/attr_nodes/nonmatching_reflection_test.jshint",
|
4556
4509
|
[],
|
@@ -6211,7 +6164,7 @@ enifed("ember-htmlbars/tests/helpers/bind_attr_test",
|
|
6211
6164
|
|
6212
6165
|
test("should keep class in the order it appears in", function() {
|
6213
6166
|
view = EmberView.create({
|
6214
|
-
template: compile('<span {{bind-attr class=":foo :baz"}}></span>')
|
6167
|
+
template: compile('<span {{bind-attr class=":foo :baz"}}></span>')
|
6215
6168
|
});
|
6216
6169
|
|
6217
6170
|
runAppend(view);
|
@@ -6287,6 +6240,8 @@ enifed("ember-htmlbars/tests/helpers/bind_test",
|
|
6287
6240
|
container.optionsForType('template', { instantiate: false });
|
6288
6241
|
container.register('view:default', _MetamorphView);
|
6289
6242
|
container.register('view:toplevel', EmberView.extend());
|
6243
|
+
|
6244
|
+
expectDeprecation('The `{{bind}}` helper has been deprecated and will be removed.');
|
6290
6245
|
},
|
6291
6246
|
teardown: function() {
|
6292
6247
|
runDestroy(container);
|
@@ -6354,6 +6309,8 @@ enifed("ember-htmlbars/tests/helpers/bind_test",
|
|
6354
6309
|
setup: function() {
|
6355
6310
|
container = new Container();
|
6356
6311
|
container.optionsForType('template', { instantiate: false });
|
6312
|
+
|
6313
|
+
expectDeprecation('The `{{bind}}` helper has been deprecated and will be removed.');
|
6357
6314
|
},
|
6358
6315
|
teardown: function() {
|
6359
6316
|
runDestroy(container);
|
@@ -8369,12 +8326,12 @@ enifed("ember-htmlbars/tests/helpers/if_unless_test",
|
|
8369
8326
|
test("The `unless` helper does not error on undefined", function() {
|
8370
8327
|
view = EmberView.create({
|
8371
8328
|
undefinedValue: undefined,
|
8372
|
-
template: compile('{{#unless view.undefinedValue}}
|
8329
|
+
template: compile('{{#unless view.undefinedValue}}YepBound{{/unless}}{{#unbound unless view.undefinedValue}}YepUnbound{{/unbound}}')
|
8373
8330
|
});
|
8374
8331
|
|
8375
8332
|
runAppend(view);
|
8376
8333
|
|
8377
|
-
equal(view.$().text(), '
|
8334
|
+
equal(view.$().text(), 'YepBoundYepUnbound');
|
8378
8335
|
});
|
8379
8336
|
|
8380
8337
|
test("The `if` helper does not print the contents for an object proxy without content", function() {
|
@@ -8595,29 +8552,6 @@ enifed("ember-htmlbars/tests/helpers/if_unless_test",
|
|
8595
8552
|
equal(view.$().text(), '');
|
8596
8553
|
});
|
8597
8554
|
|
8598
|
-
test('views within an if statement should be sane on re-render', function() {
|
8599
|
-
view = EmberView.create({
|
8600
|
-
template: compile('{{#if view.display}}{{input}}{{/if}}'),
|
8601
|
-
display: false
|
8602
|
-
});
|
8603
|
-
|
8604
|
-
runAppend(view);
|
8605
|
-
|
8606
|
-
equal(view.$('input').length, 0);
|
8607
|
-
|
8608
|
-
run(function() {
|
8609
|
-
// Setting twice will trigger the observer twice, this is intentional
|
8610
|
-
view.set('display', true);
|
8611
|
-
view.set('display', 'yes');
|
8612
|
-
});
|
8613
|
-
|
8614
|
-
var textfield = view.$('input');
|
8615
|
-
equal(textfield.length, 1);
|
8616
|
-
|
8617
|
-
// Make sure the view is still registered in View.views
|
8618
|
-
ok(EmberView.views[textfield.attr('id')]);
|
8619
|
-
});
|
8620
|
-
|
8621
8555
|
test('should update the block when object passed to #if helper changes', function() {
|
8622
8556
|
container.register('template:menu', compile('<h1>{{#if view.inception}}{{view.INCEPTION}}{{/if}}</h1>'));
|
8623
8557
|
|
@@ -8781,29 +8715,6 @@ enifed("ember-htmlbars/tests/helpers/if_unless_test",
|
|
8781
8715
|
equal(view.$().text(), '');
|
8782
8716
|
});
|
8783
8717
|
|
8784
|
-
test('views within an if statement should be sane on re-render', function() {
|
8785
|
-
view = EmberView.create({
|
8786
|
-
template: compile('{{#if view.display}}{{input}}{{/if}}'),
|
8787
|
-
display: false
|
8788
|
-
});
|
8789
|
-
|
8790
|
-
runAppend(view);
|
8791
|
-
|
8792
|
-
equal(view.$('input').length, 0);
|
8793
|
-
|
8794
|
-
run(function() {
|
8795
|
-
// Setting twice will trigger the observer twice, this is intentional
|
8796
|
-
view.set('display', true);
|
8797
|
-
view.set('display', 'yes');
|
8798
|
-
});
|
8799
|
-
|
8800
|
-
var textfield = view.$('input');
|
8801
|
-
equal(textfield.length, 1);
|
8802
|
-
|
8803
|
-
// Make sure the view is still registered in View.views
|
8804
|
-
ok(EmberView.views[textfield.attr('id')]);
|
8805
|
-
});
|
8806
|
-
|
8807
8718
|
test('should update the block when object passed to #if helper changes', function() {
|
8808
8719
|
container.register('template:menu', compile('<h1>{{#if view.inception}}{{view.INCEPTION}}{{/if}}</h1>'));
|
8809
8720
|
|
@@ -8871,29 +8782,6 @@ enifed("ember-htmlbars/tests/helpers/if_unless_test",
|
|
8871
8782
|
});
|
8872
8783
|
});
|
8873
8784
|
|
8874
|
-
test('views within an if statement should be sane on re-render', function() {
|
8875
|
-
view = EmberView.create({
|
8876
|
-
template: compile('{{#if view.display}}{{input}}{{/if}}'),
|
8877
|
-
display: false
|
8878
|
-
});
|
8879
|
-
|
8880
|
-
runAppend(view);
|
8881
|
-
|
8882
|
-
equal(view.$('input').length, 0);
|
8883
|
-
|
8884
|
-
run(function() {
|
8885
|
-
// Setting twice will trigger the observer twice, this is intentional
|
8886
|
-
view.set('display', true);
|
8887
|
-
view.set('display', 'yes');
|
8888
|
-
});
|
8889
|
-
|
8890
|
-
var textfield = view.$('input');
|
8891
|
-
equal(textfield.length, 1);
|
8892
|
-
|
8893
|
-
// Make sure the view is still registered in View.views
|
8894
|
-
ok(EmberView.views[textfield.attr('id')]);
|
8895
|
-
});
|
8896
|
-
|
8897
8785
|
test('the {{this}} helper should not fail on removal', function() {
|
8898
8786
|
view = EmberView.create({
|
8899
8787
|
context: 'abc',
|
@@ -9454,7 +9342,7 @@ enifed("ember-htmlbars/tests/helpers/log_test",
|
|
9454
9342
|
test('should be able to log `this`', function() {
|
9455
9343
|
view = EmberView.create({
|
9456
9344
|
context: 'one',
|
9457
|
-
template: compile('{{log this}}')
|
9345
|
+
template: compile('{{log this}}')
|
9458
9346
|
});
|
9459
9347
|
|
9460
9348
|
runAppend(view);
|
@@ -13159,7 +13047,7 @@ enifed("ember-htmlbars/tests/integration/escape_integration_test",
|
|
13159
13047
|
test('should escape HTML in primitive value contexts when using normal mustaches', function() {
|
13160
13048
|
view = EmberView.create({
|
13161
13049
|
context: '<b>Max</b><b>James</b>',
|
13162
|
-
template: compile('{{this}}')
|
13050
|
+
template: compile('{{this}}')
|
13163
13051
|
});
|
13164
13052
|
|
13165
13053
|
runAppend(view);
|
@@ -13178,7 +13066,7 @@ enifed("ember-htmlbars/tests/integration/escape_integration_test",
|
|
13178
13066
|
test('should not escape HTML in primitive value contexts when using triple mustaches', function() {
|
13179
13067
|
view = EmberView.create({
|
13180
13068
|
context: '<b>Max</b><b>James</b>',
|
13181
|
-
template: compile('{{{this}}}')
|
13069
|
+
template: compile('{{{this}}}')
|
13182
13070
|
});
|
13183
13071
|
|
13184
13072
|
runAppend(view);
|
@@ -15661,6 +15549,12 @@ enifed("ember-metal/tests/accessors/mandatory_setters_test",
|
|
15661
15549
|
|
15662
15550
|
QUnit.module('mandatory-setters');
|
15663
15551
|
|
15552
|
+
function hasMandatorySetter(object, property) {
|
15553
|
+
var meta = metaFor(object);
|
15554
|
+
|
15555
|
+
return property in meta.values;
|
15556
|
+
}
|
15557
|
+
|
15664
15558
|
|
15665
15559
|
if (hasPropertyAccessors) {
|
15666
15560
|
test('does not assert if property is not being watched', function() {
|
@@ -15675,6 +15569,50 @@ enifed("ember-metal/tests/accessors/mandatory_setters_test",
|
|
15675
15569
|
equal(get(obj, 'someProp'), 'blastix');
|
15676
15570
|
});
|
15677
15571
|
|
15572
|
+
test('should not setup mandatory-setter if property is not writable', function() {
|
15573
|
+
expect(6);
|
15574
|
+
|
15575
|
+
var obj = { };
|
15576
|
+
|
15577
|
+
defineProperty(obj, 'a', { value: true });
|
15578
|
+
defineProperty(obj, 'b', { value: false });
|
15579
|
+
defineProperty(obj, 'c', { value: undefined });
|
15580
|
+
defineProperty(obj, 'd', { value: undefined, writable: false});
|
15581
|
+
defineProperty(obj, 'e', { value: undefined, configurable: false});
|
15582
|
+
defineProperty(obj, 'f', { value: undefined, configurable: true});
|
15583
|
+
|
15584
|
+
watch(obj, 'a');
|
15585
|
+
watch(obj, 'b');
|
15586
|
+
watch(obj, 'c');
|
15587
|
+
watch(obj, 'd');
|
15588
|
+
watch(obj, 'e');
|
15589
|
+
watch(obj, 'f');
|
15590
|
+
|
15591
|
+
ok(!hasMandatorySetter(obj, 'a'), 'mandatory-setter should not be installed');
|
15592
|
+
ok(!hasMandatorySetter(obj, 'b'), 'mandatory-setter should not be installed');
|
15593
|
+
ok(!hasMandatorySetter(obj, 'c'), 'mandatory-setter should not be installed');
|
15594
|
+
ok(!hasMandatorySetter(obj, 'd'), 'mandatory-setter should not be installed');
|
15595
|
+
ok(!hasMandatorySetter(obj, 'e'), 'mandatory-setter should not be installed');
|
15596
|
+
ok(!hasMandatorySetter(obj, 'f'), 'mandatory-setter should not be installed');
|
15597
|
+
});
|
15598
|
+
|
15599
|
+
test('should not setup mandatory-setter if setter is already setup on property', function() {
|
15600
|
+
expect(2);
|
15601
|
+
|
15602
|
+
var obj = { someProp: null };
|
15603
|
+
|
15604
|
+
defineProperty(obj, 'someProp', {
|
15605
|
+
set: function(value) {
|
15606
|
+
equal(value, 'foo-bar', 'custom setter was called');
|
15607
|
+
}
|
15608
|
+
});
|
15609
|
+
|
15610
|
+
watch(obj, 'someProp');
|
15611
|
+
ok(!hasMandatorySetter(obj, 'someProp'), 'mandatory-setter should not be installed');
|
15612
|
+
|
15613
|
+
obj.someProp = 'foo-bar';
|
15614
|
+
});
|
15615
|
+
|
15678
15616
|
test('should assert if set without Ember.set when property is being watched', function() {
|
15679
15617
|
var obj = {
|
15680
15618
|
someProp: null,
|
@@ -19397,7 +19335,7 @@ enifed("ember-metal/tests/map_test",
|
|
19397
19335
|
var expectations = [
|
19398
19336
|
{ value: 1, key: "a", context: unboundThis },
|
19399
19337
|
{ value: 2, key: "b", context: unboundThis },
|
19400
|
-
{ value: 3, key: "c", context: unboundThis }
|
19338
|
+
{ value: 3, key: "c", context: unboundThis }
|
19401
19339
|
];
|
19402
19340
|
|
19403
19341
|
map.forEach(function(value, key, theMap) {
|
@@ -19425,7 +19363,7 @@ enifed("ember-metal/tests/map_test",
|
|
19425
19363
|
var expectations = [
|
19426
19364
|
{ value: 1, key: "a", context: context },
|
19427
19365
|
{ value: 2, key: "b", context: context },
|
19428
|
-
{ value: 3, key: "c", context: context }
|
19366
|
+
{ value: 3, key: "c", context: context }
|
19429
19367
|
];
|
19430
19368
|
|
19431
19369
|
map.forEach(function(value, key, theMap) {
|
@@ -19484,7 +19422,7 @@ enifed("ember-metal/tests/map_test",
|
|
19484
19422
|
{ value: 1, key: "a", context: unboundThis },
|
19485
19423
|
{ value: 2, key: "b", context: unboundThis },
|
19486
19424
|
{ value: 3, key: "c", context: unboundThis },
|
19487
|
-
{ value: 4, key: "d", context: unboundThis }
|
19425
|
+
{ value: 4, key: "d", context: unboundThis }
|
19488
19426
|
];
|
19489
19427
|
|
19490
19428
|
map.forEach(function(value, key, theMap) {
|
@@ -26442,7 +26380,7 @@ enifed("ember-routing-htmlbars/tests/helpers/outlet_test",
|
|
26442
26380
|
test("should not throw deprecations if {{outlet}} is used with a quoted name", function() {
|
26443
26381
|
expectNoDeprecation();
|
26444
26382
|
view = EmberView.create({
|
26445
|
-
template: compile("{{outlet \"foo\"}}")
|
26383
|
+
template: compile("{{outlet \"foo\"}}")
|
26446
26384
|
});
|
26447
26385
|
runAppend(view);
|
26448
26386
|
});
|
@@ -26450,7 +26388,7 @@ enifed("ember-routing-htmlbars/tests/helpers/outlet_test",
|
|
26450
26388
|
|
26451
26389
|
test("should throw an assertion if {{outlet}} used with unquoted name", function() {
|
26452
26390
|
view = EmberView.create({
|
26453
|
-
template: compile("{{outlet foo}}")
|
26391
|
+
template: compile("{{outlet foo}}")
|
26454
26392
|
});
|
26455
26393
|
expectAssertion(function() {
|
26456
26394
|
runAppend(view);
|
@@ -28220,7 +28158,8 @@ enifed("ember-routing/tests/system/controller_for_test",
|
|
28220
28158
|
});
|
28221
28159
|
|
28222
28160
|
test("generateController should create App.ObjectController if provided", function() {
|
28223
|
-
var context = {}
|
28161
|
+
var context = {};
|
28162
|
+
var controller;
|
28224
28163
|
namespace.ObjectController = ObjectController.extend();
|
28225
28164
|
|
28226
28165
|
controller = generateController(container, 'home', context);
|
@@ -28230,7 +28169,8 @@ enifed("ember-routing/tests/system/controller_for_test",
|
|
28230
28169
|
});
|
28231
28170
|
|
28232
28171
|
test("generateController should create App.ArrayController if provided", function() {
|
28233
|
-
var context = Ember.A()
|
28172
|
+
var context = Ember.A();
|
28173
|
+
var controller;
|
28234
28174
|
namespace.ArrayController = ArrayController.extend();
|
28235
28175
|
|
28236
28176
|
controller = generateController(container, 'home', context);
|
@@ -28562,8 +28502,8 @@ enifed("ember-routing/tests/system/route_test",
|
|
28562
28502
|
|
28563
28503
|
container.register('service:auth', Service.extend());
|
28564
28504
|
|
28565
|
-
var appRoute = container.lookup('route:application')
|
28566
|
-
|
28505
|
+
var appRoute = container.lookup('route:application');
|
28506
|
+
var authService = container.lookup('service:auth');
|
28567
28507
|
|
28568
28508
|
equal(authService, appRoute.get('authService'), "service.auth is injected");
|
28569
28509
|
});
|
@@ -29561,6 +29501,20 @@ enifed("ember-runtime/tests/computed/reduce_computed_macros_test",
|
|
29561
29501
|
deepEqual(get(obj, 'filtered'), ['b'], "index is passed to callback correctly");
|
29562
29502
|
});
|
29563
29503
|
|
29504
|
+
test("it passes the array to the callback", function() {
|
29505
|
+
var array = Ember.A(['a', 'b', 'c']);
|
29506
|
+
|
29507
|
+
run(function() {
|
29508
|
+
obj = EmberObject.createWithMixins({
|
29509
|
+
array: array,
|
29510
|
+
filtered: computedFilter('array', function (item, index, array) { return index === array.get('length') - 2; })
|
29511
|
+
});
|
29512
|
+
get(obj, 'filtered');
|
29513
|
+
});
|
29514
|
+
|
29515
|
+
deepEqual(get(obj, 'filtered'), ['b'], "array is passed to callback correctly");
|
29516
|
+
});
|
29517
|
+
|
29564
29518
|
test("it caches properly", function() {
|
29565
29519
|
var array = get(obj, 'array');
|
29566
29520
|
get(obj, 'filtered');
|
@@ -46761,7 +46715,9 @@ enifed("ember-testing/tests/adapters/adapter_test",
|
|
46761
46715
|
// });
|
46762
46716
|
|
46763
46717
|
test("exception throws", function() {
|
46764
|
-
var error = "Hai"
|
46718
|
+
var error = "Hai";
|
46719
|
+
var thrown;
|
46720
|
+
|
46765
46721
|
try {
|
46766
46722
|
adapter.exception(error);
|
46767
46723
|
} catch (e) {
|
@@ -48010,6 +47966,24 @@ enifed("ember-views.jshint",
|
|
48010
47966
|
ok(true, 'ember-views.js should pass jshint.');
|
48011
47967
|
});
|
48012
47968
|
});
|
47969
|
+
enifed("ember-views/attr_nodes/attr_node.jshint",
|
47970
|
+
[],
|
47971
|
+
function() {
|
47972
|
+
"use strict";
|
47973
|
+
module('JSHint - ember-views/attr_nodes');
|
47974
|
+
test('ember-views/attr_nodes/attr_node.js should pass jshint', function() {
|
47975
|
+
ok(true, 'ember-views/attr_nodes/attr_node.js should pass jshint.');
|
47976
|
+
});
|
47977
|
+
});
|
47978
|
+
enifed("ember-views/attr_nodes/legacy_bind.jshint",
|
47979
|
+
[],
|
47980
|
+
function() {
|
47981
|
+
"use strict";
|
47982
|
+
module('JSHint - ember-views/attr_nodes');
|
47983
|
+
test('ember-views/attr_nodes/legacy_bind.js should pass jshint', function() {
|
47984
|
+
ok(true, 'ember-views/attr_nodes/legacy_bind.js should pass jshint.');
|
47985
|
+
});
|
47986
|
+
});
|
48013
47987
|
enifed("ember-views/component_lookup.jshint",
|
48014
47988
|
[],
|
48015
47989
|
function() {
|
@@ -52420,7 +52394,7 @@ enifed("ember-views/tests/views/simple_bound_view_test",
|
|
52420
52394
|
var isEscaped = true;
|
52421
52395
|
var view = new SimpleBoundView(lazyValue, isEscaped);
|
52422
52396
|
view._morph = {
|
52423
|
-
|
52397
|
+
setContent: function(newValue) {
|
52424
52398
|
value = newValue;
|
52425
52399
|
}
|
52426
52400
|
};
|
@@ -52429,19 +52403,19 @@ enifed("ember-views/tests/views/simple_bound_view_test",
|
|
52429
52403
|
|
52430
52404
|
view.update();
|
52431
52405
|
|
52432
|
-
equal(value, 'bar', 'expected call to morph.
|
52406
|
+
equal(value, 'bar', 'expected call to morph.setContent with "bar"');
|
52433
52407
|
value = null;
|
52434
52408
|
|
52435
52409
|
view.update();
|
52436
52410
|
|
52437
|
-
equal(value, null, 'expected no call to morph.
|
52411
|
+
equal(value, null, 'expected no call to morph.setContent');
|
52438
52412
|
|
52439
52413
|
obj.foo = 'baz'; // change property
|
52440
52414
|
lazyValue.notify();
|
52441
52415
|
|
52442
52416
|
view.update();
|
52443
52417
|
|
52444
|
-
equal(value, 'baz', 'expected call to morph.
|
52418
|
+
equal(value, 'baz', 'expected call to morph.setContent with "baz"');
|
52445
52419
|
});
|
52446
52420
|
});
|
52447
52421
|
enifed("ember-views/tests/views/simple_bound_view_test.jshint",
|
@@ -61778,7 +61752,8 @@ enifed("ember/tests/routing/basic_test",
|
|
61778
61752
|
this.route("home");
|
61779
61753
|
});
|
61780
61754
|
|
61781
|
-
var chooseFollowed = 0
|
61755
|
+
var chooseFollowed = 0;
|
61756
|
+
var destination;
|
61782
61757
|
|
61783
61758
|
App.ChooseRoute = Ember.Route.extend({
|
61784
61759
|
redirect: function() {
|
@@ -63471,7 +63446,8 @@ enifed("ember/tests/routing/query_params_test",
|
|
63471
63446
|
});
|
63472
63447
|
}
|
63473
63448
|
|
63474
|
-
var startingURL = ''
|
63449
|
+
var startingURL = '';
|
63450
|
+
var expectedReplaceURL, expectedPushURL;
|
63475
63451
|
|
63476
63452
|
function setAndFlush(obj, prop, value) {
|
63477
63453
|
Ember.run(obj, 'set', prop, value);
|