mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 09:17:34 +00:00
LibWeb/Tests: Add test for a <script type=module> inside <head>
This commit is contained in:
parent
ff6d7cf3e4
commit
387ab57eb1
2 changed files with 11 additions and 0 deletions
10
Tests/LibWeb/Text/input/module-script-in-head.html
Normal file
10
Tests/LibWeb/Text/input/module-script-in-head.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue