mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibWeb/Tests: Add test for a <script type=module> inside <head>
This commit is contained in:
parent
ff6d7cf3e4
commit
387ab57eb1
Notes:
sideshowbarker
2024-07-17 18:23:22 +09:00
Author: https://github.com/networkException Commit: https://github.com/SerenityOS/serenity/commit/387ab57eb1 Pull-request: https://github.com/SerenityOS/serenity/pull/21700 Issue: https://github.com/SerenityOS/serenity/issues/21009 Reviewed-by: https://github.com/awesomekling
2 changed files with 11 additions and 0 deletions
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