UNPKG

6.16 kBJavaScriptView Raw
1/**
2 * @license Angular v10.0.1
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.
9
10 Permission to use, copy, modify, and/or distribute this software for any
11 purpose with or without fee is hereby granted.
12
13 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 PERFORMANCE OF THIS SOFTWARE.
20 ***************************************************************************** */
21/**
22 * @license
23 * Copyright Google LLC 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:!1,configurable:!0}),e.setup=function(){return new e(null)},Object.defineProperty(e.prototype,"isFirefox",{get:function(){return this._ua.indexOf("Firefox")>-1},enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEdge",{get:function(){return this._ua.indexOf("Edge")>-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isIE",{get:function(){return this._ua.indexOf("Trident")>-1},enumerable:!1,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:!1,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:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSlow",{get:function(){return this.isAndroid||this.isIE||this.isIOS7},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportsNativeIntlApi",{get:function(){return!!t.ɵglobal.Intl&&t.ɵglobal.Intl!==t.ɵglobal.IntlPolyfill},enumerable:!1,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:!1,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:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportsCustomElements",{get:function(){return void 0!==t.ɵglobal.customElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportsDeprecatedCustomCustomElementsV0",{get:function(){return void 0!==document.registerElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportsRegExUnicodeFlag",{get:function(){return RegExp.prototype.hasOwnProperty("unicode")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportsShadowDom",{get:function(){return void 0!==document.createElement("div").attachShadow},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportsDeprecatedShadowDomV0",{get:function(){return void 0!==document.createElement("div").createShadowRoot},enumerable:!1,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:
29/**
30 * @license
31 * Copyright Google LLC 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 */
36function a(){r.ɵBrowserDomAdapter.makeCurrent(),n.setup()},multi:!0}]),f=i,s=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{exports:[r.BrowserModule],providers:[{provide:t.APP_ID,useValue:"a"},r.ɵELEMENT_PROBE_PROVIDERS,{provide:t.NgZone,useFactory:f}]}]}],e}();
37/**
38 * @license
39 * Copyright Google LLC All Rights Reserved.
40 *
41 * Use of this source code is governed by an MIT-style license that can be
42 * found in the LICENSE file at https://angular.io/license
43 */
44/**
45 * @license
46 * Copyright Google LLC All Rights Reserved.
47 *
48 * Use of this source code is governed by an MIT-style license that can be
49 * found in the LICENSE file at https://angular.io/license
50 */
51/**
52 * @license
53 * Copyright Google LLC All Rights Reserved.
54 *
55 * Use of this source code is governed by an MIT-style license that can be
56 * found in the LICENSE file at https://angular.io/license
57 */
58e.BrowserTestingModule=s,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