mirror of
https://github.com/servo/servo.git
synced 2025-07-10 08:53:41 +01:00
13 lines
No EOL
360 B
JavaScript
13 lines
No EOL
360 B
JavaScript
// META: title=XMLHttpRequest Test: event - error
|
|
|
|
async_test(function (t) {
|
|
var client = new XMLHttpRequest();
|
|
client.onerror = t.step_func(function (e) {
|
|
assert_true(e instanceof ProgressEvent);
|
|
assert_equals(e.type, "error");
|
|
t.done();
|
|
});
|
|
|
|
client.open("GET", "http://nonexistent.{{host}}:{{ports[http][0]}}");
|
|
client.send("null");
|
|
}); |