UNPKG

6.21 kBJavaScriptView Raw
1/**
2 * @license Angular v9.1.3
3 * (c) 2010-2020 Google LLC. https://angular.io/
4 * License: MIT
5 */
6!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/platform-browser"),require("@angular/common")):"function"==typeof define&&define.amd?define("@angular/platform-browser/testing",["exports","@angular/core","@angular/platform-browser","@angular/common"],t):t(((e=e||self).ng=e.ng||{},e.ng.platformBrowser=e.ng.platformBrowser||{},e.ng.platformBrowser.testing={}),e.ng.core,e.ng.platformBrowser,e.ng.common)}(this,(function(e,t,r,o){"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 ***************************************************************************** */
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 n=function(){function e(e){this._overrideUa=e}return Object.defineProperty(e.prototype,"_ua",{get:function(){return"string"==typeof this._overrideUa?this._overrideUa:o.ɵgetDOM()?o.ɵgetDOM().getUserAgent():""},enumerable:!0,configurable:!0}),e.setup=function(){return new e(null)},Object.defineProperty(e.prototype,"isFirefox",{get:function(){return this._ua.indexOf("Firefox")>-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAndroid",{get:function(){return this._ua.indexOf("Mozilla/5.0")>-1&&this._ua.indexOf("Android")>-1&&this._ua.indexOf("AppleWebKit")>-1&&-1==this._ua.indexOf("Chrome")&&-1==this._ua.indexOf("IEMobile")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEdge",{get:function(){return this._ua.indexOf("Edge")>-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isIE",{get:function(){return this._ua.indexOf("Trident")>-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isWebkit",{get:function(){return this._ua.indexOf("AppleWebKit")>-1&&-1==this._ua.indexOf("Edge")&&-1==this._ua.indexOf("IEMobile")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isIOS7",{get:function(){return(this._ua.indexOf("iPhone OS 7")>-1||this._ua.indexOf("iPad OS 7")>-1)&&-1==this._ua.indexOf("IEMobile")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSlow",{get:function(){return this.isAndroid||this.isIE||this.isIOS7},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"supportsNativeIntlApi",{get:function(){return!!t.ɵglobal.Intl&&t.ɵglobal.Intl!==t.ɵglobal.IntlPolyfill},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChromeDesktop",{get:function(){return this._ua.indexOf("Chrome")>-1&&-1==this._ua.indexOf("Mobile Safari")&&-1==this._ua.indexOf("Edge")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOldChrome",{get:function(){return this._ua.indexOf("Chrome")>-1&&this._ua.indexOf("Chrome/3")>-1&&-1==this._ua.indexOf("Edge")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"supportsCustomElements",{get:function(){return void 0!==t.ɵglobal.customElements},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"supportsDeprecatedCustomCustomElementsV0",{get:function(){return void 0!==document.registerElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"supportsRegExUnicodeFlag",{get:function(){return RegExp.prototype.hasOwnProperty("unicode")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"supportsShadowDom",{get:function(){return void 0!==document.createElement("div").attachShadow},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"supportsDeprecatedShadowDomV0",{get:function(){return void 0!==document.createElement("div").createShadowRoot},enumerable:!0,configurable:!0}),e}();function i(){return new t.NgZone({enableLongStackTrace:!0,shouldCoalesceEventChangeDetection:!1})}n.setup();var u=t.createPlatformFactory(t.platformCore,"browserTesting",[{provide:t.PLATFORM_INITIALIZER,useValue:function a(){r.ɵBrowserDomAdapter.makeCurrent(),n.setup()},multi:!0}]),f=i,l=function p(e,t,r,o){var n,i=arguments.length,u=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(u=(i<3?n(u):i>3?n(t,r,u):n(t,r))||u);return i>3&&u&&Object.defineProperty(t,r,u),u}([t.NgModule({exports:[r.BrowserModule],providers:[{provide:t.APP_ID,useValue:"a"},r.ɵELEMENT_PROBE_PROVIDERS,{provide:t.NgZone,useFactory:f}]})],(function l(){}));
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 */
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 */
50e.BrowserTestingModule=l,e.platformBrowserTesting=u,e.ɵ0=f,e.ɵangular_packages_platform_browser_testing_testing_a=i,Object.defineProperty(e,"__esModule",{value:!0})}));
\No newline at end of file