From f43ca37e99bf9fd581db54c7f0a9e77e66c75f2a Mon Sep 17 00:00:00 2001 From: Bastian Neumann Date: Thu, 10 Oct 2024 21:44:25 +0200 Subject: [PATCH] LibWeb: Test for parseFromString parsererror This tests if the parsed xml string gets tagged with a parsererror. (cherry picked from commit 64308c8c065206e129a9642b73bee813239a916b) --- ...parser-parsefromstring-xml-parsererror.txt | 21 +++++++++ ...arser-parsefromstring-xml-parsererror.html | 47 +++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 Tests/LibWeb/Text/expected/DOM/domparser-parsefromstring-xml-parsererror.txt create mode 100644 Tests/LibWeb/Text/input/DOM/domparser-parsefromstring-xml-parsererror.html diff --git a/Tests/LibWeb/Text/expected/DOM/domparser-parsefromstring-xml-parsererror.txt b/Tests/LibWeb/Text/expected/DOM/domparser-parsefromstring-xml-parsererror.txt new file mode 100644 index 00000000000000..bd9e32ae965326 --- /dev/null +++ b/Tests/LibWeb/Text/expected/DOM/domparser-parsefromstring-xml-parsererror.txt @@ -0,0 +1,21 @@ +1 has 1 parseerror +< span>2 has 1 parseerror +3 has 1 parseerror +4 has 1 parseerror +5 has 1 parseerror +6 has 1 parseerror +7< /span> has 1 parseerror +8 has 1 parseerror +9 has 1 parseerror +10 has 1 parseerror +11 has 1 parseerror +12 has 1 parseerror +13 has 1 parseerror +14 has 1 parseerror +1516 has 1 parseerror +17 has 1 parseerror +text/xml has 1 parseerror +application/xml has 1 parseerror +application/xhtml+xml has 1 parseerror +image/svg+xml has 1 parseerror diff --git a/Tests/LibWeb/Text/input/DOM/domparser-parsefromstring-xml-parsererror.html b/Tests/LibWeb/Text/input/DOM/domparser-parsefromstring-xml-parsererror.html new file mode 100644 index 00000000000000..942985e3ff6841 --- /dev/null +++ b/Tests/LibWeb/Text/input/DOM/domparser-parsefromstring-xml-parsererror.html @@ -0,0 +1,47 @@ + + + +