license declare const __karma__ ; __karma__ . loaded = function ( ) { } ; let entryPoint = 'browser_entry_point' ; if ( typeof __karma__ !== 'undefined' ) { ( window as any ) [ '__Zone_Error_BlacklistedStackFrames_policy' ] = ( __karma__ as any ) . config . errorpolicy ; if ( ( __karma__ as any ) . config . entrypoint ) { entryPoint = ( __karma__ as any ) . config . entrypoint ; } } else if ( typeof process !== 'undefined' ) { ( window as any ) [ '__Zone_Error_BlacklistedStackFrames_policy' ] = process . env . errorpolicy ; if ( process . env . entrypoint ) { entryPoint = process . env . entrypoint ; } } ( window as any ) . global = window ; System . config ( { defaultJSExtensions : true , map : { 'rxjs' : 'base/node_modules/rxjs/index' , 'rxjs/operators' : 'base/node_modules/rxjs/operators/index' , 'core-js/features/set' : 'base/node_modules/core-js/es6/set' , 'core-js/features/map' : 'base/node_modules/core-js/es6/map' , 'es6-promise' : 'base/node_modules/es6-promise/dist/es6-promise' } , } ) ; let browserPatchedPromise = null ; if ( ( window as any ) [ ( Zone as any ) . __symbol__ ( 'setTimeout' ) ] ) { browserPatchedPromise = Promise . resolve ( 'browserPatched' ) ; } else { browserPatchedPromise = System . import ( '/base/build/test/browser-zone-setup' ) . then ( ( ) => { let testFrameworkPatch = typeof ( window as any ) . Mocha !== 'undefined' ? '/base/build/lib/mocha/mocha' : '/base/build/lib/jasmine/jasmine' ; return System . import ( testFrameworkPatch ) ; } ) ; } browserPatchedPromise . then ( ( ) => { let testFrameworkPatch = typeof ( window as any ) . Mocha !== 'undefined' ? '/base/build/test/test-env-setup-mocha' : '/base/build/test/test-env-setup-jasmine' ; System . import ( testFrameworkPatch ) . then ( ( ) => { System . import ( '/base/build/lib/common/error-rewrite' ) . then ( ( ) => { System . import ( `/base/build/test/${ entryPoint }` ) . then ( ( ) => { __karma__ . start ( ) ; } , ( error ) => { console . error ( error . stack || error ) ; } ) ; } ) ; } ) ; } ) ;