ember-source 2.15.0.beta.2 → 2.15.0.beta.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2743f6de2a01a774a1efff9262397406fa8c5487
4
- data.tar.gz: 968ace6ce3aecf383d9e12bf1edb6d560b983115
3
+ metadata.gz: 7dab0a052cafbdebd29e606d39d5f6da7a2c4d19
4
+ data.tar.gz: 47bb2ac1eab11734346ec2649dad822ca2ab90fd
5
5
  SHA512:
6
- metadata.gz: a4356616a59d4022984ea28b92136a4deead6b140aa70615eb07ba2e1c73c192738e806a9b7167e83089417b989202bc4f06038d1755e78ac6287c70780909cc
7
- data.tar.gz: b809c566e56d3ebd6b5949a6ba853f2032d7bceb8322b2855da8e0354395169333c01a14441dc52cbcf4b314184f2cfa1947331503a53062704688316a983b17
6
+ metadata.gz: 0c138c62602da3530db3c96d7a93854827bb2eebecfb4ddb32533991fab832b009ac53c8079b77d7538f95313b92b882204e09ded64b868cb6c8c83d0556e56c
7
+ data.tar.gz: 106e3ca94bee59664ac9d448a09c42a022805041feeafc8565a3523c559524cd34baee55388e0c15ccca143d0dc11431e8273097cafc4ecb7fcd11cf4159ddf1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.15.0.beta.2
1
+ 2.15.0.beta.3
@@ -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.15.0-beta.2
9
+ * @version 2.15.0-beta.3
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -5552,11 +5552,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
5552
5552
  }
5553
5553
 
5554
5554
  /**
5555
- Verifies that a value is `null` or an empty string, empty array,
5556
- or empty function.
5555
+ Verifies that a value is `null` or `undefined`, an empty string, or an empty
5556
+ array.
5557
5557
 
5558
- Constrains the rules on `Ember.isNone` by returning true for empty
5559
- string and empty arrays.
5558
+ Constrains the rules on `Ember.isNone` by returning true for empty strings and
5559
+ empty arrays.
5560
5560
 
5561
5561
  ```javascript
5562
5562
  Ember.isEmpty(); // true
@@ -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.15.0-beta.2
9
+ * @version 2.15.0-beta.3
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -3974,6 +3974,7 @@ enifed('@glimmer/util', ['exports'], function (exports) {
3974
3974
 
3975
3975
  // import Logger from './logger';
3976
3976
  // let alreadyWarned = false;
3977
+ // import Logger from './logger';
3977
3978
 
3978
3979
 
3979
3980
  function _classCallCheck(instance, Constructor) {
@@ -11705,11 +11706,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
11705
11706
  }
11706
11707
 
11707
11708
  /**
11708
- Verifies that a value is `null` or an empty string, empty array,
11709
- or empty function.
11709
+ Verifies that a value is `null` or `undefined`, an empty string, or an empty
11710
+ array.
11710
11711
 
11711
- Constrains the rules on `Ember.isNone` by returning true for empty
11712
- string and empty arrays.
11712
+ Constrains the rules on `Ember.isNone` by returning true for empty strings and
11713
+ empty arrays.
11713
11714
 
11714
11715
  ```javascript
11715
11716
  Ember.isEmpty(); // true
@@ -17142,7 +17143,7 @@ enifed('ember/features', ['exports', 'ember-environment', 'ember-utils'], functi
17142
17143
  enifed("ember/version", ["exports"], function (exports) {
17143
17144
  "use strict";
17144
17145
 
17145
- exports.default = "2.15.0-beta.2";
17146
+ exports.default = "2.15.0-beta.3";
17146
17147
  });
17147
17148
  enifed("handlebars", ["exports"], function (exports) {
17148
17149
  "use strict";
@@ -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.15.0-beta.2
9
+ * @version 2.15.0-beta.3
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -1817,6 +1817,7 @@ enifed('ember-testing/helpers/wait', ['exports', 'ember-testing/test/waiters', '
1817
1817
  .fillIn('#password', password)
1818
1818
  .click('.submit');
1819
1819
  });
1820
+ ```
1820
1821
 
1821
1822
  @method wait
1822
1823
  @param {Object} value The value to be returned.
@@ -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.15.0-beta.2
9
+ * @version 2.15.0-beta.3
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -9611,19 +9611,36 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
9611
9611
  return _this5.component.destroy();
9612
9612
  });
9613
9613
 
9614
- if (this.isHTMLBars) {
9615
- // Bug in Glimmer – component should not have .element at this point
9616
- assert.ok(!this.component.element, 'It should not have an element');
9617
- }
9618
-
9614
+ assert.ok(!this.component.element, 'It should not have an element');
9619
9615
  assert.ok(!componentElement.parentElement, 'The component element should be detached');
9620
9616
 
9621
9617
  this.assert.equal(willDestroyCalled, 1);
9622
9618
  };
9623
9619
 
9624
- AbstractAppendTest.prototype['@test appending, updating and destroying multiple components'] = function testAppendingUpdatingAndDestroyingMultipleComponents(assert) {
9620
+ AbstractAppendTest.prototype['@test releasing a root component after it has been destroy'] = function testReleasingARootComponentAfterItHasBeenDestroy(assert) {
9625
9621
  var _this6 = this;
9626
9622
 
9623
+ var renderer = this.owner.lookup('renderer:-dom');
9624
+
9625
+ this.registerComponent('x-component', {
9626
+ ComponentClass: _helpers.Component.extend()
9627
+ });
9628
+
9629
+ this.component = this.owner.factoryFor('component:x-component').create();
9630
+ this.append(this.component);
9631
+
9632
+ assert.equal(renderer._roots.length, 1, 'added a root component');
9633
+
9634
+ this.runTask(function () {
9635
+ return _this6.component.destroy();
9636
+ });
9637
+
9638
+ assert.equal(renderer._roots.length, 0, 'released the root component');
9639
+ };
9640
+
9641
+ AbstractAppendTest.prototype['@test appending, updating and destroying multiple components'] = function testAppendingUpdatingAndDestroyingMultipleComponents(assert) {
9642
+ var _this7 = this;
9643
+
9627
9644
  var willDestroyCalled = 0;
9628
9645
 
9629
9646
  this.registerComponent('x-first', {
@@ -9666,10 +9683,10 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
9666
9683
  wrapper2 = void 0;
9667
9684
 
9668
9685
  this.runTask(function () {
9669
- return wrapper1 = _this6.append(first);
9686
+ return wrapper1 = _this7.append(first);
9670
9687
  });
9671
9688
  this.runTask(function () {
9672
- return wrapper2 = _this6.append(second);
9689
+ return wrapper2 = _this7.append(second);
9673
9690
  });
9674
9691
 
9675
9692
  var componentElement1 = first.element;
@@ -9717,11 +9734,8 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
9717
9734
  second.destroy();
9718
9735
  });
9719
9736
 
9720
- if (this.isHTMLBars) {
9721
- // Bug in Glimmer – component should not have .element at this point
9722
- assert.ok(!first.element, 'The first component should not have an element');
9723
- assert.ok(!second.element, 'The second component should not have an element');
9724
- }
9737
+ assert.ok(!first.element, 'The first component should not have an element');
9738
+ assert.ok(!second.element, 'The second component should not have an element');
9725
9739
 
9726
9740
  assert.ok(!componentElement1.parentElement, 'The first component element should be detached');
9727
9741
  assert.ok(!componentElement2.parentElement, 'The second component element should be detached');
@@ -9730,12 +9744,12 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
9730
9744
  };
9731
9745
 
9732
9746
  AbstractAppendTest.prototype['@test can appendTo while rendering'] = function testCanAppendToWhileRendering(assert) {
9733
- var _this7 = this;
9747
+ var _this8 = this;
9734
9748
 
9735
9749
  var owner = this.owner;
9736
9750
 
9737
9751
  var append = function (component) {
9738
- return _this7.append(component);
9752
+ return _this8.append(component);
9739
9753
  };
9740
9754
 
9741
9755
  var element1 = void 0,
@@ -9775,12 +9789,12 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
9775
9789
  };
9776
9790
 
9777
9791
  AbstractAppendTest.prototype['@test can appendTo and remove while rendering'] = function testCanAppendToAndRemoveWhileRendering(assert) {
9778
- var _this8 = this;
9792
+ var _this9 = this;
9779
9793
 
9780
9794
  var owner = this.owner;
9781
9795
 
9782
9796
  var append = function (component) {
9783
- return _this8.append(component);
9797
+ return _this9.append(component);
9784
9798
  };
9785
9799
 
9786
9800
  var element1 = void 0,
@@ -9868,7 +9882,7 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
9868
9882
  this.assertStableRerender();
9869
9883
 
9870
9884
  this.runTask(function () {
9871
- return (0, _emberMetal.set)(_this8.context, 'showFooBar', false);
9885
+ return (0, _emberMetal.set)(_this9.context, 'showFooBar', false);
9872
9886
  });
9873
9887
 
9874
9888
  assert.equal(instantiatedRoots, 2);
@@ -9925,7 +9939,7 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
9925
9939
  };
9926
9940
 
9927
9941
  _class2.prototype['@test raises an assertion when the target does not exist in the DOM'] = function testRaisesAnAssertionWhenTheTargetDoesNotExistInTheDOM(assert) {
9928
- var _this11 = this;
9942
+ var _this12 = this;
9929
9943
 
9930
9944
  this.registerComponent('foo-bar', {
9931
9945
  ComponentClass: _helpers.Component.extend({
@@ -9942,7 +9956,7 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
9942
9956
 
9943
9957
  this.runTask(function () {
9944
9958
  expectAssertion(function () {
9945
- _this11.component.appendTo('#does-not-exist-in-dom');
9959
+ _this12.component.appendTo('#does-not-exist-in-dom');
9946
9960
  }, /You tried to append to \(#does-not-exist-in-dom\) but that isn't in the DOM/);
9947
9961
  });
9948
9962
 
@@ -21610,6 +21624,29 @@ enifed('ember-glimmer/tests/integration/content-test', ['ember-babel', 'ember-gl
21610
21624
  this.assertInvariants();
21611
21625
  };
21612
21626
 
21627
+ DynamicContentTest.prototype['@test it can render a property on a function'] = function testItCanRenderAPropertyOnAFunction() {
21628
+ var func = function () {};
21629
+ func.aProp = 'this is a property on a function';
21630
+
21631
+ this.renderPath('func.aProp', { func: func });
21632
+
21633
+ this.assertContent('this is a property on a function');
21634
+
21635
+ this.assertStableRerender();
21636
+
21637
+ // this.runTask(() => set(func, 'aProp', 'still a property on a function'));
21638
+ // this.assertContent('still a property on a function');
21639
+ // this.assertInvariants();
21640
+
21641
+ // func = () => {};
21642
+ // func.aProp = 'a prop on a new function';
21643
+
21644
+ // this.runTask(() => set(this.context, 'func', func));
21645
+
21646
+ // this.assertContent('a prop on a new function');
21647
+ // this.assertInvariants();
21648
+ };
21649
+
21613
21650
  return DynamicContentTest;
21614
21651
  }(_testCase.RenderingTest);
21615
21652
 
@@ -28662,6 +28699,13 @@ enifed('ember-glimmer/tests/integration/helpers/input-test', ['ember-babel', 'em
28662
28699
  });
28663
28700
  };
28664
28701
 
28702
+ _class.prototype['@test GH#14727 can render a file input after having had render an input of other type'] = function testGH14727CanRenderAFileInputAfterHavingHadRenderAnInputOfOtherType() {
28703
+ this.render('{{input type="text"}}{{input type="file"}}');
28704
+
28705
+ this.assert.equal(this.$input()[0].type, 'text');
28706
+ this.assert.equal(this.$input()[1].type, 'file');
28707
+ };
28708
+
28665
28709
  return _class;
28666
28710
  }(InputRenderingTest));
28667
28711
 
@@ -46650,6 +46694,35 @@ enifed('ember-routing/tests/ext/controller_test', ['ember-utils', 'internal-test
46650
46694
  var queryParams = {};
46651
46695
  strictEqual(controller.transitionToRoute(queryParams), queryParams, 'passes query param only transitions through');
46652
46696
  });
46697
+
46698
+ QUnit.test('replaceRoute considers an engine\'s mountPoint', function () {
46699
+ expect(4);
46700
+
46701
+ var router = {
46702
+ replaceWith: function (route) {
46703
+ return route;
46704
+ }
46705
+ };
46706
+
46707
+ var engineInstance = (0, _internalTestHelpers.buildOwner)({
46708
+ ownerOptions: {
46709
+ routable: true,
46710
+ mountPoint: 'foo.bar'
46711
+ }
46712
+ });
46713
+
46714
+ var controller = _emberRuntime.Controller.create({ target: router });
46715
+ (0, _emberUtils.setOwner)(controller, engineInstance);
46716
+
46717
+ strictEqual(controller.replaceRoute('application'), 'foo.bar.application', 'properly prefixes application route');
46718
+ strictEqual(controller.replaceRoute('posts'), 'foo.bar.posts', 'properly prefixes child routes');
46719
+ throws(function () {
46720
+ return controller.replaceRoute('/posts');
46721
+ }, 'throws when trying to use a url');
46722
+
46723
+ var queryParams = {};
46724
+ strictEqual(controller.replaceRoute(queryParams), queryParams, 'passes query param only transitions through');
46725
+ });
46653
46726
  });
46654
46727
  QUnit.module('ESLint | ember-routing/tests/ext/controller_test.js');
46655
46728
  QUnit.test('should pass ESLint', function(assert) {
@@ -67747,6 +67820,22 @@ enifed('ember/tests/helpers/link_to_test', ['ember-babel', 'ember-console', 'int
67747
67820
  assert.equal(this.$('#link3.active').length, 0, 'The link is not active since current-when does not contain the active route');
67748
67821
  };
67749
67822
 
67823
+ _class4.prototype['@test The {{link-to}} helper supports boolean values for current-when'] = function testTheLinkToHelperSupportsBooleanValuesForCurrentWhen(assert) {
67824
+ this.router.map(function (match) {
67825
+ this.route('index', { path: '/' }, function () {
67826
+ this.route('about');
67827
+ });
67828
+ this.route('item');
67829
+ });
67830
+
67831
+ this.addTemplate('index', '<h3>Home</h3>{{outlet}}');
67832
+ this.addTemplate('index.about', '{{#link-to \'item\' id=\'other-link\' current-when=true}}ITEM{{/link-to}}');
67833
+
67834
+ this.visit('/about');
67835
+
67836
+ assert.equal(this.$('#other-link').length, 1, 'The link is active since current-when is true');
67837
+ };
67838
+
67750
67839
  _class4.prototype['@test The {{link-to}} helper defaults to bubbling'] = function testTheLinkToHelperDefaultsToBubbling(assert) {
67751
67840
  this.addTemplate('about', '\n <div {{action \'hide\'}}>\n {{#link-to \'about.contact\' id=\'about-contact\'}}About{{/link-to}}\n </div>\n {{outlet}}\n ');
67752
67841
  this.addTemplate('about.contact', '\n <h1 id=\'contact\'>Contact</h1>\n ');
@@ -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.15.0-beta.2
9
+ * @version 2.15.0-beta.3
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -8734,19 +8734,36 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
8734
8734
  return _this5.component.destroy();
8735
8735
  });
8736
8736
 
8737
- if (this.isHTMLBars) {
8738
- // Bug in Glimmer – component should not have .element at this point
8739
- assert.ok(!this.component.element, 'It should not have an element');
8740
- }
8741
-
8737
+ assert.ok(!this.component.element, 'It should not have an element');
8742
8738
  assert.ok(!componentElement.parentElement, 'The component element should be detached');
8743
8739
 
8744
8740
  this.assert.equal(willDestroyCalled, 1);
8745
8741
  };
8746
8742
 
8747
- AbstractAppendTest.prototype['@test appending, updating and destroying multiple components'] = function (assert) {
8743
+ AbstractAppendTest.prototype['@test releasing a root component after it has been destroy'] = function (assert) {
8748
8744
  var _this6 = this;
8749
8745
 
8746
+ var renderer = this.owner.lookup('renderer:-dom');
8747
+
8748
+ this.registerComponent('x-component', {
8749
+ ComponentClass: _helpers.Component.extend()
8750
+ });
8751
+
8752
+ this.component = this.owner.factoryFor('component:x-component').create();
8753
+ this.append(this.component);
8754
+
8755
+ assert.equal(renderer._roots.length, 1, 'added a root component');
8756
+
8757
+ this.runTask(function () {
8758
+ return _this6.component.destroy();
8759
+ });
8760
+
8761
+ assert.equal(renderer._roots.length, 0, 'released the root component');
8762
+ };
8763
+
8764
+ AbstractAppendTest.prototype['@test appending, updating and destroying multiple components'] = function (assert) {
8765
+ var _this7 = this;
8766
+
8750
8767
  var willDestroyCalled = 0;
8751
8768
 
8752
8769
  this.registerComponent('x-first', {
@@ -8789,10 +8806,10 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
8789
8806
  wrapper2 = void 0;
8790
8807
 
8791
8808
  this.runTask(function () {
8792
- return wrapper1 = _this6.append(first);
8809
+ return wrapper1 = _this7.append(first);
8793
8810
  });
8794
8811
  this.runTask(function () {
8795
- return wrapper2 = _this6.append(second);
8812
+ return wrapper2 = _this7.append(second);
8796
8813
  });
8797
8814
 
8798
8815
  var componentElement1 = first.element;
@@ -8840,11 +8857,8 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
8840
8857
  second.destroy();
8841
8858
  });
8842
8859
 
8843
- if (this.isHTMLBars) {
8844
- // Bug in Glimmer – component should not have .element at this point
8845
- assert.ok(!first.element, 'The first component should not have an element');
8846
- assert.ok(!second.element, 'The second component should not have an element');
8847
- }
8860
+ assert.ok(!first.element, 'The first component should not have an element');
8861
+ assert.ok(!second.element, 'The second component should not have an element');
8848
8862
 
8849
8863
  assert.ok(!componentElement1.parentElement, 'The first component element should be detached');
8850
8864
  assert.ok(!componentElement2.parentElement, 'The second component element should be detached');
@@ -8853,12 +8867,12 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
8853
8867
  };
8854
8868
 
8855
8869
  AbstractAppendTest.prototype['@test can appendTo while rendering'] = function () {
8856
- var _this7 = this;
8870
+ var _this8 = this;
8857
8871
 
8858
8872
  var owner = this.owner;
8859
8873
 
8860
8874
  var append = function (component) {
8861
- return _this7.append(component);
8875
+ return _this8.append(component);
8862
8876
  };
8863
8877
 
8864
8878
  var element1 = void 0,
@@ -8898,12 +8912,12 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
8898
8912
  };
8899
8913
 
8900
8914
  AbstractAppendTest.prototype['@test can appendTo and remove while rendering'] = function (assert) {
8901
- var _this8 = this;
8915
+ var _this9 = this;
8902
8916
 
8903
8917
  var owner = this.owner;
8904
8918
 
8905
8919
  var append = function (component) {
8906
- return _this8.append(component);
8920
+ return _this9.append(component);
8907
8921
  };
8908
8922
 
8909
8923
  var element1 = void 0,
@@ -8991,7 +9005,7 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
8991
9005
  this.assertStableRerender();
8992
9006
 
8993
9007
  this.runTask(function () {
8994
- return (0, _emberMetal.set)(_this8.context, 'showFooBar', false);
9008
+ return (0, _emberMetal.set)(_this9.context, 'showFooBar', false);
8995
9009
  });
8996
9010
 
8997
9011
  assert.equal(instantiatedRoots, 2);
@@ -9046,7 +9060,7 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
9046
9060
  };
9047
9061
 
9048
9062
  _class2.prototype['@test raises an assertion when the target does not exist in the DOM'] = function (assert) {
9049
- var _this11 = this;
9063
+ var _this12 = this;
9050
9064
 
9051
9065
  this.registerComponent('foo-bar', {
9052
9066
  ComponentClass: _helpers.Component.extend({
@@ -9063,7 +9077,7 @@ enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel',
9063
9077
 
9064
9078
  this.runTask(function () {
9065
9079
  expectAssertion(function () {
9066
- _this11.component.appendTo('#does-not-exist-in-dom');
9080
+ _this12.component.appendTo('#does-not-exist-in-dom');
9067
9081
  }, /You tried to append to \(#does-not-exist-in-dom\) but that isn't in the DOM/);
9068
9082
  });
9069
9083
 
@@ -20377,6 +20391,29 @@ enifed('ember-glimmer/tests/integration/content-test', ['ember-babel', 'ember-gl
20377
20391
  this.assertInvariants();
20378
20392
  };
20379
20393
 
20394
+ DynamicContentTest.prototype['@test it can render a property on a function'] = function () {
20395
+ var func = function () {};
20396
+ func.aProp = 'this is a property on a function';
20397
+
20398
+ this.renderPath('func.aProp', { func: func });
20399
+
20400
+ this.assertContent('this is a property on a function');
20401
+
20402
+ this.assertStableRerender();
20403
+
20404
+ // this.runTask(() => set(func, 'aProp', 'still a property on a function'));
20405
+ // this.assertContent('still a property on a function');
20406
+ // this.assertInvariants();
20407
+
20408
+ // func = () => {};
20409
+ // func.aProp = 'a prop on a new function';
20410
+
20411
+ // this.runTask(() => set(this.context, 'func', func));
20412
+
20413
+ // this.assertContent('a prop on a new function');
20414
+ // this.assertInvariants();
20415
+ };
20416
+
20380
20417
  return DynamicContentTest;
20381
20418
  }(_testCase.RenderingTest);
20382
20419
 
@@ -26970,6 +27007,13 @@ enifed('ember-glimmer/tests/integration/helpers/input-test', ['ember-babel', 'em
26970
27007
  });
26971
27008
  };
26972
27009
 
27010
+ _class.prototype['@test GH#14727 can render a file input after having had render an input of other type'] = function () {
27011
+ this.render('{{input type="text"}}{{input type="file"}}');
27012
+
27013
+ this.assert.equal(this.$input()[0].type, 'text');
27014
+ this.assert.equal(this.$input()[1].type, 'file');
27015
+ };
27016
+
26973
27017
  return _class;
26974
27018
  }(InputRenderingTest));
26975
27019
 
@@ -43596,6 +43640,33 @@ enifed('ember-routing/tests/ext/controller_test', ['ember-utils', 'internal-test
43596
43640
  var queryParams = {};
43597
43641
  strictEqual(controller.transitionToRoute(queryParams), queryParams, 'passes query param only transitions through');
43598
43642
  });
43643
+
43644
+ QUnit.test('replaceRoute considers an engine\'s mountPoint', function () {
43645
+ expect(4);
43646
+
43647
+ var engineInstance = (0, _internalTestHelpers.buildOwner)({
43648
+ ownerOptions: {
43649
+ routable: true,
43650
+ mountPoint: 'foo.bar'
43651
+ }
43652
+ });
43653
+
43654
+ var controller = _emberRuntime.Controller.create({ target: {
43655
+ replaceWith: function (route) {
43656
+ return route;
43657
+ }
43658
+ } });
43659
+ (0, _emberUtils.setOwner)(controller, engineInstance);
43660
+
43661
+ strictEqual(controller.replaceRoute('application'), 'foo.bar.application', 'properly prefixes application route');
43662
+ strictEqual(controller.replaceRoute('posts'), 'foo.bar.posts', 'properly prefixes child routes');
43663
+ throws(function () {
43664
+ return controller.replaceRoute('/posts');
43665
+ }, 'throws when trying to use a url');
43666
+
43667
+ var queryParams = {};
43668
+ strictEqual(controller.replaceRoute(queryParams), queryParams, 'passes query param only transitions through');
43669
+ });
43599
43670
  });
43600
43671
  enifed('ember-routing/tests/location/auto_location_test', ['ember-utils', 'ember-environment', 'ember-metal', 'ember-routing/location/auto_location', 'ember-routing/location/history_location', 'ember-routing/location/hash_location', 'ember-routing/location/none_location', 'internal-test-helpers'], function (_emberUtils, _emberEnvironment, _emberMetal, _auto_location, _history_location, _hash_location, _none_location, _internalTestHelpers) {
43601
43672
  'use strict';
@@ -64095,6 +64166,22 @@ enifed('ember/tests/helpers/link_to_test', ['ember-babel', 'ember-console', 'int
64095
64166
  assert.equal(this.$('#link3.active').length, 0, 'The link is not active since current-when does not contain the active route');
64096
64167
  };
64097
64168
 
64169
+ _class4.prototype['@test The {{link-to}} helper supports boolean values for current-when'] = function (assert) {
64170
+ this.router.map(function () {
64171
+ this.route('index', { path: '/' }, function () {
64172
+ this.route('about');
64173
+ });
64174
+ this.route('item');
64175
+ });
64176
+
64177
+ this.addTemplate('index', '<h3>Home</h3>{{outlet}}');
64178
+ this.addTemplate('index.about', '{{#link-to \'item\' id=\'other-link\' current-when=true}}ITEM{{/link-to}}');
64179
+
64180
+ this.visit('/about');
64181
+
64182
+ assert.equal(this.$('#other-link').length, 1, 'The link is active since current-when is true');
64183
+ };
64184
+
64098
64185
  _class4.prototype['@test The {{link-to}} helper defaults to bubbling'] = function (assert) {
64099
64186
  this.addTemplate('about', '\n <div {{action \'hide\'}}>\n {{#link-to \'about.contact\' id=\'about-contact\'}}About{{/link-to}}\n </div>\n {{outlet}}\n ');
64100
64187
  this.addTemplate('about.contact', '\n <h1 id=\'contact\'>Contact</h1>\n ');