ember-source 2.12.0.beta.2 → 2.12.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: 37303faedadf93a871dc19fafeb37540c8c3642d
4
- data.tar.gz: a619f31c8e15940b79bb85a894e5c2f521f15331
3
+ metadata.gz: 9aa0f3a49fd3afec1f4ec0971bfb36797ef66790
4
+ data.tar.gz: 1b1a42475991461b5d4f37a023055dd7eba10f3b
5
5
  SHA512:
6
- metadata.gz: 66f98ae2d785761fc22306571796f7bfd66ab284815ee4ad453fa9123698db29fb7d4c0824a0f5276d7f13aa873552a91471787f9ff3413b97094ffad3c8dc35
7
- data.tar.gz: 145778411ff9939ec4f95c98ae285d87b187e394e6ba0eb67171609450562cae1e2eefd4c553267e6e5dd2ce2d2c092749e0bfcf9f40f61704fc052c24335ffb
6
+ metadata.gz: d5c985994b4aa873f8e38e5891d160aa8cdce41b859920214cc777abe1efc230d1c2c3e4a213090ba28fddcb3e29eee7050e937319d7b744d1d91255192ad616
7
+ data.tar.gz: c5d38b68cddeb55320c9fdcc9128c776737ebe7ace23831fbb7e543187c7e1c2898e75de0c9eee62f4af6574e637cfb1f3d6a2fa8db91b9125ee9b37d3ef033d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.12.0.beta.2
1
+ 2.12.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.12.0-beta.2
9
+ * @version 2.12.0-beta.3
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -164,7 +164,7 @@ function defaults(obj, defaults) {
164
164
  return obj;
165
165
  }
166
166
 
167
- babelHelpers = {
167
+ var babelHelpers = {
168
168
  inherits: inherits,
169
169
  taggedTemplateLiteralLoose: taggedTemplateLiteralLoose,
170
170
  slice: Array.prototype.slice,
@@ -4944,6 +4944,7 @@ enifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-metal/te
4944
4944
  exports.getOnerror = getOnerror;
4945
4945
  exports.setOnerror = setOnerror;
4946
4946
  exports.dispatchError = dispatchError;
4947
+ exports.getDispatchOverride = getDispatchOverride;
4947
4948
  exports.setDispatchOverride = setDispatchOverride;
4948
4949
 
4949
4950
  // To maintain stacktrace consistency across browsers
@@ -4984,6 +4985,10 @@ enifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-metal/te
4984
4985
 
4985
4986
  // allows testing adapter to override dispatch
4986
4987
 
4988
+ function getDispatchOverride() {
4989
+ return dispatchOverride;
4990
+ }
4991
+
4987
4992
  function setDispatchOverride(handler) {
4988
4993
  dispatchOverride = handler;
4989
4994
  }
@@ -9608,7 +9613,7 @@ enifed('ember-metal/run_loop', ['exports', 'ember-utils', 'ember-metal/debug', '
9608
9613
 
9609
9614
  var onErrorTarget = {
9610
9615
  get onerror() {
9611
- return _emberMetalError_handler.getOnerror();
9616
+ return _emberMetalError_handler.dispatchError;
9612
9617
  },
9613
9618
  set onerror(handler) {
9614
9619
  return _emberMetalError_handler.setOnerror(handler);
@@ -16557,9 +16562,9 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal'], function (
16557
16562
  only a sender and key value as parameters or, if you aren't interested in
16558
16563
  any of these values, to write an observer that has no parameters at all.
16559
16564
  @method addObserver
16560
- @param {String} key The key to observer
16565
+ @param {String} key The key to observe
16561
16566
  @param {Object} target The target object to invoke
16562
- @param {String|Function} method The method to invoke.
16567
+ @param {String|Function} method The method to invoke
16563
16568
  @public
16564
16569
  */
16565
16570
  addObserver: function (key, target, method) {
@@ -16571,9 +16576,9 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal'], function (
16571
16576
  the same key, target, and method you passed to `addObserver()` and your
16572
16577
  target will no longer receive notifications.
16573
16578
  @method removeObserver
16574
- @param {String} key The key to observer
16579
+ @param {String} key The key to observe
16575
16580
  @param {Object} target The target object to invoke
16576
- @param {String|Function} method The method to invoke.
16581
+ @param {String|Function} method The method to invoke
16577
16582
  @public
16578
16583
  */
16579
16584
  removeObserver: function (key, target, method) {
@@ -19746,7 +19751,7 @@ enifed("ember/features", ["exports"], function (exports) {
19746
19751
  enifed("ember/version", ["exports"], function (exports) {
19747
19752
  "use strict";
19748
19753
 
19749
- exports.default = "2.12.0-beta.2";
19754
+ exports.default = "2.12.0-beta.3";
19750
19755
  });
19751
19756
  enifed('rsvp', ['exports'], function (exports) {
19752
19757
  'use strict';
@@ -20170,6 +20175,7 @@ enifed('rsvp', ['exports'], function (exports) {
20170
20175
  } else {
20171
20176
  if (then$$ === GET_THEN_ERROR) {
20172
20177
  reject(promise, GET_THEN_ERROR.error);
20178
+ GET_THEN_ERROR.error = null;
20173
20179
  } else if (then$$ === undefined) {
20174
20180
  fulfill(promise, maybeThenable);
20175
20181
  } else if (isFunction(then$$)) {
@@ -20297,10 +20303,10 @@ enifed('rsvp', ['exports'], function (exports) {
20297
20303
  if (value === TRY_CATCH_ERROR) {
20298
20304
  failed = true;
20299
20305
  error = value.error;
20300
- value = null;
20306
+ value.error = null; // release
20301
20307
  } else {
20302
- succeeded = true;
20303
- }
20308
+ succeeded = true;
20309
+ }
20304
20310
 
20305
20311
  if (promise === value) {
20306
20312
  reject(promise, withOwnPromise());
@@ -21084,7 +21090,7 @@ enifed('rsvp', ['exports'], function (exports) {
21084
21090
  try {
21085
21091
  return findAuthor(); // succeed or fail
21086
21092
  } catch(error) {
21087
- return findOtherAuther();
21093
+ return findOtherAuthor();
21088
21094
  } finally {
21089
21095
  // always runs
21090
21096
  // doesn't affect the return value
@@ -21095,7 +21101,7 @@ enifed('rsvp', ['exports'], function (exports) {
21095
21101
 
21096
21102
  ```js
21097
21103
  findAuthor().catch(function(reason){
21098
- return findOtherAuther();
21104
+ return findOtherAuthor();
21099
21105
  }).finally(function(){
21100
21106
  // author was either found, or not
21101
21107
  });
@@ -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.12.0-beta.2
9
+ * @version 2.12.0-beta.3
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -174,7 +174,7 @@ function defaults(obj, defaults) {
174
174
  return obj;
175
175
  }
176
176
 
177
- babelHelpers = {
177
+ var babelHelpers = {
178
178
  classCallCheck: classCallCheck,
179
179
  inherits: inherits,
180
180
  taggedTemplateLiteralLoose: taggedTemplateLiteralLoose,
@@ -4001,6 +4001,7 @@ enifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-metal/te
4001
4001
  exports.getOnerror = getOnerror;
4002
4002
  exports.setOnerror = setOnerror;
4003
4003
  exports.dispatchError = dispatchError;
4004
+ exports.getDispatchOverride = getDispatchOverride;
4004
4005
  exports.setDispatchOverride = setDispatchOverride;
4005
4006
 
4006
4007
  // To maintain stacktrace consistency across browsers
@@ -4041,6 +4042,10 @@ enifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-metal/te
4041
4042
 
4042
4043
  // allows testing adapter to override dispatch
4043
4044
 
4045
+ function getDispatchOverride() {
4046
+ return dispatchOverride;
4047
+ }
4048
+
4044
4049
  function setDispatchOverride(handler) {
4045
4050
  dispatchOverride = handler;
4046
4051
  }
@@ -8673,7 +8678,7 @@ enifed('ember-metal/run_loop', ['exports', 'ember-utils', 'ember-metal/debug', '
8673
8678
 
8674
8679
  var onErrorTarget = {
8675
8680
  get onerror() {
8676
- return _emberMetalError_handler.getOnerror();
8681
+ return _emberMetalError_handler.dispatchError;
8677
8682
  },
8678
8683
  set onerror(handler) {
8679
8684
  return _emberMetalError_handler.setOnerror(handler);
@@ -11956,8 +11961,7 @@ enifed('ember-utils/owner', ['exports', 'ember-utils/symbol'], function (exports
11956
11961
  For example, this component dynamically looks up a service based on the
11957
11962
  `audioType` passed as an attribute:
11958
11963
 
11959
- ```
11960
- // app/components/play-audio.js
11964
+ ```app/components/play-audio.js
11961
11965
  import Ember from 'ember';
11962
11966
 
11963
11967
  // Usage:
@@ -12142,7 +12146,7 @@ enifed("ember/features", ["exports"], function (exports) {
12142
12146
  enifed("ember/version", ["exports"], function (exports) {
12143
12147
  "use strict";
12144
12148
 
12145
- exports.default = "2.12.0-beta.2";
12149
+ exports.default = "2.12.0-beta.3";
12146
12150
  });
12147
12151
  enifed("glimmer-compiler/index", ["exports", "glimmer-compiler/lib/compiler", "glimmer-compiler/lib/template-visitor"], function (exports, _glimmerCompilerLibCompiler, _glimmerCompilerLibTemplateVisitor) {
12148
12152
  "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.12.0-beta.2
9
+ * @version 2.12.0-beta.3
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -174,7 +174,7 @@ function defaults(obj, defaults) {
174
174
  return obj;
175
175
  }
176
176
 
177
- babelHelpers = {
177
+ var babelHelpers = {
178
178
  classCallCheck: classCallCheck,
179
179
  inherits: inherits,
180
180
  taggedTemplateLiteralLoose: taggedTemplateLiteralLoose,
@@ -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.12.0-beta.2
9
+ * @version 2.12.0-beta.3
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -174,7 +174,7 @@ function defaults(obj, defaults) {
174
174
  return obj;
175
175
  }
176
176
 
177
- babelHelpers = {
177
+ var babelHelpers = {
178
178
  classCallCheck: classCallCheck,
179
179
  inherits: inherits,
180
180
  taggedTemplateLiteralLoose: taggedTemplateLiteralLoose,
@@ -7803,6 +7803,14 @@ enifed('ember-extension-support/tests/data_adapter_test', ['exports', 'ember-met
7803
7803
  _emberMetal.set(post, 'title', 'New Title');
7804
7804
  equal(updatesCalled, 1, 'Release function removes observers');
7805
7805
  });
7806
+
7807
+ QUnit.test('_nameToClass does not error when not found', function (assert) {
7808
+ adapter = App.__container__.lookup('data-adapter:main');
7809
+
7810
+ var klass = adapter._nameToClass('App.Foo');
7811
+
7812
+ assert.equal(klass, undefined, 'returns undefined');
7813
+ });
7806
7814
  });
7807
7815
  enifed('ember-extension-support/tests/data_adapter_test.lint-test', ['exports'], function (exports) {
7808
7816
  'use strict';
@@ -16684,6 +16692,50 @@ enifed('ember-glimmer/tests/integration/components/curly-components-test.lint-te
16684
16692
  assert.ok(true, 'ember-glimmer/tests/integration/components/curly-components-test.js should pass ESLint\n\n');
16685
16693
  });
16686
16694
  });
16695
+ enifed('ember-glimmer/tests/integration/components/destroy-test', ['exports', 'ember-metal', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/test-case'], function (exports, _emberMetal, _emberGlimmerTestsUtilsHelpers, _emberGlimmerTestsUtilsTestCase) {
16696
+ 'use strict';
16697
+
16698
+ _emberGlimmerTestsUtilsTestCase.moduleFor('Component destroy', (function (_RenderingTest) {
16699
+ babelHelpers.inherits(_class, _RenderingTest);
16700
+
16701
+ function _class() {
16702
+ babelHelpers.classCallCheck(this, _class);
16703
+
16704
+ _RenderingTest.apply(this, arguments);
16705
+ }
16706
+
16707
+ _class.prototype['@test it correctly releases the destroyed components'] = function testItCorrectlyReleasesTheDestroyedComponents(assert) {
16708
+ var _this = this;
16709
+
16710
+ var FooBarComponent = _emberGlimmerTestsUtilsHelpers.Component.extend({});
16711
+
16712
+ this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });
16713
+
16714
+ this.render('{{#if switch}}{{#foo-bar}}{{foo-bar}}{{/foo-bar}}{{/if}}', { switch: true });
16715
+
16716
+ this.assertComponentElement(this.firstChild, { content: 'hello' });
16717
+
16718
+ this.runTask(function () {
16719
+ return _emberMetal.set(_this.context, 'switch', false);
16720
+ });
16721
+
16722
+ this.assertText('');
16723
+
16724
+ assert.equal(this.env.destroyedComponents.length, 0, 'enviroment.destroyedComponents should be empty');
16725
+ };
16726
+
16727
+ return _class;
16728
+ })(_emberGlimmerTestsUtilsTestCase.RenderingTest));
16729
+ });
16730
+ enifed('ember-glimmer/tests/integration/components/destroy-test.lint-test', ['exports'], function (exports) {
16731
+ 'use strict';
16732
+
16733
+ QUnit.module('ESLint | ember-glimmer/tests/integration/components/destroy-test.js');
16734
+ QUnit.test('should pass ESLint', function (assert) {
16735
+ assert.expect(1);
16736
+ assert.ok(true, 'ember-glimmer/tests/integration/components/destroy-test.js should pass ESLint\n\n');
16737
+ });
16738
+ });
16687
16739
  enifed('ember-glimmer/tests/integration/components/dynamic-components-test', ['exports', 'ember-metal', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/test-case'], function (exports, _emberMetal, _emberGlimmerTestsUtilsHelpers, _emberGlimmerTestsUtilsAbstractTestCase, _emberGlimmerTestsUtilsTestCase) {
16688
16740
  'use strict';
16689
16741
 
@@ -22470,8 +22522,8 @@ enifed('ember-glimmer/tests/integration/content-test', ['exports', 'ember-glimme
22470
22522
  _emberMetal.setDebugFunction('warn', originalWarn);
22471
22523
  };
22472
22524
 
22473
- StyleTest.prototype.assertStyleWarning = function assertStyleWarning() {
22474
- this.assert.deepEqual(warnings, [_emberViews.STYLE_WARNING]);
22525
+ StyleTest.prototype.assertStyleWarning = function assertStyleWarning(style) {
22526
+ this.assert.deepEqual(warnings, [_emberViews.constructStyleDeprecationMessage(style)]);
22475
22527
  };
22476
22528
 
22477
22529
  StyleTest.prototype.assertNoWarning = function assertNoWarning() {
@@ -22570,11 +22622,12 @@ enifed('ember-glimmer/tests/integration/content-test', ['exports', 'ember-glimme
22570
22622
  }
22571
22623
 
22572
22624
  _class9.prototype['@test specifying <div style={{userValue}}></div> generates a warning'] = function testSpecifyingDivStyleUserValueDivGeneratesAWarning(assert) {
22625
+ var userValue = 'width: 42px';
22573
22626
  this.render('<div style={{userValue}}></div>', {
22574
- userValue: 'width: 42px'
22627
+ userValue: userValue
22575
22628
  });
22576
22629
 
22577
- this.assertStyleWarning();
22630
+ this.assertStyleWarning(userValue);
22578
22631
  };
22579
22632
 
22580
22633
  _class9.prototype['@test specifying `attributeBindings: ["style"]` generates a warning'] = function testSpecifyingAttributeBindingsStyleGeneratesAWarning(assert) {
@@ -22583,12 +22636,12 @@ enifed('ember-glimmer/tests/integration/content-test', ['exports', 'ember-glimme
22583
22636
  });
22584
22637
 
22585
22638
  this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });
22586
-
22639
+ var userValue = 'width: 42px';
22587
22640
  this.render('{{foo-bar style=userValue}}', {
22588
- userValue: 'width: 42px'
22641
+ userValue: userValue
22589
22642
  });
22590
22643
 
22591
- this.assertStyleWarning();
22644
+ this.assertStyleWarning(userValue);
22592
22645
  };
22593
22646
 
22594
22647
  _class9.prototype['@test specifying `<div style={{{userValue}}}></div>` works properly without a warning'] = function testSpecifyingDivStyleUserValueDivWorksProperlyWithoutAWarning(assert) {
@@ -22638,35 +22691,39 @@ enifed('ember-glimmer/tests/integration/content-test', ['exports', 'ember-glimme
22638
22691
  };
22639
22692
 
22640
22693
  _class9.prototype['@test binding warning is triggered when an unsafe string is quoted'] = function testBindingWarningIsTriggeredWhenAnUnsafeStringIsQuoted(assert) {
22694
+ var userValue = 'width: 42px';
22641
22695
  this.render('<div style="{{userValue}}"></div>', {
22642
- userValue: 'width: 42px'
22696
+ userValue: userValue
22643
22697
  });
22644
22698
 
22645
- this.assertStyleWarning();
22699
+ this.assertStyleWarning(userValue);
22646
22700
  };
22647
22701
 
22648
22702
  _class9.prototype['@test binding warning is triggered when a safe string for a complete property is concatenated in place'] = function testBindingWarningIsTriggeredWhenASafeStringForACompletePropertyIsConcatenatedInPlace(assert) {
22703
+ var userValue = 'width: 42px';
22649
22704
  this.render('<div style="color: green; {{userValue}}"></div>', {
22650
22705
  userValue: new _emberGlimmerTestsUtilsHelpers.SafeString('width: 42px')
22651
22706
  });
22652
22707
 
22653
- this.assertStyleWarning();
22708
+ this.assertStyleWarning('color: green; ' + userValue);
22654
22709
  };
22655
22710
 
22656
22711
  _class9.prototype['@test binding warning is triggered when a safe string for a value is concatenated in place'] = function testBindingWarningIsTriggeredWhenASafeStringForAValueIsConcatenatedInPlace(assert) {
22712
+ var userValue = '42px';
22657
22713
  this.render('<div style="color: green; width: {{userValue}}"></div>', {
22658
- userValue: new _emberGlimmerTestsUtilsHelpers.SafeString('42px')
22714
+ userValue: new _emberGlimmerTestsUtilsHelpers.SafeString(userValue)
22659
22715
  });
22660
22716
 
22661
- this.assertStyleWarning();
22717
+ this.assertStyleWarning('color: green; width: ' + userValue);
22662
22718
  };
22663
22719
 
22664
22720
  _class9.prototype['@test binding warning is triggered when a safe string for a property name is concatenated in place'] = function testBindingWarningIsTriggeredWhenASafeStringForAPropertyNameIsConcatenatedInPlace(assert) {
22721
+ var userValue = 'width';
22665
22722
  this.render('<div style="color: green; {{userProperty}}: 42px"></div>', {
22666
- userProperty: new _emberGlimmerTestsUtilsHelpers.SafeString('width')
22723
+ userProperty: new _emberGlimmerTestsUtilsHelpers.SafeString(userValue)
22667
22724
  });
22668
22725
 
22669
- this.assertStyleWarning();
22726
+ this.assertStyleWarning('color: green; ' + userValue + ': 42px');
22670
22727
  };
22671
22728
 
22672
22729
  return _class9;
@@ -45732,7 +45789,7 @@ enifed('ember-metal/tests/run_loop/once_test.lint-test', ['exports'], function (
45732
45789
  assert.ok(true, 'ember-metal/tests/run_loop/once_test.js should pass ESLint\n\n');
45733
45790
  });
45734
45791
  });
45735
- enifed('ember-metal/tests/run_loop/onerror_test', ['exports', 'ember-metal/run_loop', 'ember-metal/error_handler'], function (exports, _emberMetalRun_loop, _emberMetalError_handler) {
45792
+ enifed('ember-metal/tests/run_loop/onerror_test', ['exports', 'ember-metal/run_loop', 'ember-metal/error_handler', 'ember-metal/testing'], function (exports, _emberMetalRun_loop, _emberMetalError_handler, _emberMetalTesting) {
45736
45793
  'use strict';
45737
45794
 
45738
45795
  QUnit.module('system/run_loop/onerror_test');
@@ -45759,17 +45816,24 @@ enifed('ember-metal/tests/run_loop/onerror_test', ['exports', 'ember-metal/run_l
45759
45816
  QUnit.test('With Ember.onerror set, errors in Ember.run are caught', function () {
45760
45817
  var thrown = new Error('Boom!');
45761
45818
  var original = _emberMetalError_handler.getOnerror();
45819
+ var originalDispatchOverride = _emberMetalError_handler.getDispatchOverride();
45820
+ var originalIsTesting = _emberMetalTesting.isTesting();
45762
45821
 
45763
45822
  var caught = undefined;
45764
45823
  _emberMetalError_handler.setOnerror(function (error) {
45765
45824
  caught = error;
45766
45825
  });
45826
+ _emberMetalError_handler.setDispatchOverride(null);
45827
+ _emberMetalTesting.setTesting(false);
45828
+
45767
45829
  try {
45768
45830
  _emberMetalRun_loop.default(function () {
45769
45831
  throw thrown;
45770
45832
  });
45771
45833
  } finally {
45772
45834
  _emberMetalError_handler.setOnerror(original);
45835
+ _emberMetalError_handler.setDispatchOverride(originalDispatchOverride);
45836
+ _emberMetalTesting.setTesting(originalIsTesting);
45773
45837
  }
45774
45838
 
45775
45839
  deepEqual(caught, thrown);
@@ -65266,9 +65330,11 @@ enifed('ember-testing/tests/adapters_test', ['exports', 'ember-metal', 'ember-te
65266
65330
  originalQUnit = window.QUnit;
65267
65331
  },
65268
65332
  teardown: function () {
65269
- _emberMetal.run(App, App.destroy);
65270
- App.removeTestHelpers();
65271
- App = null;
65333
+ if (App) {
65334
+ _emberMetal.run(App, App.destroy);
65335
+ App.removeTestHelpers();
65336
+ App = null;
65337
+ }
65272
65338
 
65273
65339
  _emberTestingTest.default.adapter = originalAdapter;
65274
65340
  window.QUnit = originalQUnit;
@@ -65322,6 +65388,23 @@ enifed('ember-testing/tests/adapters_test', ['exports', 'ember-metal', 'ember-te
65322
65388
  ok(_emberTestingTest.default.adapter instanceof _emberTestingAdaptersAdapter.default);
65323
65389
  ok(!(_emberTestingTest.default.adapter instanceof _emberTestingAdaptersQunit.default));
65324
65390
  });
65391
+
65392
+ QUnit.test('With Ember.Test.adapter set, errors in Ember.run are caught', function () {
65393
+ var thrown = new Error('Boom!');
65394
+
65395
+ var caught = undefined;
65396
+ _emberTestingTest.default.adapter = _emberTestingAdaptersQunit.default.create({
65397
+ exception: function (error) {
65398
+ caught = error;
65399
+ }
65400
+ });
65401
+
65402
+ _emberMetal.run(function () {
65403
+ throw thrown;
65404
+ });
65405
+
65406
+ deepEqual(caught, thrown);
65407
+ });
65325
65408
  });
65326
65409
  enifed('ember-testing/tests/adapters_test.lint-test', ['exports'], function (exports) {
65327
65410
  'use strict';