mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-23 01:12:45 +00:00
19 lines
577 B
HTML
19 lines
577 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest((done) => {
|
|
const xhr = new XMLHttpRequest();
|
|
xhr.responseType = "blob";
|
|
xhr.onreadystatechange = async function() {
|
|
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
if (xhr.response instanceof Blob)
|
|
println("PASS");
|
|
else
|
|
println("FAIL");
|
|
done();
|
|
}
|
|
};
|
|
xhr.open("GET", "data:text/plain,Hello%20World!", true);
|
|
xhr.send();
|
|
});
|
|
</script>
|