LibWeb/Tests: Add test for a <script type=module> inside <head>

This commit is contained in:
networkException 2023-10-30 23:03:35 +01:00 committed by Andreas Kling
parent ff6d7cf3e4
commit 387ab57eb1
Notes: sideshowbarker 2024-07-17 18:23:22 +09:00
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1 @@
passed

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<head>
<script type="module">
const __outputElement = document.createElement("pre");
__outputElement.setAttribute("id", "out");
__outputElement.appendChild(document.createTextNode("passed\n"))
document.body.appendChild(__outputElement);
internals.signalTextTestIsDone();
</script>
</head>