mirror of
https://github.com/RGBCube/serenity
synced 2025-07-03 00:52:12 +00:00
Tests: Add test for button type attribute
This commit is contained in:
parent
5dfe21be85
commit
2bab266ba9
2 changed files with 14 additions and 0 deletions
11
Tests/LibWeb/Text/input/HTML/button-attributes.html
Normal file
11
Tests/LibWeb/Text/input/HTML/button-attributes.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
var button = document.createElement('button');
|
||||
println(button.type);
|
||||
button.setAttribute("type", "button");
|
||||
println(button.type);
|
||||
button.removeAttribute("type");
|
||||
println(button.type);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue