1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

Tests/LibWeb: Move existing XHR Text tests in under the XHR folder

This commit is contained in:
Kenneth Myhra 2023-11-29 12:13:22 +01:00 committed by Andreas Kling
parent 3d86e16407
commit e3f5bbcbbe
6 changed files with 3 additions and 3 deletions

View file

@ -0,0 +1,16 @@
<script src="../include.js"></script>
<script>
asyncTest((done) => {
const xhr = new XMLHttpRequest();
xhr.responseType = "document";
xhr.open("GET", "data:text/xml,", true);
xhr.onreadystatechange = function() {
if (xhr.readyState === 4 && xhr.status === 200) {
let xml = xhr.responseXML;
println("PASS"); // Didn't crash :^)
done();
}
};
xhr.send();
});
</script>