dist/ember-testing.js in ember-source-1.12.0 vs dist/ember-testing.js in ember-source-1.12.1
- old
+ new
@@ -3,11 +3,11 @@
* @copyright Copyright 2011-2015 Tilde Inc. and contributors
* Portions Copyright 2006-2011 Strobe Inc.
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
* @license Licensed under MIT license
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
- * @version 1.12.0
+ * @version 1.12.1
*/
(function() {
var enifed, requireModule, eriuqer, requirejs, Ember;
var mainContext = this;
@@ -114,20 +114,10 @@
'use strict';
exports._warnIfUsingStrippedFeatureFlags = _warnIfUsingStrippedFeatureFlags;
- /**
- Will call `Ember.warn()` if ENABLE_ALL_FEATURES, ENABLE_OPTIONAL_FEATURES, or
- any specific FEATURES flag is truthy.
-
- This method is called automatically in debug canary builds.
-
- @private
- @method _warnIfUsingStrippedFeatureFlags
- @return {void}
- */
Ember['default'].assert = function (desc, test) {
var throwAssertion;
if (utils.typeOf(test) === "function") {
throwAssertion = !test();
@@ -283,10 +273,21 @@
@since 1.5.0
*/
Ember['default'].runInDebug = function (func) {
func();
};
+
+ /**
+ Will call `Ember.warn()` if ENABLE_ALL_FEATURES, ENABLE_OPTIONAL_FEATURES, or
+ any specific FEATURES flag is truthy.
+
+ This method is called automatically in debug canary builds.
+
+ @private
+ @method _warnIfUsingStrippedFeatureFlags
+ @return {void}
+ */
function _warnIfUsingStrippedFeatureFlags(FEATURES, featuresWereStripped) {
if (featuresWereStripped) {
Ember['default'].warn("Ember.ENV.ENABLE_ALL_FEATURES is only available in canary builds.", !Ember['default'].ENV.ENABLE_ALL_FEATURES);
Ember['default'].warn("Ember.ENV.ENABLE_OPTIONAL_FEATURES is only available in canary builds.", !Ember['default'].ENV.ENABLE_OPTIONAL_FEATURES);
@@ -478,17 +479,19 @@
}
}
function visit(app, url) {
var router = app.__container__.lookup("router:main");
+ app.boot().then(function () {
+ router.location.setURL(url);
+ });
if (app._readinessDeferrals > 0) {
router["initialURL"] = url;
run['default'](app, "advanceReadiness");
delete router["initialURL"];
} else {
- router.location.setURL(url);
run['default'](app.__deprecatedInstance__, "handleURL", url);
}
return app.testHelpers.wait();
}
@@ -920,22 +923,10 @@
enifed('ember-testing/setup_for_testing', ['exports', 'ember-metal/core', 'ember-testing/adapters/qunit', 'ember-views/system/jquery'], function (exports, Ember, QUnitAdapter, jQuery) {
'use strict';
-
- /**
- Sets Ember up for testing. This is useful to perform
- basic setup steps in order to unit test.
-
- Use `App.setupForTesting` to perform integration tests (full
- application testing).
-
- @method setupForTesting
- @namespace Ember
- @since 1.5.0
- */
exports['default'] = setupForTesting;
var Test, requests;
function incrementAjaxPendingRequests(_, xhr) {
requests.push(xhr);
@@ -948,9 +939,21 @@
requests.splice(i, 1);
}
}
Test.pendingAjaxRequests = requests.length;
}
+
+ /**
+ Sets Ember up for testing. This is useful to perform
+ basic setup steps in order to unit test.
+
+ Use `App.setupForTesting` to perform integration tests (full
+ application testing).
+
+ @method setupForTesting
+ @namespace Ember
+ @since 1.5.0
+ */
function setupForTesting() {
if (!Test) {
Test = requireModule("ember-testing/test")["default"];
}
\ No newline at end of file