1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:17:36 +00:00

Ladybird+Tests/LibWeb: Add very basic text-only test harness

This allows us to create "text tests" in addition to "layout tests".
Text tests work the same as layout tests, but dump the document content
as text and exit upon receiving the window "load" event.
This commit is contained in:
Andreas Kling 2023-05-25 19:43:37 +02:00
parent 3389eed59c
commit edbc732785
4 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,9 @@
<div id="out"></div><script>
function println(s) {
const out = document.getElementById("out");
out.appendChild(document.createTextNode(s + "\n"))
}
println("Well hello")
println("friends!")
</script>