ember-source 2.14.0.beta.3 → 2.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/dist/ember-runtime.js +9 -2
- data/dist/ember-template-compiler.js +10 -3
- data/dist/ember-testing.js +7 -7
- data/dist/ember-tests.js +120 -78
- data/dist/ember-tests.prod.js +120 -78
- data/dist/ember.debug.js +113 -31
- data/dist/ember.min.js +3 -3
- data/dist/ember.prod.js +77 -12
- metadata +5 -5
data/dist/ember-tests.prod.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
7
7
|
* @license Licensed under MIT license
|
8
8
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
9
|
-
* @version 2.14.0
|
9
|
+
* @version 2.14.0
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, Ember;
|
@@ -25738,9 +25738,42 @@ enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'embe
|
|
25738
25738
|
this.assertText('[red and yellow] [red and yellow]');
|
25739
25739
|
};
|
25740
25740
|
|
25741
|
-
_class.prototype['@test should be able to get an object value with
|
25741
|
+
_class.prototype['@test should be able to get an object value with numeric keys'] = function () {
|
25742
25742
|
var _this4 = this;
|
25743
25743
|
|
25744
|
+
this.render('{{#each indexes as |index|}}[{{get items index}}]{{/each}}', {
|
25745
|
+
indexes: [1, 2, 3],
|
25746
|
+
items: {
|
25747
|
+
1: 'First',
|
25748
|
+
2: 'Second',
|
25749
|
+
3: 'Third'
|
25750
|
+
}
|
25751
|
+
});
|
25752
|
+
|
25753
|
+
this.assertText('[First][Second][Third]');
|
25754
|
+
|
25755
|
+
this.runTask(function () {
|
25756
|
+
return _this4.rerender();
|
25757
|
+
});
|
25758
|
+
|
25759
|
+
this.assertText('[First][Second][Third]');
|
25760
|
+
|
25761
|
+
this.runTask(function () {
|
25762
|
+
return (0, _emberMetal.set)(_this4.context, 'items.1', 'Qux');
|
25763
|
+
});
|
25764
|
+
|
25765
|
+
this.assertText('[Qux][Second][Third]');
|
25766
|
+
|
25767
|
+
this.runTask(function () {
|
25768
|
+
return (0, _emberMetal.set)(_this4.context, 'items', { 1: 'First', 2: 'Second', 3: 'Third' });
|
25769
|
+
});
|
25770
|
+
|
25771
|
+
this.assertText('[First][Second][Third]');
|
25772
|
+
};
|
25773
|
+
|
25774
|
+
_class.prototype['@test should be able to get an object value with a bound/dynamic key'] = function () {
|
25775
|
+
var _this5 = this;
|
25776
|
+
|
25744
25777
|
this.render('[{{get colors key}}] [{{if true (get colors key)}}]', {
|
25745
25778
|
colors: { apple: 'red', banana: 'yellow' },
|
25746
25779
|
key: 'apple'
|
@@ -25749,39 +25782,39 @@ enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'embe
|
|
25749
25782
|
this.assertText('[red] [red]');
|
25750
25783
|
|
25751
25784
|
this.runTask(function () {
|
25752
|
-
return
|
25785
|
+
return _this5.rerender();
|
25753
25786
|
});
|
25754
25787
|
|
25755
25788
|
this.assertText('[red] [red]');
|
25756
25789
|
|
25757
25790
|
this.runTask(function () {
|
25758
|
-
return (0, _emberMetal.set)(
|
25791
|
+
return (0, _emberMetal.set)(_this5.context, 'key', 'banana');
|
25759
25792
|
});
|
25760
25793
|
|
25761
25794
|
this.assertText('[yellow] [yellow]');
|
25762
25795
|
|
25763
25796
|
this.runTask(function () {
|
25764
|
-
(0, _emberMetal.set)(
|
25765
|
-
(0, _emberMetal.set)(
|
25797
|
+
(0, _emberMetal.set)(_this5.context, 'colors.apple', 'green');
|
25798
|
+
(0, _emberMetal.set)(_this5.context, 'colors.banana', 'purple');
|
25766
25799
|
});
|
25767
25800
|
|
25768
25801
|
this.assertText('[purple] [purple]');
|
25769
25802
|
|
25770
25803
|
this.runTask(function () {
|
25771
|
-
return (0, _emberMetal.set)(
|
25804
|
+
return (0, _emberMetal.set)(_this5.context, 'key', 'apple');
|
25772
25805
|
});
|
25773
25806
|
|
25774
25807
|
this.assertText('[green] [green]');
|
25775
25808
|
|
25776
25809
|
this.runTask(function () {
|
25777
|
-
return (0, _emberMetal.set)(
|
25810
|
+
return (0, _emberMetal.set)(_this5.context, 'colors', { apple: 'red' });
|
25778
25811
|
});
|
25779
25812
|
|
25780
25813
|
this.assertText('[red] [red]');
|
25781
25814
|
};
|
25782
25815
|
|
25783
25816
|
_class.prototype['@test should be able to get an object value with nested dynamic key'] = function () {
|
25784
|
-
var
|
25817
|
+
var _this6 = this;
|
25785
25818
|
|
25786
25819
|
this.render('[{{get colors key}}] [{{if true (get colors key)}}]', {
|
25787
25820
|
colors: {
|
@@ -25797,32 +25830,32 @@ enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'embe
|
|
25797
25830
|
this.assertText('[red and yellow] [red and yellow]');
|
25798
25831
|
|
25799
25832
|
this.runTask(function () {
|
25800
|
-
return
|
25833
|
+
return _this6.rerender();
|
25801
25834
|
});
|
25802
25835
|
|
25803
25836
|
this.assertText('[red and yellow] [red and yellow]');
|
25804
25837
|
|
25805
25838
|
this.runTask(function () {
|
25806
|
-
return (0, _emberMetal.set)(
|
25839
|
+
return (0, _emberMetal.set)(_this6.context, 'key', 'apple.mcintosh');
|
25807
25840
|
});
|
25808
25841
|
|
25809
25842
|
this.assertText('[red] [red]');
|
25810
25843
|
|
25811
25844
|
this.runTask(function () {
|
25812
|
-
return (0, _emberMetal.set)(
|
25845
|
+
return (0, _emberMetal.set)(_this6.context, 'key', 'banana');
|
25813
25846
|
});
|
25814
25847
|
|
25815
25848
|
this.assertText('[yellow] [yellow]');
|
25816
25849
|
|
25817
25850
|
this.runTask(function () {
|
25818
|
-
return (0, _emberMetal.set)(
|
25851
|
+
return (0, _emberMetal.set)(_this6.context, 'key', 'apple.gala');
|
25819
25852
|
});
|
25820
25853
|
|
25821
25854
|
this.assertText('[red and yellow] [red and yellow]');
|
25822
25855
|
};
|
25823
25856
|
|
25824
25857
|
_class.prototype['@test should be able to get an object value with subexpression returning nested key'] = function () {
|
25825
|
-
var
|
25858
|
+
var _this7 = this;
|
25826
25859
|
|
25827
25860
|
this.render('[{{get colors (concat \'apple\' \'.\' \'gala\')}}] [{{if true (get colors (concat \'apple\' \'.\' \'gala\'))}}]', {
|
25828
25861
|
colors: {
|
@@ -25837,25 +25870,25 @@ enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'embe
|
|
25837
25870
|
this.assertText('[red and yellow] [red and yellow]');
|
25838
25871
|
|
25839
25872
|
this.runTask(function () {
|
25840
|
-
return
|
25873
|
+
return _this7.rerender();
|
25841
25874
|
});
|
25842
25875
|
|
25843
25876
|
this.assertText('[red and yellow] [red and yellow]');
|
25844
25877
|
|
25845
25878
|
this.runTask(function () {
|
25846
|
-
return (0, _emberMetal.set)(
|
25879
|
+
return (0, _emberMetal.set)(_this7.context, 'colors.apple.gala', 'yellow and red striped');
|
25847
25880
|
});
|
25848
25881
|
|
25849
25882
|
this.assertText('[yellow and red striped] [yellow and red striped]');
|
25850
25883
|
|
25851
25884
|
this.runTask(function () {
|
25852
|
-
return (0, _emberMetal.set)(
|
25885
|
+
return (0, _emberMetal.set)(_this7.context, 'colors.apple.gala', 'yellow-redish');
|
25853
25886
|
});
|
25854
25887
|
|
25855
25888
|
this.assertText('[yellow-redish] [yellow-redish]');
|
25856
25889
|
|
25857
25890
|
this.runTask(function () {
|
25858
|
-
return (0, _emberMetal.set)(
|
25891
|
+
return (0, _emberMetal.set)(_this7.context, 'colors', {
|
25859
25892
|
apple: {
|
25860
25893
|
gala: 'red and yellow',
|
25861
25894
|
mcintosh: 'red'
|
@@ -25867,7 +25900,7 @@ enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'embe
|
|
25867
25900
|
};
|
25868
25901
|
|
25869
25902
|
_class.prototype['@test should be able to get an object value with a get helper as the key'] = function () {
|
25870
|
-
var
|
25903
|
+
var _this8 = this;
|
25871
25904
|
|
25872
25905
|
this.render('[{{get colors (get possibleKeys key)}}] [{{if true (get colors (get possibleKeys key))}}]', {
|
25873
25906
|
colors: { apple: 'red', banana: 'yellow' },
|
@@ -25878,39 +25911,39 @@ enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'embe
|
|
25878
25911
|
this.assertText('[red] [red]');
|
25879
25912
|
|
25880
25913
|
this.runTask(function () {
|
25881
|
-
return
|
25914
|
+
return _this8.rerender();
|
25882
25915
|
});
|
25883
25916
|
|
25884
25917
|
this.assertText('[red] [red]');
|
25885
25918
|
|
25886
25919
|
this.runTask(function () {
|
25887
|
-
return (0, _emberMetal.set)(
|
25920
|
+
return (0, _emberMetal.set)(_this8.context, 'key', 'key2');
|
25888
25921
|
});
|
25889
25922
|
|
25890
25923
|
this.assertText('[yellow] [yellow]');
|
25891
25924
|
|
25892
25925
|
this.runTask(function () {
|
25893
|
-
(0, _emberMetal.set)(
|
25894
|
-
(0, _emberMetal.set)(
|
25926
|
+
(0, _emberMetal.set)(_this8.context, 'colors.apple', 'green');
|
25927
|
+
(0, _emberMetal.set)(_this8.context, 'colors.banana', 'purple');
|
25895
25928
|
});
|
25896
25929
|
|
25897
25930
|
this.assertText('[purple] [purple]');
|
25898
25931
|
|
25899
25932
|
this.runTask(function () {
|
25900
|
-
return (0, _emberMetal.set)(
|
25933
|
+
return (0, _emberMetal.set)(_this8.context, 'key', 'key1');
|
25901
25934
|
});
|
25902
25935
|
|
25903
25936
|
this.assertText('[green] [green]');
|
25904
25937
|
|
25905
25938
|
this.runTask(function () {
|
25906
|
-
return (0, _emberMetal.set)(
|
25939
|
+
return (0, _emberMetal.set)(_this8.context, 'colors', { apple: 'red', banana: 'yellow' });
|
25907
25940
|
});
|
25908
25941
|
|
25909
25942
|
this.assertText('[red] [red]');
|
25910
25943
|
};
|
25911
25944
|
|
25912
25945
|
_class.prototype['@test should be able to get an object value with a get helper value as a bound/dynamic key'] = function () {
|
25913
|
-
var
|
25946
|
+
var _this9 = this;
|
25914
25947
|
|
25915
25948
|
this.render('[{{get (get possibleValues objectKey) key}}] [{{if true (get (get possibleValues objectKey) key)}}]', {
|
25916
25949
|
possibleValues: {
|
@@ -25924,48 +25957,48 @@ enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'embe
|
|
25924
25957
|
this.assertText('[red] [red]');
|
25925
25958
|
|
25926
25959
|
this.runTask(function () {
|
25927
|
-
return
|
25960
|
+
return _this9.rerender();
|
25928
25961
|
});
|
25929
25962
|
|
25930
25963
|
this.assertText('[red] [red]');
|
25931
25964
|
|
25932
25965
|
this.runTask(function () {
|
25933
|
-
return (0, _emberMetal.set)(
|
25966
|
+
return (0, _emberMetal.set)(_this9.context, 'objectKey', 'colors2');
|
25934
25967
|
});
|
25935
25968
|
|
25936
25969
|
this.assertText('[green] [green]');
|
25937
25970
|
|
25938
25971
|
this.runTask(function () {
|
25939
|
-
return (0, _emberMetal.set)(
|
25972
|
+
return (0, _emberMetal.set)(_this9.context, 'objectKey', 'colors1');
|
25940
25973
|
});
|
25941
25974
|
|
25942
25975
|
this.assertText('[red] [red]');
|
25943
25976
|
|
25944
25977
|
this.runTask(function () {
|
25945
|
-
return (0, _emberMetal.set)(
|
25978
|
+
return (0, _emberMetal.set)(_this9.context, 'key', 'banana');
|
25946
25979
|
});
|
25947
25980
|
|
25948
25981
|
this.assertText('[yellow] [yellow]');
|
25949
25982
|
|
25950
25983
|
this.runTask(function () {
|
25951
|
-
return (0, _emberMetal.set)(
|
25984
|
+
return (0, _emberMetal.set)(_this9.context, 'objectKey', 'colors2');
|
25952
25985
|
});
|
25953
25986
|
|
25954
25987
|
this.assertText('[purple] [purple]');
|
25955
25988
|
|
25956
25989
|
this.runTask(function () {
|
25957
|
-
return (0, _emberMetal.set)(
|
25990
|
+
return (0, _emberMetal.set)(_this9.context, 'objectKey', 'colors1');
|
25958
25991
|
});
|
25959
25992
|
|
25960
25993
|
this.assertText('[yellow] [yellow]');
|
25961
25994
|
|
25962
25995
|
this.runTask(function () {
|
25963
|
-
return (0, _emberMetal.set)(
|
25996
|
+
return (0, _emberMetal.set)(_this9.context, 'key', 'apple');
|
25964
25997
|
});
|
25965
25998
|
};
|
25966
25999
|
|
25967
26000
|
_class.prototype['@test should be able to get an object value with a get helper as the value and a get helper as the key'] = function () {
|
25968
|
-
var
|
26001
|
+
var _this10 = this;
|
25969
26002
|
|
25970
26003
|
this.render('[{{get (get possibleValues objectKey) (get possibleKeys key)}}] [{{if true (get (get possibleValues objectKey) (get possibleKeys key))}}]', {
|
25971
26004
|
possibleValues: {
|
@@ -25983,45 +26016,45 @@ enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'embe
|
|
25983
26016
|
this.assertText('[red] [red]');
|
25984
26017
|
|
25985
26018
|
this.runTask(function () {
|
25986
|
-
return
|
26019
|
+
return _this10.rerender();
|
25987
26020
|
});
|
25988
26021
|
|
25989
26022
|
this.assertText('[red] [red]');
|
25990
26023
|
|
25991
26024
|
this.runTask(function () {
|
25992
|
-
return (0, _emberMetal.set)(
|
26025
|
+
return (0, _emberMetal.set)(_this10.context, 'objectKey', 'colors2');
|
25993
26026
|
});
|
25994
26027
|
|
25995
26028
|
this.assertText('[green] [green]');
|
25996
26029
|
|
25997
26030
|
this.runTask(function () {
|
25998
|
-
return (0, _emberMetal.set)(
|
26031
|
+
return (0, _emberMetal.set)(_this10.context, 'objectKey', 'colors1');
|
25999
26032
|
});
|
26000
26033
|
|
26001
26034
|
this.assertText('[red] [red]');
|
26002
26035
|
|
26003
26036
|
this.runTask(function () {
|
26004
|
-
return (0, _emberMetal.set)(
|
26037
|
+
return (0, _emberMetal.set)(_this10.context, 'key', 'key2');
|
26005
26038
|
});
|
26006
26039
|
|
26007
26040
|
this.assertText('[yellow] [yellow]');
|
26008
26041
|
|
26009
26042
|
this.runTask(function () {
|
26010
|
-
return (0, _emberMetal.set)(
|
26043
|
+
return (0, _emberMetal.set)(_this10.context, 'objectKey', 'colors2');
|
26011
26044
|
});
|
26012
26045
|
|
26013
26046
|
this.assertText('[purple] [purple]');
|
26014
26047
|
|
26015
26048
|
this.runTask(function () {
|
26016
|
-
(0, _emberMetal.set)(
|
26017
|
-
(0, _emberMetal.set)(
|
26049
|
+
(0, _emberMetal.set)(_this10.context, 'objectKey', 'colors1');
|
26050
|
+
(0, _emberMetal.set)(_this10.context, 'key', 'key1');
|
26018
26051
|
});
|
26019
26052
|
|
26020
26053
|
this.assertText('[red] [red]');
|
26021
26054
|
};
|
26022
26055
|
|
26023
26056
|
_class.prototype['@test the result of a get helper can be yielded'] = function () {
|
26024
|
-
var
|
26057
|
+
var _this11 = this;
|
26025
26058
|
|
26026
26059
|
var fooBarInstance = void 0;
|
26027
26060
|
var FooBarComponent = _helpers.Component.extend({
|
@@ -26046,28 +26079,28 @@ enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'embe
|
|
26046
26079
|
this.assertText('banana');
|
26047
26080
|
|
26048
26081
|
this.runTask(function () {
|
26049
|
-
return
|
26082
|
+
return _this11.rerender();
|
26050
26083
|
});
|
26051
26084
|
|
26052
26085
|
this.assertText('banana');
|
26053
26086
|
|
26054
26087
|
this.runTask(function () {
|
26055
26088
|
(0, _emberMetal.set)(fooBarInstance, 'mcintosh', 'yellow');
|
26056
|
-
(0, _emberMetal.set)(
|
26089
|
+
(0, _emberMetal.set)(_this11.context, 'colors', { yellow: 'bus' });
|
26057
26090
|
});
|
26058
26091
|
|
26059
26092
|
this.assertText('bus');
|
26060
26093
|
|
26061
26094
|
this.runTask(function () {
|
26062
26095
|
(0, _emberMetal.set)(fooBarInstance, 'mcintosh', 'red');
|
26063
|
-
(0, _emberMetal.set)(
|
26096
|
+
(0, _emberMetal.set)(_this11.context, 'colors', { red: 'banana' });
|
26064
26097
|
});
|
26065
26098
|
|
26066
26099
|
this.assertText('banana');
|
26067
26100
|
};
|
26068
26101
|
|
26069
26102
|
_class.prototype['@test should handle object values as nulls'] = function () {
|
26070
|
-
var
|
26103
|
+
var _this12 = this;
|
26071
26104
|
|
26072
26105
|
this.render('[{{get colors \'apple\'}}] [{{if true (get colors \'apple\')}}]', {
|
26073
26106
|
colors: null
|
@@ -26076,26 +26109,26 @@ enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'embe
|
|
26076
26109
|
this.assertText('[] []');
|
26077
26110
|
|
26078
26111
|
this.runTask(function () {
|
26079
|
-
return
|
26112
|
+
return _this12.rerender();
|
26080
26113
|
});
|
26081
26114
|
|
26082
26115
|
this.assertText('[] []');
|
26083
26116
|
|
26084
26117
|
this.runTask(function () {
|
26085
|
-
return (0, _emberMetal.set)(
|
26118
|
+
return (0, _emberMetal.set)(_this12.context, 'colors', { apple: 'green', banana: 'purple' });
|
26086
26119
|
});
|
26087
26120
|
|
26088
26121
|
this.assertText('[green] [green]');
|
26089
26122
|
|
26090
26123
|
this.runTask(function () {
|
26091
|
-
return (0, _emberMetal.set)(
|
26124
|
+
return (0, _emberMetal.set)(_this12.context, 'colors', null);
|
26092
26125
|
});
|
26093
26126
|
|
26094
26127
|
this.assertText('[] []');
|
26095
26128
|
};
|
26096
26129
|
|
26097
26130
|
_class.prototype['@test should handle object keys as nulls'] = function () {
|
26098
|
-
var
|
26131
|
+
var _this13 = this;
|
26099
26132
|
|
26100
26133
|
this.render('[{{get colors key}}] [{{if true (get colors key)}}]', {
|
26101
26134
|
colors: {
|
@@ -26108,19 +26141,19 @@ enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'embe
|
|
26108
26141
|
this.assertText('[] []');
|
26109
26142
|
|
26110
26143
|
this.runTask(function () {
|
26111
|
-
return
|
26144
|
+
return _this13.rerender();
|
26112
26145
|
});
|
26113
26146
|
|
26114
26147
|
this.assertText('[] []');
|
26115
26148
|
|
26116
26149
|
this.runTask(function () {
|
26117
|
-
return (0, _emberMetal.set)(
|
26150
|
+
return (0, _emberMetal.set)(_this13.context, 'key', 'banana');
|
26118
26151
|
});
|
26119
26152
|
|
26120
26153
|
this.assertText('[yellow] [yellow]');
|
26121
26154
|
|
26122
26155
|
this.runTask(function () {
|
26123
|
-
return (0, _emberMetal.set)(
|
26156
|
+
return (0, _emberMetal.set)(_this13.context, 'key', null);
|
26124
26157
|
});
|
26125
26158
|
|
26126
26159
|
this.assertText('[] []');
|
@@ -26136,7 +26169,7 @@ enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'embe
|
|
26136
26169
|
};
|
26137
26170
|
|
26138
26171
|
_class.prototype['@test get helper value should be updatable using {{input}} and (mut) - static key'] = function (assert) {
|
26139
|
-
var
|
26172
|
+
var _this14 = this;
|
26140
26173
|
|
26141
26174
|
this.render('{{input type=\'text\' value=(mut (get source \'banana\')) id=\'get-input\'}}', {
|
26142
26175
|
source: {
|
@@ -26147,33 +26180,33 @@ enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'embe
|
|
26147
26180
|
assert.strictEqual(this.$('#get-input').val(), 'banana');
|
26148
26181
|
|
26149
26182
|
this.runTask(function () {
|
26150
|
-
return
|
26183
|
+
return _this14.rerender();
|
26151
26184
|
});
|
26152
26185
|
|
26153
26186
|
assert.strictEqual(this.$('#get-input').val(), 'banana');
|
26154
26187
|
|
26155
26188
|
this.runTask(function () {
|
26156
|
-
return (0, _emberMetal.set)(
|
26189
|
+
return (0, _emberMetal.set)(_this14.context, 'source.banana', 'yellow');
|
26157
26190
|
});
|
26158
26191
|
|
26159
26192
|
assert.strictEqual(this.$('#get-input').val(), 'yellow');
|
26160
26193
|
|
26161
26194
|
this.runTask(function () {
|
26162
|
-
return
|
26195
|
+
return _this14.$('#get-input').val('some value').trigger('change');
|
26163
26196
|
});
|
26164
26197
|
|
26165
26198
|
assert.strictEqual(this.$('#get-input').val(), 'some value');
|
26166
26199
|
assert.strictEqual((0, _emberMetal.get)(this.context, 'source.banana'), 'some value');
|
26167
26200
|
|
26168
26201
|
this.runTask(function () {
|
26169
|
-
return (0, _emberMetal.set)(
|
26202
|
+
return (0, _emberMetal.set)(_this14.context, 'source', { banana: 'banana' });
|
26170
26203
|
});
|
26171
26204
|
|
26172
26205
|
assert.strictEqual(this.$('#get-input').val(), 'banana');
|
26173
26206
|
};
|
26174
26207
|
|
26175
26208
|
_class.prototype['@test get helper value should be updatable using {{input}} and (mut) - dynamic key'] = function (assert) {
|
26176
|
-
var
|
26209
|
+
var _this15 = this;
|
26177
26210
|
|
26178
26211
|
this.render('{{input type=\'text\' value=(mut (get source key)) id=\'get-input\'}}', {
|
26179
26212
|
source: {
|
@@ -26186,47 +26219,47 @@ enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'embe
|
|
26186
26219
|
assert.strictEqual(this.$('#get-input').val(), 'banana');
|
26187
26220
|
|
26188
26221
|
this.runTask(function () {
|
26189
|
-
return
|
26222
|
+
return _this15.rerender();
|
26190
26223
|
});
|
26191
26224
|
|
26192
26225
|
assert.strictEqual(this.$('#get-input').val(), 'banana');
|
26193
26226
|
|
26194
26227
|
this.runTask(function () {
|
26195
|
-
return (0, _emberMetal.set)(
|
26228
|
+
return (0, _emberMetal.set)(_this15.context, 'source.banana', 'yellow');
|
26196
26229
|
});
|
26197
26230
|
|
26198
26231
|
assert.strictEqual(this.$('#get-input').val(), 'yellow');
|
26199
26232
|
|
26200
26233
|
this.runTask(function () {
|
26201
|
-
return
|
26234
|
+
return _this15.$('#get-input').val('some value').trigger('change');
|
26202
26235
|
});
|
26203
26236
|
|
26204
26237
|
assert.strictEqual(this.$('#get-input').val(), 'some value');
|
26205
26238
|
assert.strictEqual((0, _emberMetal.get)(this.context, 'source.banana'), 'some value');
|
26206
26239
|
|
26207
26240
|
this.runTask(function () {
|
26208
|
-
return (0, _emberMetal.set)(
|
26241
|
+
return (0, _emberMetal.set)(_this15.context, 'key', 'apple');
|
26209
26242
|
});
|
26210
26243
|
|
26211
26244
|
assert.strictEqual(this.$('#get-input').val(), 'apple');
|
26212
26245
|
|
26213
26246
|
this.runTask(function () {
|
26214
|
-
return
|
26247
|
+
return _this15.$('#get-input').val('some other value').trigger('change');
|
26215
26248
|
});
|
26216
26249
|
|
26217
26250
|
assert.strictEqual(this.$('#get-input').val(), 'some other value');
|
26218
26251
|
assert.strictEqual((0, _emberMetal.get)(this.context, 'source.apple'), 'some other value');
|
26219
26252
|
|
26220
26253
|
this.runTask(function () {
|
26221
|
-
(0, _emberMetal.set)(
|
26222
|
-
(0, _emberMetal.set)(
|
26254
|
+
(0, _emberMetal.set)(_this15.context, 'key', 'banana');
|
26255
|
+
(0, _emberMetal.set)(_this15.context, 'source', { banana: 'banana' });
|
26223
26256
|
});
|
26224
26257
|
|
26225
26258
|
assert.strictEqual(this.$('#get-input').val(), 'banana');
|
26226
26259
|
};
|
26227
26260
|
|
26228
26261
|
_class.prototype['@test get helper value should be updatable using {{input}} and (mut) - dynamic nested key'] = function (assert) {
|
26229
|
-
var
|
26262
|
+
var _this16 = this;
|
26230
26263
|
|
26231
26264
|
this.render('{{input type=\'text\' value=(mut (get source key)) id=\'get-input\'}}', {
|
26232
26265
|
source: {
|
@@ -26242,53 +26275,53 @@ enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'embe
|
|
26242
26275
|
assert.strictEqual(this.$('#get-input').val(), 'mcintosh');
|
26243
26276
|
|
26244
26277
|
this.runTask(function () {
|
26245
|
-
return
|
26278
|
+
return _this16.rerender();
|
26246
26279
|
});
|
26247
26280
|
|
26248
26281
|
assert.strictEqual(this.$('#get-input').val(), 'mcintosh');
|
26249
26282
|
|
26250
26283
|
this.runTask(function () {
|
26251
|
-
return (0, _emberMetal.set)(
|
26284
|
+
return (0, _emberMetal.set)(_this16.context, 'source.apple.mcintosh', 'red');
|
26252
26285
|
});
|
26253
26286
|
|
26254
26287
|
assert.strictEqual(this.$('#get-input').val(), 'red');
|
26255
26288
|
|
26256
26289
|
this.runTask(function () {
|
26257
|
-
return
|
26290
|
+
return _this16.$('#get-input').val('some value').trigger('change');
|
26258
26291
|
});
|
26259
26292
|
|
26260
26293
|
assert.strictEqual(this.$('#get-input').val(), 'some value');
|
26261
26294
|
assert.strictEqual((0, _emberMetal.get)(this.context, 'source.apple.mcintosh'), 'some value');
|
26262
26295
|
|
26263
26296
|
this.runTask(function () {
|
26264
|
-
return (0, _emberMetal.set)(
|
26297
|
+
return (0, _emberMetal.set)(_this16.context, 'key', 'apple.gala');
|
26265
26298
|
});
|
26266
26299
|
|
26267
26300
|
assert.strictEqual(this.$('#get-input').val(), 'gala');
|
26268
26301
|
|
26269
26302
|
this.runTask(function () {
|
26270
|
-
return
|
26303
|
+
return _this16.$('#get-input').val('some other value').trigger('change');
|
26271
26304
|
});
|
26272
26305
|
|
26273
26306
|
assert.strictEqual(this.$('#get-input').val(), 'some other value');
|
26274
26307
|
assert.strictEqual((0, _emberMetal.get)(this.context, 'source.apple.gala'), 'some other value');
|
26275
26308
|
|
26276
26309
|
this.runTask(function () {
|
26277
|
-
return (0, _emberMetal.set)(
|
26310
|
+
return (0, _emberMetal.set)(_this16.context, 'key', 'banana');
|
26278
26311
|
});
|
26279
26312
|
|
26280
26313
|
assert.strictEqual(this.$('#get-input').val(), 'banana');
|
26281
26314
|
|
26282
26315
|
this.runTask(function () {
|
26283
|
-
return
|
26316
|
+
return _this16.$('#get-input').val('yet another value').trigger('change');
|
26284
26317
|
});
|
26285
26318
|
|
26286
26319
|
assert.strictEqual(this.$('#get-input').val(), 'yet another value');
|
26287
26320
|
assert.strictEqual((0, _emberMetal.get)(this.context, 'source.banana'), 'yet another value');
|
26288
26321
|
|
26289
26322
|
this.runTask(function () {
|
26290
|
-
(0, _emberMetal.set)(
|
26291
|
-
(0, _emberMetal.set)(
|
26323
|
+
(0, _emberMetal.set)(_this16.context, 'key', 'apple.mcintosh');
|
26324
|
+
(0, _emberMetal.set)(_this16.context, 'source', {
|
26292
26325
|
apple: {
|
26293
26326
|
gala: 'gala',
|
26294
26327
|
mcintosh: 'mcintosh'
|
@@ -26929,12 +26962,13 @@ enifed('ember-glimmer/tests/integration/helpers/input-test', ['ember-babel', 'em
|
|
26929
26962
|
_class.prototype['@test dynamic attributes'] = function () {
|
26930
26963
|
var _this6 = this;
|
26931
26964
|
|
26932
|
-
this.render('\n {{input type="text"\n disabled=disabled\n value=value\n placeholder=placeholder\n name=name\n maxlength=maxlength\n size=size\n tabindex=tabindex\n }}', {
|
26965
|
+
this.render('\n {{input type="text"\n disabled=disabled\n value=value\n placeholder=placeholder\n name=name\n maxlength=maxlength\n minlength=minlength\n size=size\n tabindex=tabindex\n }}', {
|
26933
26966
|
disabled: false,
|
26934
26967
|
value: 'Original value',
|
26935
26968
|
placeholder: 'Original placeholder',
|
26936
26969
|
name: 'original-name',
|
26937
26970
|
maxlength: 10,
|
26971
|
+
minlength: 5,
|
26938
26972
|
size: 20,
|
26939
26973
|
tabindex: 30
|
26940
26974
|
});
|
@@ -26944,6 +26978,7 @@ enifed('ember-glimmer/tests/integration/helpers/input-test', ['ember-babel', 'em
|
|
26944
26978
|
this.assertAttr('placeholder', 'Original placeholder');
|
26945
26979
|
this.assertAttr('name', 'original-name');
|
26946
26980
|
this.assertAttr('maxlength', '10');
|
26981
|
+
this.assertAttr('minlength', '5');
|
26947
26982
|
// this.assertAttr('size', '20'); //NOTE: failing in IE (TEST_SUITE=sauce)
|
26948
26983
|
// this.assertAttr('tabindex', '30'); //NOTE: failing in IE (TEST_SUITE=sauce)
|
26949
26984
|
|
@@ -26956,6 +26991,7 @@ enifed('ember-glimmer/tests/integration/helpers/input-test', ['ember-babel', 'em
|
|
26956
26991
|
this.assertAttr('placeholder', 'Original placeholder');
|
26957
26992
|
this.assertAttr('name', 'original-name');
|
26958
26993
|
this.assertAttr('maxlength', '10');
|
26994
|
+
this.assertAttr('minlength', '5');
|
26959
26995
|
// this.assertAttr('size', '20'); //NOTE: failing in IE (TEST_SUITE=sauce)
|
26960
26996
|
// this.assertAttr('tabindex', '30'); //NOTE: failing in IE (TEST_SUITE=sauce)
|
26961
26997
|
|
@@ -26965,6 +27001,7 @@ enifed('ember-glimmer/tests/integration/helpers/input-test', ['ember-babel', 'em
|
|
26965
27001
|
(0, _emberMetal.set)(_this6.context, 'placeholder', 'Updated placeholder');
|
26966
27002
|
(0, _emberMetal.set)(_this6.context, 'name', 'updated-name');
|
26967
27003
|
(0, _emberMetal.set)(_this6.context, 'maxlength', 11);
|
27004
|
+
(0, _emberMetal.set)(_this6.context, 'minlength', 6);
|
26968
27005
|
// set(this.context, 'size', 21); //NOTE: failing in IE (TEST_SUITE=sauce)
|
26969
27006
|
// set(this.context, 'tabindex', 31); //NOTE: failing in IE (TEST_SUITE=sauce)
|
26970
27007
|
});
|
@@ -26974,6 +27011,7 @@ enifed('ember-glimmer/tests/integration/helpers/input-test', ['ember-babel', 'em
|
|
26974
27011
|
this.assertAttr('placeholder', 'Updated placeholder');
|
26975
27012
|
this.assertAttr('name', 'updated-name');
|
26976
27013
|
this.assertAttr('maxlength', '11');
|
27014
|
+
this.assertAttr('minlength', '6');
|
26977
27015
|
// this.assertAttr('size', '21'); //NOTE: failing in IE (TEST_SUITE=sauce)
|
26978
27016
|
// this.assertAttr('tabindex', '31'); //NOTE: failing in IE (TEST_SUITE=sauce)
|
26979
27017
|
|
@@ -26983,6 +27021,7 @@ enifed('ember-glimmer/tests/integration/helpers/input-test', ['ember-babel', 'em
|
|
26983
27021
|
(0, _emberMetal.set)(_this6.context, 'placeholder', 'Original placeholder');
|
26984
27022
|
(0, _emberMetal.set)(_this6.context, 'name', 'original-name');
|
26985
27023
|
(0, _emberMetal.set)(_this6.context, 'maxlength', 10);
|
27024
|
+
(0, _emberMetal.set)(_this6.context, 'minlength', 5);
|
26986
27025
|
// set(this.context, 'size', 20); //NOTE: failing in IE (TEST_SUITE=sauce)
|
26987
27026
|
// set(this.context, 'tabindex', 30); //NOTE: failing in IE (TEST_SUITE=sauce)
|
26988
27027
|
});
|
@@ -26992,6 +27031,7 @@ enifed('ember-glimmer/tests/integration/helpers/input-test', ['ember-babel', 'em
|
|
26992
27031
|
this.assertAttr('placeholder', 'Original placeholder');
|
26993
27032
|
this.assertAttr('name', 'original-name');
|
26994
27033
|
this.assertAttr('maxlength', '10');
|
27034
|
+
this.assertAttr('minlength', '5');
|
26995
27035
|
// this.assertAttr('size', '20'); //NOTE: failing in IE (TEST_SUITE=sauce)
|
26996
27036
|
// this.assertAttr('tabindex', '30'); //NOTE: failing in IE (TEST_SUITE=sauce)
|
26997
27037
|
};
|
@@ -26999,13 +27039,14 @@ enifed('ember-glimmer/tests/integration/helpers/input-test', ['ember-babel', 'em
|
|
26999
27039
|
_class.prototype['@test static attributes'] = function () {
|
27000
27040
|
var _this7 = this;
|
27001
27041
|
|
27002
|
-
this.render('\n {{input type="text"\n disabled=true\n value="Original value"\n placeholder="Original placeholder"\n name="original-name"\n maxlength=10\n size=20\n tabindex=30\n }}');
|
27042
|
+
this.render('\n {{input type="text"\n disabled=true\n value="Original value"\n placeholder="Original placeholder"\n name="original-name"\n maxlength=10\n minlength=5\n size=20\n tabindex=30\n }}');
|
27003
27043
|
|
27004
27044
|
this.assertDisabled();
|
27005
27045
|
this.assertValue('Original value');
|
27006
27046
|
this.assertAttr('placeholder', 'Original placeholder');
|
27007
27047
|
this.assertAttr('name', 'original-name');
|
27008
27048
|
this.assertAttr('maxlength', '10');
|
27049
|
+
this.assertAttr('minlength', '5');
|
27009
27050
|
// this.assertAttr('size', '20'); //NOTE: failing in IE (TEST_SUITE=sauce)
|
27010
27051
|
// this.assertAttr('tabindex', '30'); //NOTE: failing in IE (TEST_SUITE=sauce)
|
27011
27052
|
|
@@ -27018,6 +27059,7 @@ enifed('ember-glimmer/tests/integration/helpers/input-test', ['ember-babel', 'em
|
|
27018
27059
|
this.assertAttr('placeholder', 'Original placeholder');
|
27019
27060
|
this.assertAttr('name', 'original-name');
|
27020
27061
|
this.assertAttr('maxlength', '10');
|
27062
|
+
this.assertAttr('minlength', '5');
|
27021
27063
|
// this.assertAttr('size', '20'); //NOTE: failing in IE (TEST_SUITE=sauce)
|
27022
27064
|
// this.assertAttr('tabindex', '30'); //NOTE: failing in IE (TEST_SUITE=sauce)
|
27023
27065
|
};
|