1 |
- {"version":3,"sources":["platform-browser-testing.umd.js"],"names":["global","factory","exports","module","require","define","amd","ng","platformBrowser","testing","core","this","_angular_core","_angular_platformBrowser","createNgZone","NgZone","enableLongStackTrace","initBrowserTests","ɵBrowserDomAdapter","makeCurrent","BrowserDetection","setup","browserDetection","ua","_overrideUa","Object","defineProperty","prototype","get","ɵgetDOM","getUserAgent","enumerable","configurable","_ua","indexOf","isAndroid","isIE","isIOS7","Intl","IntlPolyfill","_TEST_BROWSER_PLATFORM_PROVIDERS","provide","PLATFORM_INITIALIZER","useValue","multi","platformBrowserTesting","createPlatformFactory","platformCore","ɵ0","BrowserTestingModule","decorators","type","NgModule","args","BrowserModule","providers","APP_ID","ɵELEMENT_PROBE_PROVIDERS","useFactory","ctorParameters","ɵa","value"],"mappings":";;;;;CAKC,SAAUA,OAAQC,SACC,gBAAZC,UAA0C,mBAAXC,QAAyBF,QAAQC,QAASE,QAAQ,iBAAkBA,QAAQ,8BAChG,kBAAXC,SAAyBA,OAAOC,IAAMD,OAAO,qCAAsC,UAAW,gBAAiB,6BAA8BJ,SACnJA,SAASD,OAAOO,GAAKP,OAAOO,OAAUP,OAAOO,GAAGC,gBAAkBR,OAAOO,GAAGC,oBAAuBR,OAAOO,GAAGC,gBAAgBC,YAAcT,OAAOO,GAAGG,KAAKV,OAAOO,GAAGC,kBACpKG,KAAM,SAAWT,QAAQU,cAAcC,0BAA4B,YA8KrE,SAASC,gBACL,MAAO,IAAIF,eAAcG,QAASC,sBAAsB,IAU5D,QAASC,oBACLJ,yBAAyBK,mBAAmBC,cAC5CC,iBAAiBC;;;;;;;;;;;;AAzKrB,GAAIC,kBACAF,iBAAkC,WAClC,QAASA,kBAAiBG,IACtBZ,KAAKa,YAAcD,GA8HvB,MA5HAE,QAAOC,eAAeN,iBAAiBO,UAAW,OAC9CC,IAGA,WACI,MAAgC,gBAArBjB,MAAKa,YACLb,KAAKa,YAETX,yBAAyBgB,UAAYhB,yBAAyBgB,UAAUC,eAAiB,IA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ular.io/\n * License: MIT\n */\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/platform-browser')) :\n\ttypeof define === 'function' && define.amd ? define('@angular/platform-browser/testing', ['exports', '@angular/core', '@angular/platform-browser'], factory) :\n\t(factory((global.ng = global.ng || {}, global.ng.platformBrowser = global.ng.platformBrowser || {}, global.ng.platformBrowser.testing = {}),global.ng.core,global.ng.platformBrowser));\n}(this, (function (exports,_angular_core,_angular_platformBrowser) { 'use strict';\n\n/**\n * @license Angular v5.2.11\n * (c) 2010-2018 Google, Inc. https://angular.io/\n * License: MIT\n */\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes} checked by tsc\n */\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nvar browserDetection;\nvar BrowserDetection = /** @class */ (function () {\n function BrowserDetection(ua) {\n this._overrideUa = ua;\n }\n Object.defineProperty(BrowserDetection.prototype, \"_ua\", {\n get: /**\n * @return {?}\n */\n function () {\n if (typeof this._overrideUa === 'string') {\n return this._overrideUa;\n }\n return _angular_platformBrowser.ɵgetDOM() ? _angular_platformBrowser.ɵgetDOM().getUserAgent() : '';\n },\n enumerable: true,\n configurable: true\n });\n /**\n * @return {?}\n */\n BrowserDetection.setup = /**\n * @return {?}\n */\n function () { browserDetection = new BrowserDetection(null); };\n Object.defineProperty(BrowserDetection.prototype, \"isFirefox\", {\n get: /**\n * @return {?}\n */\n function () { return this._ua.indexOf('Firefox') > -1; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BrowserDetection.prototype, \"isAndroid\", {\n get: /**\n * @return {?}\n */\n function () {\n return this._ua.indexOf('Mozilla/5.0') > -1 && this._ua.indexOf('Android') > -1 &&\n this._ua.indexOf('AppleWebKit') > -1 && this._ua.indexOf('Chrome') == -1 &&\n this._ua.indexOf('IEMobile') == -1;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BrowserDetection.prototype, \"isEdge\", {\n get: /**\n * @return {?}\n */\n function () { return this._ua.indexOf('Edge') > -1; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BrowserDetection.prototype, \"isIE\", {\n get: /**\n * @return {?}\n */\n function () { return this._ua.indexOf('Trident') > -1; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BrowserDetection.prototype, \"isWebkit\", {\n get: /**\n * @return {?}\n */\n function () {\n return this._ua.indexOf('AppleWebKit') > -1 && this._ua.indexOf('Edge') == -1 &&\n this._ua.indexOf('IEMobile') == -1;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BrowserDetection.prototype, \"isIOS7\", {\n get: /**\n * @return {?}\n */\n function () {\n return (this._ua.indexOf('iPhone OS 7') > -1 || this._ua.indexOf('iPad OS 7') > -1) &&\n this._ua.indexOf('IEMobile') == -1;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BrowserDetection.prototype, \"isSlow\", {\n get: /**\n * @return {?}\n */\n function () { return this.isAndroid || this.isIE || this.isIOS7; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BrowserDetection.prototype, \"supportsNativeIntlApi\", {\n // The Intl API is only natively supported in Chrome, Firefox, IE11 and Edge.\n // This detector is needed in tests to make the difference between:\n // 1) IE11/Edge: they have a native Intl API, but with some discrepancies\n // 2) IE9/IE10: they use the polyfill, and so no discrepancies\n get: /**\n * @return {?}\n */\n function () {\n return !!(/** @type {?} */ (_angular_core.ɵglobal)).Intl && (/** @type {?} */ (_angular_core.ɵglobal)).Intl !== (/** @type {?} */ (_angular_core.ɵglobal)).IntlPolyfill;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BrowserDetection.prototype, \"isChromeDesktop\", {\n get: /**\n * @return {?}\n */\n function () {\n return this._ua.indexOf('Chrome') > -1 && this._ua.indexOf('Mobile Safari') == -1 &&\n this._ua.indexOf('Edge') == -1;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BrowserDetection.prototype, \"isOldChrome\", {\n // \"Old Chrome\" means Chrome 3X, where there are some discrepancies in the Intl API.\n // Android 4.4 and 5.X have such browsers by default (respectively 30 and 39).\n get: /**\n * @return {?}\n */\n function () {\n return this._ua.indexOf('Chrome') > -1 && this._ua.indexOf('Chrome/3') > -1 &&\n this._ua.indexOf('Edge') == -1;\n },\n enumerable: true,\n configurable: true\n });\n return BrowserDetection;\n}());\nBrowserDetection.setup();\n/**\n * @param {?} element\n * @param {?} eventType\n * @return {?}\n */\n\n/**\n * @param {?} html\n * @return {?}\n */\n\n/**\n * @param {?} css\n * @return {?}\n */\n\n/**\n * @param {?} el\n * @return {?}\n */\n\n/**\n * @return {?}\n */\nfunction createNgZone() {\n return new _angular_core.NgZone({ enableLongStackTrace: true });\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes} checked by tsc\n */\n/**\n * @return {?}\n */\nfunction initBrowserTests() {\n _angular_platformBrowser.ɵBrowserDomAdapter.makeCurrent();\n BrowserDetection.setup();\n}\nvar _TEST_BROWSER_PLATFORM_PROVIDERS = [{ provide: _angular_core.PLATFORM_INITIALIZER, useValue: initBrowserTests, multi: true }];\n/**\n * Platform for testing\n *\n * \\@stable\n */\nvar platformBrowserTesting = _angular_core.createPlatformFactory(_angular_core.platformCore, 'browserTesting', _TEST_BROWSER_PLATFORM_PROVIDERS);\nvar ɵ0 = createNgZone;\n/**\n * NgModule for testing.\n *\n * \\@stable\n */\nvar BrowserTestingModule = /** @class */ (function () {\n function BrowserTestingModule() {\n }\n BrowserTestingModule.decorators = [\n { type: _angular_core.NgModule, args: [{\n exports: [_angular_platformBrowser.BrowserModule],\n providers: [\n { provide: _angular_core.APP_ID, useValue: 'a' },\n _angular_platformBrowser.ɵELEMENT_PROBE_PROVIDERS,\n { provide: _angular_core.NgZone, useFactory: ɵ0 },\n ]\n },] },\n ];\n /** @nocollapse */\n BrowserTestingModule.ctorParameters = function () { return []; };\n return BrowserTestingModule;\n}());\n\nexports.platformBrowserTesting = platformBrowserTesting;\nexports.BrowserTestingModule = BrowserTestingModule;\nexports.ɵa = createNgZone;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=platform-browser-testing.umd.js.map\n"]}
|