(test: any, block: Function, otherwise?: Function, done?: Function)
| 52 | } |
| 53 | |
| 54 | function _runTest(test: any, block: Function, otherwise?: Function, done?: Function) { |
| 55 | const message = test.message || test.name || test; |
| 56 | if (typeof test === 'string' ? !!global[test] : test()) { |
| 57 | if (done) { |
| 58 | block(done); |
| 59 | } else { |
| 60 | block(); |
| 61 | } |
| 62 | } else { |
| 63 | console.log('WARNING: skipping ' + message + ' tests (missing this API)'); |
| 64 | otherwise?.(); |
| 65 | done?.(); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | export function supportPatchXHROnProperty() { |
| 70 | let desc = Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype, 'onload'); |
no test coverage detected
searching dependent graphs…