UNPKG

7.97 kBJavaScriptView Raw
1/**
2 * @license Angular v9.1.1
3 * (c) 2010-2020 Google LLC. https://angular.io/
4 * License: MIT
5 */
6!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@angular/core"),require("@angular/core/testing"),require("@angular/platform-browser-dynamic"),require("@angular/platform-browser/testing"),require("@angular/common"),require("@angular/compiler"),require("@angular/compiler/testing")):"function"==typeof define&&define.amd?define("@angular/platform-browser-dynamic/testing",["exports","@angular/core","@angular/core/testing","@angular/platform-browser-dynamic","@angular/platform-browser/testing","@angular/common","@angular/compiler","@angular/compiler/testing"],r):r(((e=e||self).ng=e.ng||{},e.ng.platformBrowserDynamic=e.ng.platformBrowserDynamic||{},e.ng.platformBrowserDynamic.testing={}),e.ng.core,e.ng.core.testing,e.ng.platformBrowserDynamic,e.ng.platformBrowser.testing,e.ng.common,e.ng.compiler,e.ng.compiler.testing)}(this,(function(e,r,o,t,i,n,c,l){"use strict";
7/*! *****************************************************************************
8 Copyright (c) Microsoft Corporation. All rights reserved.
9 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
10 this file except in compliance with the License. You may obtain a copy of the
11 License at http://www.apache.org/licenses/LICENSE-2.0
12
13 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15 WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
16 MERCHANTABLITY OR NON-INFRINGEMENT.
17
18 See the Apache Version 2.0 License for specific language governing permissions
19 and limitations under the License.
20 ***************************************************************************** */var s=function(e,r){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var o in r)r.hasOwnProperty(o)&&(e[o]=r[o])})(e,r)};function a(e,r,o,t){var i,n=arguments.length,c=n<3?r:null===t?t=Object.getOwnPropertyDescriptor(r,o):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,r,o,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(c=(n<3?i(c):n>3?i(r,o,c):i(r,o))||c);return n>3&&c&&Object.defineProperty(r,o,c),c}function p(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}
21/**
22 * @license
23 * Copyright Google Inc. All Rights Reserved.
24 *
25 * Use of this source code is governed by an MIT-style license that can be
26 * found in the LICENSE file at https://angular.io/license
27 */
28var u=function(e){function o(r){var o=e.call(this)||this;return o._doc=r,o}var t;return function i(e,r){function o(){this.constructor=e}s(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}(o,e),o.prototype.insertRootElement=function(e){var r=n.ɵgetDOM().getDefaultDocument().createElement("template");r.innerHTML='<div id="'+e+'"></div>';for(var o=function t(e){return"content"in e?e.content:e}
29/**
30 * @license
31 * Copyright Google Inc. All Rights Reserved.
32 *
33 * Use of this source code is governed by an MIT-style license that can be
34 * found in the LICENSE file at https://angular.io/license
35 */
36/**
37 * @license
38 * Copyright Google Inc. All Rights Reserved.
39 *
40 * Use of this source code is governed by an MIT-style license that can be
41 * found in the LICENSE file at https://angular.io/license
42 */(r).firstChild,i=this._doc.querySelectorAll("[id^=root]"),c=0;c<i.length;c++)n.ɵgetDOM().remove(i[c]);this._doc.body.appendChild(o)},a([r.Injectable(),(t=r.Inject(n.DOCUMENT),function(e,r){t(e,r,0)}),p("design:paramtypes",[Object])],o)}(o.TestComponentRenderer),d=[{provide:l.MockPipeResolver,deps:[c.CompileReflector]},{provide:c.PipeResolver,useExisting:l.MockPipeResolver},{provide:l.MockDirectiveResolver,deps:[c.CompileReflector]},{provide:c.DirectiveResolver,useExisting:l.MockDirectiveResolver},{provide:l.MockNgModuleResolver,deps:[c.CompileReflector]},{provide:c.NgModuleResolver,useExisting:l.MockNgModuleResolver}],m=function(){function e(e,r){this._injector=e,this._compilerFactory=r}return e.prototype.createTestingCompiler=function(e){var r=this._compilerFactory.createCompiler(e);return new f(r,r.injector.get(l.MockDirectiveResolver),r.injector.get(l.MockPipeResolver),r.injector.get(l.MockNgModuleResolver))},e}(),f=function(){function e(e,r,t,i){this._compiler=e,this._directiveResolver=r,this._pipeResolver=t,this._moduleResolver=i,this._overrider=new o.ɵMetadataOverrider}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._compiler.injector},enumerable:!0,configurable:!0}),e.prototype.compileModuleSync=function(e){return this._compiler.compileModuleSync(e)},e.prototype.compileModuleAsync=function(e){return this._compiler.compileModuleAsync(e)},e.prototype.compileModuleAndAllComponentsSync=function(e){return this._compiler.compileModuleAndAllComponentsSync(e)},e.prototype.compileModuleAndAllComponentsAsync=function(e){return this._compiler.compileModuleAndAllComponentsAsync(e)},e.prototype.getComponentFactory=function(e){return this._compiler.getComponentFactory(e)},e.prototype.checkOverrideAllowed=function(e){if(this._compiler.hasAotSummary(e))throw new Error(r.ɵstringify(e)+" was AOT compiled, so its metadata cannot be changed.")},e.prototype.overrideModule=function(e,o){this.checkOverrideAllowed(e);var t=this._moduleResolver.resolve(e,!1);this._moduleResolver.setNgModule(e,this._overrider.overrideMetadata(r.NgModule,t,o)),this.clearCacheFor(e)},e.prototype.overrideDirective=function(e,o){this.checkOverrideAllowed(e);var t=this._directiveResolver.resolve(e,!1);this._directiveResolver.setDirective(e,this._overrider.overrideMetadata(r.Directive,t,o)),this.clearCacheFor(e)},e.prototype.overrideComponent=function(e,o){this.checkOverrideAllowed(e);var t=this._directiveResolver.resolve(e,!1);this._directiveResolver.setDirective(e,this._overrider.overrideMetadata(r.Component,t,o)),this.clearCacheFor(e)},e.prototype.overridePipe=function(e,o){this.checkOverrideAllowed(e);var t=this._pipeResolver.resolve(e,!1);this._pipeResolver.setPipe(e,this._overrider.overrideMetadata(r.Pipe,t,o)),this.clearCacheFor(e)},e.prototype.loadAotSummaries=function(e){this._compiler.loadAotSummaries(e)},e.prototype.clearCache=function(){this._compiler.clearCache()},e.prototype.clearCacheFor=function(e){this._compiler.clearCacheFor(e)},e.prototype.getComponentFromError=function(e){return e[c.ERROR_COMPONENT_TYPE]||null},e.prototype.getModuleId=function(e){return this._moduleResolver.resolve(e,!0).id},e}(),v=r.createPlatformFactory(t.ɵplatformCoreDynamic,"coreDynamicTesting",[{provide:r.COMPILER_OPTIONS,useValue:{providers:d},multi:!0},{provide:o.ɵTestingCompilerFactory,useClass:m,deps:[r.Injector,r.CompilerFactory]}]),g=r.createPlatformFactory(v,"browserDynamicTesting",t.ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS),y=a([r.NgModule({exports:[i.BrowserTestingModule],providers:[{provide:o.TestComponentRenderer,useClass:u}]})],(function y(){}));
43/**
44 * @license
45 * Copyright Google Inc. All Rights Reserved.
46 *
47 * Use of this source code is governed by an MIT-style license that can be
48 * found in the LICENSE file at https://angular.io/license
49 */
50/**
51 * @license
52 * Copyright Google Inc. All Rights Reserved.
53 *
54 * Use of this source code is governed by an MIT-style license that can be
55 * found in the LICENSE file at https://angular.io/license
56 */
57e.BrowserDynamicTestingModule=y,e.platformBrowserDynamicTesting=g,e.ɵDOMTestComponentRenderer=u,e.ɵangular_packages_platform_browser_dynamic_testing_testing_a=d,e.ɵangular_packages_platform_browser_dynamic_testing_testing_b=m,e.ɵplatformCoreDynamicTesting=v,Object.defineProperty(e,"__esModule",{value:!0})}));
\No newline at end of file