mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-23 02:55:15 +00:00
Tests: Add test for button type attribute
This commit is contained in:
parent
5dfe21be85
commit
2bab266ba9
3
Tests/LibWeb/Text/expected/HTML/button-attributes.txt
Normal file
3
Tests/LibWeb/Text/expected/HTML/button-attributes.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
submit
|
||||
button
|
||||
submit
|
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…
Reference in a new issue