mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-17 15:02:24 +00:00
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:
parent
fea58a4160
commit
eb4f36e5a1
Notes:
sideshowbarker
2024-07-16 16:23:32 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: eb4f36e5a1
Pull-request: https://github.com/SerenityOS/serenity/pull/23999
3 changed files with 16 additions and 0 deletions
1
Tests/LibWeb/Text/data/document.xml
Normal file
1
Tests/LibWeb/Text/data/document.xml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml"></html>
|
|
@ -0,0 +1 @@
|
||||||
|
load
|
14
Tests/LibWeb/Text/input/iframe-load-event-for-xml-src.html
Normal file
14
Tests/LibWeb/Text/input/iframe-load-event-for-xml-src.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue