dist/ember-testing.js in ember-source-2.17.2 vs dist/ember-testing.js in ember-source-2.18.0.beta.1

- old
+ new

@@ -4,55 +4,18 @@ * @copyright Copyright 2011-2017 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 2.17.2 + * @version 2.18.0-beta.1 */ +/*global process */ var enifed, requireModule, Ember; var mainContext = this; // Used in ember-environment/lib/global.js (function() { - var isNode = typeof window === 'undefined' && - typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; - - if (!isNode) { - Ember = this.Ember = this.Ember || {}; - } - - if (typeof Ember === 'undefined') { Ember = {}; } - - if (typeof Ember.__loader === 'undefined') { - var registry = {}; - var seen = {}; - - enifed = function(name, deps, callback) { - var value = { }; - - if (!callback) { - value.deps = []; - value.callback = deps; - } else { - value.deps = deps; - value.callback = callback; - } - - registry[name] = value; - }; - - requireModule = function(name) { - return internalRequire(name, null); - }; - - // setup `require` module - requireModule['default'] = requireModule; - - requireModule.has = function registryHas(moduleName) { - return !!registry[moduleName] || !!registry[moduleName + '/index']; - }; - function missingModule(name, referrerName) { if (referrerName) { throw new Error('Could not find module ' + name + ' required by: ' + referrerName); } else { throw new Error('Could not find module ' + name); @@ -97,10 +60,48 @@ callback.apply(this, reified); return exports; } + var isNode = typeof window === 'undefined' && + typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; + + if (!isNode) { + Ember = this.Ember = this.Ember || {}; + } + + if (typeof Ember === 'undefined') { Ember = {}; } + + if (typeof Ember.__loader === 'undefined') { + var registry = {}; + var seen = {}; + + enifed = function(name, deps, callback) { + var value = { }; + + if (!callback) { + value.deps = []; + value.callback = deps; + } else { + value.deps = deps; + value.callback = callback; + } + + registry[name] = value; + }; + + requireModule = function(name) { + return internalRequire(name, null); + }; + + // setup `require` module + requireModule['default'] = requireModule; + + requireModule.has = function registryHas(moduleName) { + return !!registry[moduleName] || !!registry[moduleName + '/index']; + }; + requireModule._eak_seen = registry; Ember.__loader = { define: enifed, require: requireModule, @@ -2568,19 +2569,20 @@ } } return -1; } }); +/*global enifed */ enifed('node-module', ['exports'], function(_exports) { var IS_NODE = typeof module === 'object' && typeof module.require === 'function'; if (IS_NODE) { _exports.require = module.require; _exports.module = module; - _exports.IS_NODE = IS_NODE + _exports.IS_NODE = IS_NODE; } else { _exports.require = null; _exports.module = null; - _exports.IS_NODE = IS_NODE + _exports.IS_NODE = IS_NODE; } }); var testing = requireModule('ember-testing'); Ember.Test = testing.Test; Ember.Test.Adapter = testing.Adapter;