mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +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:
parent
2cfca633ca
commit
1f88046bb2
Notes:
sideshowbarker
2024-07-16 18:03:21 +09:00
Author: https://github.com/shannonbooth
Commit: 1f88046bb2
Pull-request: https://github.com/SerenityOS/serenity/pull/22387
Issue: https://github.com/SerenityOS/serenity/issues/20971
2 changed files with 10 additions and 0 deletions
1
Tests/LibWeb/Text/expected/DOM/Text-set-get-data.txt
Normal file
1
Tests/LibWeb/Text/expected/DOM/Text-set-get-data.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Next 🙃
|
9
Tests/LibWeb/Text/input/DOM/Text-set-get-data.html
Normal file
9
Tests/LibWeb/Text/input/DOM/Text-set-get-data.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue