mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +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
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…
Reference in a new issue