From eb4f36e5a16efebedc5721bf403d66c0ffa6c190 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Wed, 17 Apr 2024 19:01:36 +0200 Subject: [PATCH] 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. --- Tests/LibWeb/Text/data/document.xml | 1 + .../expected/iframe-load-event-for-xml-src.txt | 1 + .../Text/input/iframe-load-event-for-xml-src.html | 14 ++++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 Tests/LibWeb/Text/data/document.xml create mode 100644 Tests/LibWeb/Text/expected/iframe-load-event-for-xml-src.txt create mode 100644 Tests/LibWeb/Text/input/iframe-load-event-for-xml-src.html diff --git a/Tests/LibWeb/Text/data/document.xml b/Tests/LibWeb/Text/data/document.xml new file mode 100644 index 00000000000..c3ee35bbe55 --- /dev/null +++ b/Tests/LibWeb/Text/data/document.xml @@ -0,0 +1 @@ + diff --git a/Tests/LibWeb/Text/expected/iframe-load-event-for-xml-src.txt b/Tests/LibWeb/Text/expected/iframe-load-event-for-xml-src.txt new file mode 100644 index 00000000000..3737614c0c7 --- /dev/null +++ b/Tests/LibWeb/Text/expected/iframe-load-event-for-xml-src.txt @@ -0,0 +1 @@ + load diff --git a/Tests/LibWeb/Text/input/iframe-load-event-for-xml-src.html b/Tests/LibWeb/Text/input/iframe-load-event-for-xml-src.html new file mode 100644 index 00000000000..38da6383d22 --- /dev/null +++ b/Tests/LibWeb/Text/input/iframe-load-event-for-xml-src.html @@ -0,0 +1,14 @@ + + +