mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
Tests/LibWeb: Move existing XHR Text tests in under the XHR folder
This commit is contained in:
parent
3d86e16407
commit
e3f5bbcbbe
6 changed files with 3 additions and 3 deletions
|
@ -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.response;
|
||||
println("PASS"); // Didn't crash :^)
|
||||
done();
|
||||
}
|
||||
};
|
||||
xhr.send();
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue