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

Function test_raises_onload_Event

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

Source from the content-addressed store, hash-verified

223}
224
225export function test_raises_onload_Event(done) {
226 let xhr = new XMLHttpRequest();
227 xhr.onload = () => {
228 done(null);
229 };
230 xhr.open('GET', 'https://http-echo.nativescript.org/get');
231 xhr.send();
232}
233
234export function test_xhr_events() {
235 let xhr = <any>new XMLHttpRequest();

Callers

nothing calls this directly

Calls 2

openMethod · 0.95
sendMethod · 0.95

Tested by

no test coverage detected