Tests/LibWeb: Add a test for iframe load event when src has xml type

Reduction from Acid3 that was fixed by changing
guess_mime_type_based_on_filename() to support xml extension.
This commit is contained in:
Aliaksandr Kalenik 2024-04-17 19:01:36 +02:00 committed by Alexander Kalenik
parent fea58a4160
commit eb4f36e5a1
3 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1 @@
<html xmlns="http://www.w3.org/1999/xhtml"></html>

View file

@ -0,0 +1 @@
load

View file

@ -0,0 +1,14 @@
<script src="include.js"></script>
<iframe id="b" src="../data/document.xml"></iframe>
<script>
asyncTest(done => {
b.onload = function () {
println("load");
done();
};
b.onerror = function () {
println("error");
done();
};
});
</script>