mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:57:35 +00:00
LibWeb: Implement HTMLDialogElement::show()
This commit is contained in:
parent
8042558805
commit
151cd11b5b
4 changed files with 51 additions and 3 deletions
2
Tests/LibWeb/Text/expected/show-non-modal-dialog.txt
Normal file
2
Tests/LibWeb/Text/expected/show-non-modal-dialog.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
dialog.open state before show(): false
|
||||
dialog.open state after show(): true
|
10
Tests/LibWeb/Text/input/show-non-modal-dialog.html
Normal file
10
Tests/LibWeb/Text/input/show-non-modal-dialog.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<script src="./include.js"></script>
|
||||
<dialog id="test-dialog"></dialog>
|
||||
<script>
|
||||
test(() => {
|
||||
const dialog = document.getElementById("test-dialog");
|
||||
println(`dialog.open state before show(): ${dialog.open}`)
|
||||
dialog.show();
|
||||
println(`dialog.open state after show(): ${dialog.open}`);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue