MCPcopy Index your code
hub / github.com/angular/angular / _ifEnvSupports

Function _ifEnvSupports

packages/zone.js/test/test-util.ts:42–52  ·  view source on GitHub ↗
(test: any, block: Function, otherwise?: Function, withDone = false)

Source from the content-addressed store, hash-verified

40}
41
42function _ifEnvSupports(test: any, block: Function, otherwise?: Function, withDone = false) {
43 if (withDone) {
44 return function (done?: Function) {
45 _runTest(test, block, otherwise, done);
46 };
47 } else {
48 return function () {
49 _runTest(test, block, otherwise, undefined);
50 };
51 }
52}
53
54function _runTest(test: any, block: Function, otherwise?: Function, done?: Function) {
55 const message = test.message || test.name || test;

Callers 2

ifEnvSupportsFunction · 0.85
ifEnvSupportsWithDoneFunction · 0.85

Calls 1

_runTestFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…