(this: unknown, testFn: Function, zone: Zone = Zone.current)
| 96 | (isSupportSetErrorStack as any).message = 'supportSetErrorStack'; |
| 97 | |
| 98 | export function asyncTest(this: unknown, testFn: Function, zone: Zone = Zone.current) { |
| 99 | const AsyncTestZoneSpec = (Zone as any)['AsyncTestZoneSpec']; |
| 100 | return (done: Function) => { |
| 101 | let asyncTestZone: Zone = zone.fork( |
| 102 | new AsyncTestZoneSpec( |
| 103 | () => {}, |
| 104 | (error: Error) => { |
| 105 | fail(error); |
| 106 | }, |
| 107 | 'asyncTest', |
| 108 | ), |
| 109 | ); |
| 110 | asyncTestZone.run(testFn, this, [done]); |
| 111 | }; |
| 112 | } |
| 113 | |
| 114 | export function isFirefox() { |
| 115 | const userAgent = navigator.userAgent.toLowerCase(); |
no test coverage detected
searching dependent graphs…