mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-12 18:08:15 +02:00
24 lines
577 B
HTML
24 lines
577 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest(async (done) => {
|
|
const server = httpTestServer();
|
|
|
|
const url = await server.createEcho("GET", "/close-connection", {
|
|
status: 0,
|
|
close_connection: true,
|
|
});
|
|
|
|
const xhr = new XMLHttpRequest();
|
|
xhr.open("GET", url, false);
|
|
try {
|
|
xhr.send();
|
|
println("FAIL: no exception thrown");
|
|
} catch (e) {
|
|
println(e.name);
|
|
println(e.message);
|
|
}
|
|
done();
|
|
});
|
|
</script>
|