ember-source 1.11.0.1 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +13 -13
- data/dist/ember-template-compiler.js +5 -5
- data/dist/ember-testing.js +1 -1
- data/dist/ember-tests.js +138 -6
- data/dist/ember-tests.prod.js +138 -6
- data/dist/ember.debug.cjs.js +83 -44
- data/dist/ember.debug.js +83 -44
- data/dist/ember.js +83 -44
- data/dist/ember.min.js +15 -13
- data/dist/ember.prod.js +80 -41
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2009c1cbc370ef8b1bb0673ce535ec96abc27e9
|
4
|
+
data.tar.gz: ad7d33f8c3a07088b63ca666257f40da13caccb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d2786cf57e4d74b35ca7901f19b291af948d462ac0b3e63c382abd45cabe84c04ba9afad87e46e491ca680c22bf1f42510b7bb8b972183fca304c2f71d28c96
|
7
|
+
data.tar.gz: b81712a38b0929757a87625f2ff1a9901f818a4ab95cfed6fe42eeecf1bc9f413ba4e1538a43eb28a0615c0cdb8879a0cf81eb6678bfe7006e87fd955730c3f1
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.11.
|
1
|
+
1.11.1
|
data/dist/ember-runtime.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.11.
|
8
|
+
* @version 1.11.1
|
9
9
|
*/
|
10
10
|
|
11
11
|
(function() {
|
@@ -4949,7 +4949,7 @@ enifed('ember-metal/core', ['exports'], function (exports) {
|
|
4949
4949
|
|
4950
4950
|
@class Ember
|
4951
4951
|
@static
|
4952
|
-
@version 1.11.
|
4952
|
+
@version 1.11.1
|
4953
4953
|
*/
|
4954
4954
|
|
4955
4955
|
if ('undefined' === typeof Ember) {
|
@@ -4977,10 +4977,10 @@ enifed('ember-metal/core', ['exports'], function (exports) {
|
|
4977
4977
|
/**
|
4978
4978
|
@property VERSION
|
4979
4979
|
@type String
|
4980
|
-
@default '1.11.
|
4980
|
+
@default '1.11.1'
|
4981
4981
|
@static
|
4982
4982
|
*/
|
4983
|
-
Ember.VERSION = '1.11.
|
4983
|
+
Ember.VERSION = '1.11.1';
|
4984
4984
|
|
4985
4985
|
/**
|
4986
4986
|
Standard environmental variables. You can define these in a global `EmberENV`
|
@@ -10362,7 +10362,7 @@ enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports,
|
|
10362
10362
|
return object && object.isStream;
|
10363
10363
|
}
|
10364
10364
|
|
10365
|
-
|
10365
|
+
/*
|
10366
10366
|
A method of subscribing to a stream which is safe for use with a non-stream
|
10367
10367
|
object. If a non-stream object is passed, the function does nothing.
|
10368
10368
|
|
@@ -10380,7 +10380,7 @@ enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports,
|
|
10380
10380
|
}
|
10381
10381
|
}
|
10382
10382
|
|
10383
|
-
|
10383
|
+
/*
|
10384
10384
|
A method of unsubscribing from a stream which is safe for use with a non-stream
|
10385
10385
|
object. If a non-stream object is passed, the function does nothing.
|
10386
10386
|
|
@@ -10397,7 +10397,7 @@ enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports,
|
|
10397
10397
|
}
|
10398
10398
|
}
|
10399
10399
|
|
10400
|
-
|
10400
|
+
/*
|
10401
10401
|
Retrieve the value of a stream, or in the case a non-stream object is passed,
|
10402
10402
|
return the object itself.
|
10403
10403
|
|
@@ -10415,7 +10415,7 @@ enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports,
|
|
10415
10415
|
}
|
10416
10416
|
}
|
10417
10417
|
|
10418
|
-
|
10418
|
+
/*
|
10419
10419
|
Map an array, replacing any streams with their values.
|
10420
10420
|
|
10421
10421
|
@public
|
@@ -10436,7 +10436,7 @@ enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports,
|
|
10436
10436
|
return ret;
|
10437
10437
|
}
|
10438
10438
|
|
10439
|
-
|
10439
|
+
/*
|
10440
10440
|
Map a hash, replacing any stream property values with the current value of that
|
10441
10441
|
stream.
|
10442
10442
|
|
@@ -10457,7 +10457,7 @@ enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports,
|
|
10457
10457
|
return ret;
|
10458
10458
|
}
|
10459
10459
|
|
10460
|
-
|
10460
|
+
/*
|
10461
10461
|
Check whether an array contains any stream values
|
10462
10462
|
|
10463
10463
|
@public
|
@@ -10481,7 +10481,7 @@ enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports,
|
|
10481
10481
|
return containsStream;
|
10482
10482
|
}
|
10483
10483
|
|
10484
|
-
|
10484
|
+
/*
|
10485
10485
|
Check whether a hash has any stream property values
|
10486
10486
|
|
10487
10487
|
@public
|
@@ -10504,7 +10504,7 @@ enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports,
|
|
10504
10504
|
return containsStream;
|
10505
10505
|
}
|
10506
10506
|
|
10507
|
-
|
10507
|
+
/*
|
10508
10508
|
Join an array, with any streams replaced by their current values
|
10509
10509
|
|
10510
10510
|
@public
|
@@ -10537,7 +10537,7 @@ enifed('ember-metal/streams/utils', ['exports', './stream'], function (exports,
|
|
10537
10537
|
}
|
10538
10538
|
}
|
10539
10539
|
|
10540
|
-
|
10540
|
+
/*
|
10541
10541
|
Generate a new stream by providing a source stream and a function that can
|
10542
10542
|
be used to transform the stream's value. In the case of a non-stream object,
|
10543
10543
|
returns the result of the function.
|
@@ -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.11.
|
8
|
+
* @version 1.11.1
|
9
9
|
*/
|
10
10
|
|
11
11
|
(function() {
|
@@ -133,7 +133,7 @@ enifed('ember-metal/core', ['exports'], function (exports) {
|
|
133
133
|
|
134
134
|
@class Ember
|
135
135
|
@static
|
136
|
-
@version 1.11.
|
136
|
+
@version 1.11.1
|
137
137
|
*/
|
138
138
|
|
139
139
|
if ('undefined' === typeof Ember) {
|
@@ -161,10 +161,10 @@ enifed('ember-metal/core', ['exports'], function (exports) {
|
|
161
161
|
/**
|
162
162
|
@property VERSION
|
163
163
|
@type String
|
164
|
-
@default '1.11.
|
164
|
+
@default '1.11.1'
|
165
165
|
@static
|
166
166
|
*/
|
167
|
-
Ember.VERSION = '1.11.
|
167
|
+
Ember.VERSION = '1.11.1';
|
168
168
|
|
169
169
|
/**
|
170
170
|
Standard environmental variables. You can define these in a global `EmberENV`
|
@@ -595,7 +595,7 @@ enifed('ember-template-compiler/system/compile_options', ['exports', 'ember-meta
|
|
595
595
|
var disableComponentGeneration = true;
|
596
596
|
|
597
597
|
return {
|
598
|
-
revision: 'Ember@1.11.
|
598
|
+
revision: 'Ember@1.11.1',
|
599
599
|
|
600
600
|
disableComponentGeneration: disableComponentGeneration,
|
601
601
|
|
data/dist/ember-testing.js
CHANGED
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.11.
|
8
|
+
* @version 1.11.1
|
9
9
|
*/
|
10
10
|
|
11
11
|
(function() {
|
@@ -6890,7 +6890,28 @@ enifed('ember-htmlbars/tests/compat/helper_test', ['ember-htmlbars/compat/helper
|
|
6890
6890
|
controller: {
|
6891
6891
|
value: 'foo'
|
6892
6892
|
},
|
6893
|
-
template: compile['default']('{{#test}}
|
6893
|
+
template: compile['default']('{{#test}}{{value}}{{/test}}')
|
6894
|
+
});
|
6895
|
+
|
6896
|
+
utils.runAppend(view);
|
6897
|
+
|
6898
|
+
equal(view.$().text(), 'foo');
|
6899
|
+
});
|
6900
|
+
|
6901
|
+
QUnit.test('allows usage of the template inverse', function() {
|
6902
|
+
expect(1);
|
6903
|
+
|
6904
|
+
function someHelper(options) {
|
6905
|
+
options.inverse();
|
6906
|
+
}
|
6907
|
+
|
6908
|
+
compat__helper.registerHandlebarsCompatibleHelper('test', someHelper);
|
6909
|
+
|
6910
|
+
view = EmberView['default'].create({
|
6911
|
+
controller: {
|
6912
|
+
value: 'foo'
|
6913
|
+
},
|
6914
|
+
template: compile['default']('{{#test}}Nothing to see here.{{else}}{{value}}{{/test}}')
|
6894
6915
|
});
|
6895
6916
|
|
6896
6917
|
utils.runAppend(view);
|
@@ -16873,7 +16894,8 @@ enifed('ember-htmlbars/tests/system/lookup-helper_test', ['ember-htmlbars/system
|
|
16873
16894
|
|
16874
16895
|
function generateEnv(helpers) {
|
16875
16896
|
return {
|
16876
|
-
helpers: (helpers ? helpers : {})
|
16897
|
+
helpers: (helpers ? helpers : {}),
|
16898
|
+
data: { view: { } }
|
16877
16899
|
};
|
16878
16900
|
}
|
16879
16901
|
|
@@ -16960,7 +16982,11 @@ enifed('ember-htmlbars/tests/system/lookup-helper_test', ['ember-htmlbars/system
|
|
16960
16982
|
var fakeOptions = {
|
16961
16983
|
morph: { update: function() { } }
|
16962
16984
|
};
|
16963
|
-
var fakeEnv = {
|
16985
|
+
var fakeEnv = {
|
16986
|
+
data: {
|
16987
|
+
view: { }
|
16988
|
+
}
|
16989
|
+
};
|
16964
16990
|
actual.helperFunction(fakeParams, fakeHash, fakeOptions, fakeEnv);
|
16965
16991
|
|
16966
16992
|
ok(called, 'HTMLBars compatible wrapper is wraping the provided function');
|
@@ -17357,7 +17383,7 @@ enifed('ember-htmlbars/tests/system/render_view_test', ['ember-runtime/tests/uti
|
|
17357
17383
|
view = EmberView['default'].create({
|
17358
17384
|
template: {
|
17359
17385
|
isHTMLBars: true,
|
17360
|
-
revision: 'Ember@1.11.
|
17386
|
+
revision: 'Ember@1.11.1',
|
17361
17387
|
render: function(view, env, contextualElement, blockArguments) {
|
17362
17388
|
for (var i = 0, l = keyNames.length; i < l; i++) {
|
17363
17389
|
var keyName = keyNames[i];
|
@@ -31321,6 +31347,23 @@ enifed('ember-routing-htmlbars/tests/helpers/render_test', ['ember-metal/core',
|
|
31321
31347
|
equal(view.$().text(), 'Hello other!');
|
31322
31348
|
});
|
31323
31349
|
|
31350
|
+
QUnit.test("{{render}} helper should not require view to provide its own template", function() {
|
31351
|
+
var template = "{{render 'fish'}}";
|
31352
|
+
var controller = controllers__controller["default"].extend({ container: container });
|
31353
|
+
view = EmberView['default'].create({
|
31354
|
+
controller: controller.create(),
|
31355
|
+
template: compile['default'](template)
|
31356
|
+
});
|
31357
|
+
|
31358
|
+
container._registry.register('template:fish', compile['default']('Hello fish!'));
|
31359
|
+
|
31360
|
+
container._registry.register('view:fish', EmberView['default'].extend());
|
31361
|
+
|
31362
|
+
tests__utils.runAppend(view);
|
31363
|
+
|
31364
|
+
equal(view.$().text(), 'Hello fish!');
|
31365
|
+
});
|
31366
|
+
|
31324
31367
|
});
|
31325
31368
|
enifed('ember-routing-htmlbars/tests/helpers/render_test.jscs-test', function () {
|
31326
31369
|
|
@@ -37097,6 +37140,19 @@ enifed('ember-runtime/tests/controllers/array_controller_test', ['ember-metal/co
|
|
37097
37140
|
}
|
37098
37141
|
});
|
37099
37142
|
|
37143
|
+
QUnit.test('works properly when model is set to `null`', function() {
|
37144
|
+
var controller = ArrayController['default'].create();
|
37145
|
+
|
37146
|
+
property_set.set(controller, 'model', null);
|
37147
|
+
equal(property_get.get(controller, 'model'), null, "can set model to `null`");
|
37148
|
+
|
37149
|
+
property_set.set(controller, 'model', undefined);
|
37150
|
+
equal(property_get.get(controller, 'model'), undefined, "can set model to `undefined`");
|
37151
|
+
|
37152
|
+
property_set.set(controller, 'model', false);
|
37153
|
+
equal(property_get.get(controller, 'model'), false, "can set model to `undefined`");
|
37154
|
+
});
|
37155
|
+
|
37100
37156
|
});
|
37101
37157
|
enifed('ember-runtime/tests/controllers/array_controller_test.jscs-test', function () {
|
37102
37158
|
|
@@ -52661,7 +52717,7 @@ enifed('ember-template-compiler/tests/system/compile_test', ['ember-template-com
|
|
52661
52717
|
|
52662
52718
|
var actual = compile['default'](templateString);
|
52663
52719
|
|
52664
|
-
equal(actual.revision, 'Ember@1.11.
|
52720
|
+
equal(actual.revision, 'Ember@1.11.1', 'revision is included in generated template');
|
52665
52721
|
});
|
52666
52722
|
|
52667
52723
|
QUnit.test('the template revision is different than the HTMLBars default revision', function() {
|
@@ -57387,6 +57443,25 @@ enifed('ember-views/tests/views/collection_test', ['ember-metal/core', 'ember-me
|
|
57387
57443
|
}
|
57388
57444
|
});
|
57389
57445
|
|
57446
|
+
QUnit.test('Collection with style attribute supports changing content', function() {
|
57447
|
+
view = CollectionView['default'].create({
|
57448
|
+
attributeBindings: ['style'],
|
57449
|
+
style: "width: 100px;",
|
57450
|
+
content: Ember['default'].A(['foo', 'bar'])
|
57451
|
+
});
|
57452
|
+
|
57453
|
+
run['default'](function() {
|
57454
|
+
view.appendTo('#qunit-fixture');
|
57455
|
+
});
|
57456
|
+
|
57457
|
+
equal(view.$().attr('style'), 'width: 100px;', "width is applied to the element");
|
57458
|
+
|
57459
|
+
run['default'](function() {
|
57460
|
+
view.get('content').pushObject('baz');
|
57461
|
+
});
|
57462
|
+
|
57463
|
+
});
|
57464
|
+
|
57390
57465
|
});
|
57391
57466
|
enifed('ember-views/tests/views/collection_test.jscs-test', function () {
|
57392
57467
|
|
@@ -58455,6 +58530,63 @@ enifed('ember-views/tests/views/container_view_test', ['ember-metal/property_get
|
|
58455
58530
|
ok(observerFired, 'View pushed, observer fired');
|
58456
58531
|
});
|
58457
58532
|
|
58533
|
+
QUnit.test('ContainerView supports bound attributes', function() {
|
58534
|
+
container = ContainerView['default'].create({
|
58535
|
+
attributeBindings: ['width'],
|
58536
|
+
width: "100px"
|
58537
|
+
});
|
58538
|
+
|
58539
|
+
run['default'](function() {
|
58540
|
+
container.appendTo('#qunit-fixture');
|
58541
|
+
});
|
58542
|
+
|
58543
|
+
equal(container.$().attr('width'), '100px', "width is applied to the element");
|
58544
|
+
|
58545
|
+
run['default'](function() {
|
58546
|
+
container.set('width', '200px');
|
58547
|
+
});
|
58548
|
+
|
58549
|
+
equal(container.$().attr('width'), '200px', "width is applied to the element");
|
58550
|
+
});
|
58551
|
+
|
58552
|
+
QUnit.test('ContainerView supports bound style attribute', function() {
|
58553
|
+
container = ContainerView['default'].create({
|
58554
|
+
attributeBindings: ['style'],
|
58555
|
+
style: "width: 100px;"
|
58556
|
+
});
|
58557
|
+
|
58558
|
+
run['default'](function() {
|
58559
|
+
container.appendTo('#qunit-fixture');
|
58560
|
+
});
|
58561
|
+
|
58562
|
+
equal(container.$().attr('style'), 'width: 100px;', "width is applied to the element");
|
58563
|
+
|
58564
|
+
run['default'](function() {
|
58565
|
+
container.set('style', 'width: 200px;');
|
58566
|
+
});
|
58567
|
+
|
58568
|
+
equal(container.$().attr('style'), 'width: 200px;', "width is applied to the element");
|
58569
|
+
});
|
58570
|
+
|
58571
|
+
QUnit.test('ContainerView supports changing children with style attribute', function() {
|
58572
|
+
container = ContainerView['default'].create({
|
58573
|
+
attributeBindings: ['style'],
|
58574
|
+
style: "width: 100px;"
|
58575
|
+
});
|
58576
|
+
|
58577
|
+
run['default'](function() {
|
58578
|
+
container.appendTo('#qunit-fixture');
|
58579
|
+
});
|
58580
|
+
|
58581
|
+
equal(container.$().attr('style'), 'width: 100px;', "width is applied to the element");
|
58582
|
+
|
58583
|
+
view = View['default'].create();
|
58584
|
+
|
58585
|
+
run['default'](function() {
|
58586
|
+
container.pushObject(view);
|
58587
|
+
});
|
58588
|
+
});
|
58589
|
+
|
58458
58590
|
});
|
58459
58591
|
enifed('ember-views/tests/views/container_view_test.jscs-test', function () {
|
58460
58592
|
|
data/dist/ember-tests.prod.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.11.
|
8
|
+
* @version 1.11.1
|
9
9
|
*/
|
10
10
|
|
11
11
|
(function() {
|
@@ -8917,7 +8917,28 @@ enifed('ember-htmlbars/tests/compat/helper_test', ['ember-htmlbars/compat/helper
|
|
8917
8917
|
controller: {
|
8918
8918
|
value: 'foo'
|
8919
8919
|
},
|
8920
|
-
template: compile['default']('{{#test}}
|
8920
|
+
template: compile['default']('{{#test}}{{value}}{{/test}}')
|
8921
|
+
});
|
8922
|
+
|
8923
|
+
utils.runAppend(view);
|
8924
|
+
|
8925
|
+
equal(view.$().text(), 'foo');
|
8926
|
+
});
|
8927
|
+
|
8928
|
+
QUnit.test('allows usage of the template inverse', function() {
|
8929
|
+
expect(1);
|
8930
|
+
|
8931
|
+
function someHelper(options) {
|
8932
|
+
options.inverse();
|
8933
|
+
}
|
8934
|
+
|
8935
|
+
compat__helper.registerHandlebarsCompatibleHelper('test', someHelper);
|
8936
|
+
|
8937
|
+
view = EmberView['default'].create({
|
8938
|
+
controller: {
|
8939
|
+
value: 'foo'
|
8940
|
+
},
|
8941
|
+
template: compile['default']('{{#test}}Nothing to see here.{{else}}{{value}}{{/test}}')
|
8921
8942
|
});
|
8922
8943
|
|
8923
8944
|
utils.runAppend(view);
|
@@ -18900,7 +18921,8 @@ enifed('ember-htmlbars/tests/system/lookup-helper_test', ['ember-htmlbars/system
|
|
18900
18921
|
|
18901
18922
|
function generateEnv(helpers) {
|
18902
18923
|
return {
|
18903
|
-
helpers: (helpers ? helpers : {})
|
18924
|
+
helpers: (helpers ? helpers : {}),
|
18925
|
+
data: { view: { } }
|
18904
18926
|
};
|
18905
18927
|
}
|
18906
18928
|
|
@@ -18987,7 +19009,11 @@ enifed('ember-htmlbars/tests/system/lookup-helper_test', ['ember-htmlbars/system
|
|
18987
19009
|
var fakeOptions = {
|
18988
19010
|
morph: { update: function() { } }
|
18989
19011
|
};
|
18990
|
-
var fakeEnv = {
|
19012
|
+
var fakeEnv = {
|
19013
|
+
data: {
|
19014
|
+
view: { }
|
19015
|
+
}
|
19016
|
+
};
|
18991
19017
|
actual.helperFunction(fakeParams, fakeHash, fakeOptions, fakeEnv);
|
18992
19018
|
|
18993
19019
|
ok(called, 'HTMLBars compatible wrapper is wraping the provided function');
|
@@ -19384,7 +19410,7 @@ enifed('ember-htmlbars/tests/system/render_view_test', ['ember-runtime/tests/uti
|
|
19384
19410
|
view = EmberView['default'].create({
|
19385
19411
|
template: {
|
19386
19412
|
isHTMLBars: true,
|
19387
|
-
revision: 'Ember@1.11.
|
19413
|
+
revision: 'Ember@1.11.1',
|
19388
19414
|
render: function(view, env, contextualElement, blockArguments) {
|
19389
19415
|
for (var i = 0, l = keyNames.length; i < l; i++) {
|
19390
19416
|
var keyName = keyNames[i];
|
@@ -33241,6 +33267,23 @@ enifed('ember-routing-htmlbars/tests/helpers/render_test', ['ember-metal/core',
|
|
33241
33267
|
equal(view.$().text(), 'Hello other!');
|
33242
33268
|
});
|
33243
33269
|
|
33270
|
+
QUnit.test("{{render}} helper should not require view to provide its own template", function() {
|
33271
|
+
var template = "{{render 'fish'}}";
|
33272
|
+
var controller = controllers__controller["default"].extend({ container: container });
|
33273
|
+
view = EmberView['default'].create({
|
33274
|
+
controller: controller.create(),
|
33275
|
+
template: compile['default'](template)
|
33276
|
+
});
|
33277
|
+
|
33278
|
+
container._registry.register('template:fish', compile['default']('Hello fish!'));
|
33279
|
+
|
33280
|
+
container._registry.register('view:fish', EmberView['default'].extend());
|
33281
|
+
|
33282
|
+
tests__utils.runAppend(view);
|
33283
|
+
|
33284
|
+
equal(view.$().text(), 'Hello fish!');
|
33285
|
+
});
|
33286
|
+
|
33244
33287
|
});
|
33245
33288
|
enifed('ember-routing-htmlbars/tests/helpers/render_test.jscs-test', function () {
|
33246
33289
|
|
@@ -39017,6 +39060,19 @@ enifed('ember-runtime/tests/controllers/array_controller_test', ['ember-metal/co
|
|
39017
39060
|
}
|
39018
39061
|
});
|
39019
39062
|
|
39063
|
+
QUnit.test('works properly when model is set to `null`', function() {
|
39064
|
+
var controller = ArrayController['default'].create();
|
39065
|
+
|
39066
|
+
property_set.set(controller, 'model', null);
|
39067
|
+
equal(property_get.get(controller, 'model'), null, "can set model to `null`");
|
39068
|
+
|
39069
|
+
property_set.set(controller, 'model', undefined);
|
39070
|
+
equal(property_get.get(controller, 'model'), undefined, "can set model to `undefined`");
|
39071
|
+
|
39072
|
+
property_set.set(controller, 'model', false);
|
39073
|
+
equal(property_get.get(controller, 'model'), false, "can set model to `undefined`");
|
39074
|
+
});
|
39075
|
+
|
39020
39076
|
});
|
39021
39077
|
enifed('ember-runtime/tests/controllers/array_controller_test.jscs-test', function () {
|
39022
39078
|
|
@@ -54534,7 +54590,7 @@ enifed('ember-template-compiler/tests/system/compile_test', ['ember-template-com
|
|
54534
54590
|
|
54535
54591
|
var actual = compile['default'](templateString);
|
54536
54592
|
|
54537
|
-
equal(actual.revision, 'Ember@1.11.
|
54593
|
+
equal(actual.revision, 'Ember@1.11.1', 'revision is included in generated template');
|
54538
54594
|
});
|
54539
54595
|
|
54540
54596
|
QUnit.test('the template revision is different than the HTMLBars default revision', function() {
|
@@ -59260,6 +59316,25 @@ enifed('ember-views/tests/views/collection_test', ['ember-metal/core', 'ember-me
|
|
59260
59316
|
}
|
59261
59317
|
});
|
59262
59318
|
|
59319
|
+
QUnit.test('Collection with style attribute supports changing content', function() {
|
59320
|
+
view = CollectionView['default'].create({
|
59321
|
+
attributeBindings: ['style'],
|
59322
|
+
style: "width: 100px;",
|
59323
|
+
content: Ember['default'].A(['foo', 'bar'])
|
59324
|
+
});
|
59325
|
+
|
59326
|
+
run['default'](function() {
|
59327
|
+
view.appendTo('#qunit-fixture');
|
59328
|
+
});
|
59329
|
+
|
59330
|
+
equal(view.$().attr('style'), 'width: 100px;', "width is applied to the element");
|
59331
|
+
|
59332
|
+
run['default'](function() {
|
59333
|
+
view.get('content').pushObject('baz');
|
59334
|
+
});
|
59335
|
+
|
59336
|
+
});
|
59337
|
+
|
59263
59338
|
});
|
59264
59339
|
enifed('ember-views/tests/views/collection_test.jscs-test', function () {
|
59265
59340
|
|
@@ -60328,6 +60403,63 @@ enifed('ember-views/tests/views/container_view_test', ['ember-metal/property_get
|
|
60328
60403
|
ok(observerFired, 'View pushed, observer fired');
|
60329
60404
|
});
|
60330
60405
|
|
60406
|
+
QUnit.test('ContainerView supports bound attributes', function() {
|
60407
|
+
container = ContainerView['default'].create({
|
60408
|
+
attributeBindings: ['width'],
|
60409
|
+
width: "100px"
|
60410
|
+
});
|
60411
|
+
|
60412
|
+
run['default'](function() {
|
60413
|
+
container.appendTo('#qunit-fixture');
|
60414
|
+
});
|
60415
|
+
|
60416
|
+
equal(container.$().attr('width'), '100px', "width is applied to the element");
|
60417
|
+
|
60418
|
+
run['default'](function() {
|
60419
|
+
container.set('width', '200px');
|
60420
|
+
});
|
60421
|
+
|
60422
|
+
equal(container.$().attr('width'), '200px', "width is applied to the element");
|
60423
|
+
});
|
60424
|
+
|
60425
|
+
QUnit.test('ContainerView supports bound style attribute', function() {
|
60426
|
+
container = ContainerView['default'].create({
|
60427
|
+
attributeBindings: ['style'],
|
60428
|
+
style: "width: 100px;"
|
60429
|
+
});
|
60430
|
+
|
60431
|
+
run['default'](function() {
|
60432
|
+
container.appendTo('#qunit-fixture');
|
60433
|
+
});
|
60434
|
+
|
60435
|
+
equal(container.$().attr('style'), 'width: 100px;', "width is applied to the element");
|
60436
|
+
|
60437
|
+
run['default'](function() {
|
60438
|
+
container.set('style', 'width: 200px;');
|
60439
|
+
});
|
60440
|
+
|
60441
|
+
equal(container.$().attr('style'), 'width: 200px;', "width is applied to the element");
|
60442
|
+
});
|
60443
|
+
|
60444
|
+
QUnit.test('ContainerView supports changing children with style attribute', function() {
|
60445
|
+
container = ContainerView['default'].create({
|
60446
|
+
attributeBindings: ['style'],
|
60447
|
+
style: "width: 100px;"
|
60448
|
+
});
|
60449
|
+
|
60450
|
+
run['default'](function() {
|
60451
|
+
container.appendTo('#qunit-fixture');
|
60452
|
+
});
|
60453
|
+
|
60454
|
+
equal(container.$().attr('style'), 'width: 100px;', "width is applied to the element");
|
60455
|
+
|
60456
|
+
view = View['default'].create();
|
60457
|
+
|
60458
|
+
run['default'](function() {
|
60459
|
+
container.pushObject(view);
|
60460
|
+
});
|
60461
|
+
});
|
60462
|
+
|
60331
60463
|
});
|
60332
60464
|
enifed('ember-views/tests/views/container_view_test.jscs-test', function () {
|
60333
60465
|
|