mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 12:23:15 +00:00
LibWeb/Tests: Add test for a <script type=module> inside <head>
This commit is contained in:
parent
ff6d7cf3e4
commit
387ab57eb1
1
Tests/LibWeb/Text/expected/module-script-in-head.txt
Normal file
1
Tests/LibWeb/Text/expected/module-script-in-head.txt
Normal file
|
@ -0,0 +1 @@
|
|||
passed
|
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…
Reference in a new issue