1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:28:13 +00:00

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.
This commit is contained in:
Shannon Booth 2023-12-22 20:00:06 +13:00 committed by Sam Atkins
parent 2cfca633ca
commit 1f88046bb2
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,9 @@
<script src="../include.js"></script>
<script>
test(() => {
const str = 'Next 🙃';
let text = new Text(str);
text.data = str;
println(text.data);
});
</script>