blob: 77d59abe8effa954a14bdfdf1f9ee8a6f21a394e [file] [log] [blame]
/**
* @license Angular v11.2.14
* (c) 2010-2021 Google LLC. https://angular.io/
* License: MIT
*/
!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";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var n=function(){function e(e){this._overrideUa=e}return Object.defineProperty(e.prototype,"_ua",{get:function(){return"string"==typeof this._overrideUa?this._overrideUa:ogetDOM()?ogetDOM().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,"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!==tglobal.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,a=t.createPlatformFactory(t.platformCore,"browserTesting",[{provide:t.PLATFORM_INITIALIZER,useValue:
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function s(){rBrowserDomAdapter.makeCurrent(),n.setup()},multi:!0}]),f=i;(u=function u(){}).decorators=[{type:t.NgModule,args:[{exports:[r.BrowserModule],providers:[{provide:t.APP_ID,useValue:"a"},rELEMENT_PROBE_PROVIDERS,{provide:t.NgZone,useFactory:f}]}]}],
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
e.BrowserTestingModule=u,e.platformBrowserTesting=a,e0=f,eangular_packages_platform_browser_testing_testing_a=i,Object.defineProperty(e,"__esModule",{value:!0})}));