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:
parent
3389eed59c
commit
edbc732785
4 changed files with 45 additions and 0 deletions
9
Tests/LibWeb/Text/input/basic.html
Normal file
9
Tests/LibWeb/Text/input/basic.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue