ember-source 1.12.2 → 1.13.0.beta.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.
@@ -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.12.2
8
+ * @version 1.13.0-beta.1
9
9
  */
10
10
 
11
11
  (function() {
@@ -110,16 +110,50 @@ var mainContext = this;
110
110
  }
111
111
  })();
112
112
 
113
- enifed('ember-debug', ['exports', 'ember-metal/core', 'ember-metal/utils', 'ember-metal/error', 'ember-metal/logger', 'ember-metal/environment'], function (exports, Ember, utils, EmberError, Logger, environment) {
113
+ enifed('ember-debug', ['exports', 'ember-metal/core', 'ember-metal/error', 'ember-metal/logger', 'ember-metal/environment'], function (exports, Ember, EmberError, Logger, environment) {
114
114
 
115
115
  'use strict';
116
116
 
117
117
  exports._warnIfUsingStrippedFeatureFlags = _warnIfUsingStrippedFeatureFlags;
118
118
 
119
+ /**
120
+ Will call `Ember.warn()` if ENABLE_ALL_FEATURES, ENABLE_OPTIONAL_FEATURES, or
121
+ any specific FEATURES flag is truthy.
122
+
123
+ This method is called automatically in debug canary builds.
124
+
125
+ @private
126
+ @method _warnIfUsingStrippedFeatureFlags
127
+ @return {void}
128
+ */
129
+ function isPlainFunction(test) {
130
+ return typeof test === "function" && test.PrototypeMixin === undefined;
131
+ }
132
+
133
+ /**
134
+ Define an assertion that will throw an exception if the condition is not
135
+ met. Ember build tools will remove any calls to `Ember.assert()` when
136
+ doing a production build. Example:
137
+
138
+ ```javascript
139
+ // Test for truthiness
140
+ Ember.assert('Must pass a valid object', obj);
141
+
142
+ // Fail unconditionally
143
+ Ember.assert('This code path should never be run');
144
+ ```
145
+
146
+ @method assert
147
+ @param {String} desc A description of the assertion. This will become
148
+ the text of the Error thrown if the assertion fails.
149
+ @param {Boolean|Function} test Must be truthy for the assertion to pass. If
150
+ falsy, an exception will be thrown. If this is a function, it will be executed and
151
+ its return value will be used as condition.
152
+ */
119
153
  Ember['default'].assert = function (desc, test) {
120
154
  var throwAssertion;
121
155
 
122
- if (utils.typeOf(test) === 'function') {
156
+ if (isPlainFunction(test)) {
123
157
  throwAssertion = !test();
124
158
  } else {
125
159
  throwAssertion = !test;
@@ -142,7 +176,7 @@ enifed('ember-debug', ['exports', 'ember-metal/core', 'ember-metal/utils', 'embe
142
176
  Ember['default'].warn = function (message, test) {
143
177
  if (!test) {
144
178
  Logger['default'].warn("WARNING: " + message);
145
- if ('trace' in Logger['default']) {
179
+ if ("trace" in Logger['default']) {
146
180
  Logger['default'].trace();
147
181
  }
148
182
  }
@@ -179,7 +213,7 @@ enifed('ember-debug', ['exports', 'ember-metal/core', 'ember-metal/utils', 'embe
179
213
  Ember['default'].deprecate = function (message, test, options) {
180
214
  var noDeprecation;
181
215
 
182
- if (typeof test === 'function') {
216
+ if (isPlainFunction(test)) {
183
217
  noDeprecation = test();
184
218
  } else {
185
219
  noDeprecation = test;
@@ -203,23 +237,23 @@ enifed('ember-debug', ['exports', 'ember-metal/core', 'ember-metal/utils', 'embe
203
237
  }
204
238
 
205
239
  if (arguments.length === 3) {
206
- Ember['default'].assert('options argument to Ember.deprecate should be an object', options && typeof options === 'object');
240
+ Ember['default'].assert("options argument to Ember.deprecate should be an object", options && typeof options === "object");
207
241
  if (options.url) {
208
- message += ' See ' + options.url + ' for more details.';
242
+ message += " See " + options.url + " for more details.";
209
243
  }
210
244
  }
211
245
 
212
246
  if (Ember['default'].LOG_STACKTRACE_ON_DEPRECATION && error.stack) {
213
247
  var stack;
214
- var stackStr = '';
248
+ var stackStr = "";
215
249
 
216
- if (error['arguments']) {
250
+ if (error["arguments"]) {
217
251
  // Chrome
218
- stack = error.stack.replace(/^\s+at\s+/gm, '').replace(/^([^\(]+?)([\n$])/gm, '{anonymous}($1)$2').replace(/^Object.<anonymous>\s*\(([^\)]+)\)/gm, '{anonymous}($1)').split('\n');
252
+ stack = error.stack.replace(/^\s+at\s+/gm, "").replace(/^([^\(]+?)([\n$])/gm, "{anonymous}($1)$2").replace(/^Object.<anonymous>\s*\(([^\)]+)\)/gm, "{anonymous}($1)").split("\n");
219
253
  stack.shift();
220
254
  } else {
221
255
  // Firefox
222
- stack = error.stack.replace(/(?:\n@:0)?\s+$/m, '').replace(/^\(/gm, '{anonymous}(').split('\n');
256
+ stack = error.stack.replace(/(?:\n@:0)?\s+$/m, "").replace(/^\(/gm, "{anonymous}(").split("\n");
223
257
  }
224
258
 
225
259
  stackStr = "\n " + stack.slice(2).join("\n ");
@@ -275,26 +309,14 @@ enifed('ember-debug', ['exports', 'ember-metal/core', 'ember-metal/utils', 'embe
275
309
  Ember['default'].runInDebug = function (func) {
276
310
  func();
277
311
  };
278
-
279
- /**
280
- Will call `Ember.warn()` if ENABLE_ALL_FEATURES, ENABLE_OPTIONAL_FEATURES, or
281
- any specific FEATURES flag is truthy.
282
-
283
- This method is called automatically in debug canary builds.
284
-
285
- @private
286
- @method _warnIfUsingStrippedFeatureFlags
287
- @return {void}
288
- */
289
-
290
312
  function _warnIfUsingStrippedFeatureFlags(FEATURES, featuresWereStripped) {
291
313
  if (featuresWereStripped) {
292
- Ember['default'].warn('Ember.ENV.ENABLE_ALL_FEATURES is only available in canary builds.', !Ember['default'].ENV.ENABLE_ALL_FEATURES);
293
- Ember['default'].warn('Ember.ENV.ENABLE_OPTIONAL_FEATURES is only available in canary builds.', !Ember['default'].ENV.ENABLE_OPTIONAL_FEATURES);
314
+ Ember['default'].warn("Ember.ENV.ENABLE_ALL_FEATURES is only available in canary builds.", !Ember['default'].ENV.ENABLE_ALL_FEATURES);
315
+ Ember['default'].warn("Ember.ENV.ENABLE_OPTIONAL_FEATURES is only available in canary builds.", !Ember['default'].ENV.ENABLE_OPTIONAL_FEATURES);
294
316
 
295
317
  for (var key in FEATURES) {
296
- if (FEATURES.hasOwnProperty(key) && key !== 'isEnabled') {
297
- Ember['default'].warn('FEATURE["' + key + '"] is set as enabled, but FEATURE flags are only available in canary builds.', !FEATURES[key]);
318
+ if (FEATURES.hasOwnProperty(key) && key !== "isEnabled") {
319
+ Ember['default'].warn("FEATURE[\"" + key + "\"] is set as enabled, but FEATURE flags are only available in canary builds.", !FEATURES[key]);
298
320
  }
299
321
  }
300
322
  }
@@ -302,29 +324,29 @@ enifed('ember-debug', ['exports', 'ember-metal/core', 'ember-metal/utils', 'embe
302
324
 
303
325
  if (!Ember['default'].testing) {
304
326
  // Complain if they're using FEATURE flags in builds other than canary
305
- Ember['default'].FEATURES['features-stripped-test'] = true;
327
+ Ember['default'].FEATURES["features-stripped-test"] = true;
306
328
  var featuresWereStripped = true;
307
329
 
308
330
 
309
- delete Ember['default'].FEATURES['features-stripped-test'];
331
+ delete Ember['default'].FEATURES["features-stripped-test"];
310
332
  _warnIfUsingStrippedFeatureFlags(Ember['default'].ENV.FEATURES, featuresWereStripped);
311
333
 
312
334
  // Inform the developer about the Ember Inspector if not installed.
313
- var isFirefox = typeof InstallTrigger !== 'undefined';
335
+ var isFirefox = environment['default'].isFirefox;
314
336
  var isChrome = environment['default'].isChrome;
315
337
 
316
- if (typeof window !== 'undefined' && (isFirefox || isChrome) && window.addEventListener) {
338
+ if (typeof window !== "undefined" && (isFirefox || isChrome) && window.addEventListener) {
317
339
  window.addEventListener("load", function () {
318
340
  if (document.documentElement && document.documentElement.dataset && !document.documentElement.dataset.emberExtension) {
319
341
  var downloadURL;
320
342
 
321
343
  if (isChrome) {
322
- downloadURL = 'https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi';
344
+ downloadURL = "https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi";
323
345
  } else if (isFirefox) {
324
- downloadURL = 'https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/';
346
+ downloadURL = "https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/";
325
347
  }
326
348
 
327
- Ember['default'].debug('For more advanced debugging, install the Ember Inspector from ' + downloadURL);
349
+ Ember['default'].debug("For more advanced debugging, install the Ember Inspector from " + downloadURL);
328
350
  }
329
351
  }, false);
330
352
  }
@@ -340,7 +362,7 @@ enifed('ember-debug', ['exports', 'ember-metal/core', 'ember-metal/utils', 'embe
340
362
  */
341
363
  var runningNonEmberDebugJS = false;
342
364
  if (runningNonEmberDebugJS) {
343
- Ember['default'].warn('Please use `ember.debug.js` instead of `ember.js` for development and debugging.');
365
+ Ember['default'].warn("Please use `ember.debug.js` instead of `ember.js` for development and debugging.");
344
366
  }
345
367
 
346
368
  exports.runningNonEmberDebugJS = runningNonEmberDebugJS;
@@ -440,32 +462,32 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
440
462
  var asyncHelper = Test['default'].registerAsyncHelper;
441
463
 
442
464
  function currentRouteName(app) {
443
- var appController = app.__container__.lookup('controller:application');
465
+ var appController = app.__container__.lookup("controller:application");
444
466
 
445
- return property_get.get(appController, 'currentRouteName');
467
+ return property_get.get(appController, "currentRouteName");
446
468
  }
447
469
 
448
470
  function currentPath(app) {
449
- var appController = app.__container__.lookup('controller:application');
471
+ var appController = app.__container__.lookup("controller:application");
450
472
 
451
- return property_get.get(appController, 'currentPath');
473
+ return property_get.get(appController, "currentPath");
452
474
  }
453
475
 
454
476
  function currentURL(app) {
455
- var router = app.__container__.lookup('router:main');
477
+ var router = app.__container__.lookup("router:main");
456
478
 
457
- return property_get.get(router, 'location').getURL();
479
+ return property_get.get(router, "location").getURL();
458
480
  }
459
481
 
460
482
  function pauseTest() {
461
483
  Test['default'].adapter.asyncStart();
462
- return new Ember['default'].RSVP.Promise(function () {}, 'TestAdapter paused promise');
484
+ return new Ember['default'].RSVP.Promise(function () {}, "TestAdapter paused promise");
463
485
  }
464
486
 
465
487
  function focus(el) {
466
- if (el && el.is(':input, [contenteditable=true]')) {
467
- var type = el.prop('type');
468
- if (type !== 'checkbox' && type !== 'radio' && type !== 'hidden') {
488
+ if (el && el.is(":input, [contenteditable=true]")) {
489
+ var type = el.prop("type");
490
+ if (type !== "checkbox" && type !== "radio" && type !== "hidden") {
469
491
  run['default'](el, function () {
470
492
  // Firefox does not trigger the `focusin` event if the window
471
493
  // does not have focus. If the document doesn't have focus just
@@ -473,7 +495,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
473
495
  if (!document.hasFocus || document.hasFocus()) {
474
496
  this.focus();
475
497
  } else {
476
- this.trigger('focusin');
498
+ this.trigger("focusin");
477
499
  }
478
500
  });
479
501
  }
@@ -481,17 +503,15 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
481
503
  }
482
504
 
483
505
  function visit(app, url) {
484
- var router = app.__container__.lookup('router:main');
485
- app.boot().then(function () {
486
- router.location.setURL(url);
487
- });
506
+ var router = app.__container__.lookup("router:main");
488
507
 
489
508
  if (app._readinessDeferrals > 0) {
490
- router['initialURL'] = url;
491
- run['default'](app, 'advanceReadiness');
492
- delete router['initialURL'];
509
+ router["initialURL"] = url;
510
+ run['default'](app, "advanceReadiness");
511
+ delete router["initialURL"];
493
512
  } else {
494
- run['default'](app.__deprecatedInstance__, 'handleURL', url);
513
+ router.location.setURL(url);
514
+ run['default'](app.__deprecatedInstance__, "handleURL", url);
495
515
  }
496
516
 
497
517
  return app.testHelpers.wait();
@@ -499,23 +519,23 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
499
519
 
500
520
  function click(app, selector, context) {
501
521
  var $el = app.testHelpers.findWithAssert(selector, context);
502
- run['default']($el, 'mousedown');
522
+ run['default']($el, "mousedown");
503
523
 
504
524
  focus($el);
505
525
 
506
- run['default']($el, 'mouseup');
507
- run['default']($el, 'click');
526
+ run['default']($el, "mouseup");
527
+ run['default']($el, "click");
508
528
 
509
529
  return app.testHelpers.wait();
510
530
  }
511
531
 
512
532
  function check(app, selector, context) {
513
533
  var $el = app.testHelpers.findWithAssert(selector, context);
514
- var type = $el.prop('type');
534
+ var type = $el.prop("type");
515
535
 
516
- Ember['default'].assert('To check \'' + selector + '\', the input must be a checkbox', type === 'checkbox');
536
+ Ember['default'].assert("To check '" + selector + "', the input must be a checkbox", type === "checkbox");
517
537
 
518
- if (!$el.prop('checked')) {
538
+ if (!$el.prop("checked")) {
519
539
  app.testHelpers.click(selector, context);
520
540
  }
521
541
 
@@ -524,11 +544,11 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
524
544
 
525
545
  function uncheck(app, selector, context) {
526
546
  var $el = app.testHelpers.findWithAssert(selector, context);
527
- var type = $el.prop('type');
547
+ var type = $el.prop("type");
528
548
 
529
- Ember['default'].assert('To uncheck \'' + selector + '\', the input must be a checkbox', type === 'checkbox');
549
+ Ember['default'].assert("To uncheck '" + selector + "', the input must be a checkbox", type === "checkbox");
530
550
 
531
- if ($el.prop('checked')) {
551
+ if ($el.prop("checked")) {
532
552
  app.testHelpers.click(selector, context);
533
553
  }
534
554
 
@@ -570,7 +590,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
570
590
 
571
591
  var event = jQuery['default'].Event(type, options);
572
592
 
573
- run['default']($el, 'trigger', event);
593
+ run['default']($el, "trigger", event);
574
594
 
575
595
  return app.testHelpers.wait();
576
596
  }
@@ -578,7 +598,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
578
598
  function keyEvent(app, selector, contextOrType, typeOrKeyCode, keyCode) {
579
599
  var context, type;
580
600
 
581
- if (typeof keyCode === 'undefined') {
601
+ if (typeof keyCode === "undefined") {
582
602
  context = null;
583
603
  keyCode = typeOrKeyCode;
584
604
  type = contextOrType;
@@ -592,7 +612,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
592
612
 
593
613
  function fillIn(app, selector, contextOrText, text) {
594
614
  var $el, context;
595
- if (typeof text === 'undefined') {
615
+ if (typeof text === "undefined") {
596
616
  text = contextOrText;
597
617
  } else {
598
618
  context = contextOrText;
@@ -615,7 +635,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
615
635
 
616
636
  function find(app, selector, context) {
617
637
  var $el;
618
- context = context || property_get.get(app, 'rootElement');
638
+ context = context || property_get.get(app, "rootElement");
619
639
  $el = app.$(selector, context);
620
640
 
621
641
  return $el;
@@ -629,7 +649,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
629
649
  return new RSVP['default'].Promise(function (resolve) {
630
650
  // Every 10ms, poll for the async thing to have finished
631
651
  var watcher = setInterval(function () {
632
- var router = app.__container__.lookup('router:main');
652
+ var router = app.__container__.lookup("router:main");
633
653
 
634
654
  // 1. If the router is loading, keep polling
635
655
  var routerIsLoading = router.router && !!router.router.activeTransition;
@@ -679,7 +699,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
679
699
  * @param {String} url the name of the route
680
700
  * @return {RSVP.Promise}
681
701
  */
682
- asyncHelper('visit', visit);
702
+ asyncHelper("visit", visit);
683
703
 
684
704
  /**
685
705
  * Clicks an element and triggers any actions triggered by the element's `click`
@@ -697,7 +717,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
697
717
  * @param {String} selector jQuery selector for finding element on the DOM
698
718
  * @return {RSVP.Promise}
699
719
  */
700
- asyncHelper('click', click);
720
+ asyncHelper("click", click);
701
721
 
702
722
  /**
703
723
  * Simulates a key event, e.g. `keypress`, `keydown`, `keyup` with the desired keyCode
@@ -717,7 +737,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
717
737
  * @return {RSVP.Promise}
718
738
  * @since 1.5.0
719
739
  */
720
- asyncHelper('keyEvent', keyEvent);
740
+ asyncHelper("keyEvent", keyEvent);
721
741
 
722
742
  /**
723
743
  * Fills in an input element with some text.
@@ -736,7 +756,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
736
756
  * @param {String} text text to place inside the input element
737
757
  * @return {RSVP.Promise}
738
758
  */
739
- asyncHelper('fillIn', fillIn);
759
+ asyncHelper("fillIn", fillIn);
740
760
 
741
761
  /**
742
762
  * Finds an element in the context of the app's container element. A simple alias
@@ -752,7 +772,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
752
772
  * @param {String} selector jQuery string selector for element lookup
753
773
  * @return {Object} jQuery object representing the results of the query
754
774
  */
755
- helper('find', find);
775
+ helper("find", find);
756
776
 
757
777
  /**
758
778
  * Like `find`, but throws an error if the element selector returns no results.
@@ -769,7 +789,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
769
789
  * @return {Object} jQuery object representing the results of the query
770
790
  * @throws {Error} throws error if jQuery object returned has a length of 0
771
791
  */
772
- helper('findWithAssert', findWithAssert);
792
+ helper("findWithAssert", findWithAssert);
773
793
 
774
794
  /**
775
795
  Causes the run loop to process any pending events. This is used to ensure that
@@ -794,8 +814,8 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
794
814
  @param {Object} value The value to be returned.
795
815
  @return {RSVP.Promise}
796
816
  */
797
- asyncHelper('wait', wait);
798
- asyncHelper('andThen', andThen);
817
+ asyncHelper("wait", wait);
818
+ asyncHelper("andThen", andThen);
799
819
 
800
820
  /**
801
821
  Returns the currently active route name.
@@ -814,7 +834,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
814
834
  @return {Object} The name of the currently active route.
815
835
  @since 1.5.0
816
836
  */
817
- helper('currentRouteName', currentRouteName);
837
+ helper("currentRouteName", currentRouteName);
818
838
 
819
839
  /**
820
840
  Returns the current path.
@@ -833,7 +853,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
833
853
  @return {Object} The currently active path.
834
854
  @since 1.5.0
835
855
  */
836
- helper('currentPath', currentPath);
856
+ helper("currentPath", currentPath);
837
857
 
838
858
  /**
839
859
  Returns the current URL.
@@ -852,7 +872,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
852
872
  @return {Object} The currently active URL.
853
873
  @since 1.5.0
854
874
  */
855
- helper('currentURL', currentURL);
875
+ helper("currentURL", currentURL);
856
876
 
857
877
  /**
858
878
  Pauses the current test - this is useful for debugging while testing or for test-driving.
@@ -871,7 +891,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
871
891
  @method pauseTest
872
892
  @return {Object} A promise that will never resolve
873
893
  */
874
- helper('pauseTest', pauseTest);
894
+ helper("pauseTest", pauseTest);
875
895
 
876
896
  /**
877
897
  Triggers the given DOM event on the element identified by the provided selector.
@@ -897,7 +917,7 @@ enifed('ember-testing/helpers', ['ember-metal/core', 'ember-metal/property_get',
897
917
  @return {RSVP.Promise}
898
918
  @since 1.5.0
899
919
  */
900
- asyncHelper('triggerEvent', triggerEvent);
920
+ asyncHelper("triggerEvent", triggerEvent);
901
921
 
902
922
  });
903
923
  enifed('ember-testing/initializers', ['ember-runtime/system/lazy_load'], function (lazy_load) {
@@ -926,6 +946,18 @@ enifed('ember-testing/setup_for_testing', ['exports', 'ember-metal/core', 'ember
926
946
  'use strict';
927
947
 
928
948
 
949
+
950
+ /**
951
+ Sets Ember up for testing. This is useful to perform
952
+ basic setup steps in order to unit test.
953
+
954
+ Use `App.setupForTesting` to perform integration tests (full
955
+ application testing).
956
+
957
+ @method setupForTesting
958
+ @namespace Ember
959
+ @since 1.5.0
960
+ */
929
961
  exports['default'] = setupForTesting;
930
962
  var Test, requests;
931
963
 
@@ -942,21 +974,9 @@ enifed('ember-testing/setup_for_testing', ['exports', 'ember-metal/core', 'ember
942
974
  }
943
975
  Test.pendingAjaxRequests = requests.length;
944
976
  }
945
-
946
- /**
947
- Sets Ember up for testing. This is useful to perform
948
- basic setup steps in order to unit test.
949
-
950
- Use `App.setupForTesting` to perform integration tests (full
951
- application testing).
952
-
953
- @method setupForTesting
954
- @namespace Ember
955
- @since 1.5.0
956
- */
957
977
  function setupForTesting() {
958
978
  if (!Test) {
959
- Test = requireModule('ember-testing/test')['default'];
979
+ Test = requireModule("ember-testing/test")["default"];
960
980
  }
961
981
 
962
982
  Ember['default'].testing = true;
@@ -969,10 +989,10 @@ enifed('ember-testing/setup_for_testing', ['exports', 'ember-metal/core', 'ember
969
989
  requests = [];
970
990
  Test.pendingAjaxRequests = requests.length;
971
991
 
972
- jQuery['default'](document).off('ajaxSend', incrementAjaxPendingRequests);
973
- jQuery['default'](document).off('ajaxComplete', decrementAjaxPendingRequests);
974
- jQuery['default'](document).on('ajaxSend', incrementAjaxPendingRequests);
975
- jQuery['default'](document).on('ajaxComplete', decrementAjaxPendingRequests);
992
+ jQuery['default'](document).off("ajaxSend", incrementAjaxPendingRequests);
993
+ jQuery['default'](document).off("ajaxComplete", decrementAjaxPendingRequests);
994
+ jQuery['default'](document).on("ajaxSend", incrementAjaxPendingRequests);
995
+ jQuery['default'](document).on("ajaxComplete", decrementAjaxPendingRequests);
976
996
  }
977
997
 
978
998
  });
@@ -991,7 +1011,7 @@ enifed('ember-testing/support', ['ember-metal/core', 'ember-views/system/jquery'
991
1011
  @method testCheckboxClick
992
1012
  */
993
1013
  function testCheckboxClick(handler) {
994
- $('<input type="checkbox">').css({ position: 'absolute', left: '-1000px', top: '-1000px' }).appendTo('body').on('click', handler).trigger('click').remove();
1014
+ $("<input type=\"checkbox\">").css({ position: "absolute", left: "-1000px", top: "-1000px" }).appendTo("body").on("click", handler).trigger("click").remove();
995
1015
  }
996
1016
 
997
1017
  if (environment['default'].hasDOM) {
@@ -1357,7 +1377,7 @@ enifed('ember-testing/test', ['exports', 'ember-metal/core', 'ember-metal/run_lo
1357
1377
  this.testing = true;
1358
1378
 
1359
1379
  this.Router.reopen({
1360
- location: 'none'
1380
+ location: "none"
1361
1381
  });
1362
1382
  },
1363
1383