diff options
author | Andreas Kling <kling@serenityos.org> | 2023-05-28 20:51:21 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-28 22:03:57 +0200 |
commit | 58c1cb80bbaeb4edb6b869afc2f68b5e79702c07 (patch) | |
tree | a8e6fbee9a90e3f1ceca6ee9ee1cb7abfa8b731f | |
parent | ac280277b7e3e04af623f2cf358dbdde6515247b (diff) | |
download | serenity-58c1cb80bbaeb4edb6b869afc2f68b5e79702c07.zip |
Tests/LibWeb: Use the include.js helper in "basic.html"
-rw-r--r-- | Tests/LibWeb/Text/input/basic.html | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Tests/LibWeb/Text/input/basic.html b/Tests/LibWeb/Text/input/basic.html index 5b2bc34098..7a9a31f71f 100644 --- a/Tests/LibWeb/Text/input/basic.html +++ b/Tests/LibWeb/Text/input/basic.html @@ -1,9 +1,7 @@ -<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 src="include.js"></script> +<script> + test(() => { + println("Well hello") + println("friends!") + }); </script> |