From 1f88046bb271aad0ccc3a7e9acda20ec2ce65571 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Fri, 22 Dec 2023 20:00:06 +1300 Subject: [PATCH] LibWeb: Add a test for setting and getting Text data This is a pretty straightforward test, but I managed to make this crash on real sites while trying to fix #20971 without any other test in the existing suite failing. --- Tests/LibWeb/Text/expected/DOM/Text-set-get-data.txt | 1 + Tests/LibWeb/Text/input/DOM/Text-set-get-data.html | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 Tests/LibWeb/Text/expected/DOM/Text-set-get-data.txt create mode 100644 Tests/LibWeb/Text/input/DOM/Text-set-get-data.html diff --git a/Tests/LibWeb/Text/expected/DOM/Text-set-get-data.txt b/Tests/LibWeb/Text/expected/DOM/Text-set-get-data.txt new file mode 100644 index 00000000000..f8fd43b5684 --- /dev/null +++ b/Tests/LibWeb/Text/expected/DOM/Text-set-get-data.txt @@ -0,0 +1 @@ +Next 🙃 diff --git a/Tests/LibWeb/Text/input/DOM/Text-set-get-data.html b/Tests/LibWeb/Text/input/DOM/Text-set-get-data.html new file mode 100644 index 00000000000..1e42507eaaa --- /dev/null +++ b/Tests/LibWeb/Text/input/DOM/Text-set-get-data.html @@ -0,0 +1,9 @@ + +