MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / test_raises_onerror_Event

Function test_raises_onerror_Event

apps/automated/src/xhr/xhr-tests.ts:363–370  ·  view source on GitHub ↗
(done)

Source from the content-addressed store, hash-verified

361}
362
363export function test_raises_onerror_Event(done) {
364 let xhr = new XMLHttpRequest();
365 xhr.onerror = () => {
366 done(null);
367 };
368 xhr.open('GET', 'https://no-such-domain.nativescript.org');
369 xhr.send();
370}
371
372export function test_responseType(done) {
373 let xhr = new XMLHttpRequest();

Callers

nothing calls this directly

Calls 2

openMethod · 0.95
sendMethod · 0.95

Tested by

no test coverage detected