(done)
| 223 | } |
| 224 | |
| 225 | export 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 | |
| 234 | export function test_xhr_events() { |
| 235 | let xhr = <any>new XMLHttpRequest(); |