mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-10-26 14:57:54 +03:00
Tests: Add test for button type attribute
This commit is contained in:
parent
5dfe21be85
commit
2bab266ba9
Notes:
sideshowbarker
2024-07-17 07:43:05 +09:00
Author: https://github.com/stelar7 Commit: https://github.com/SerenityOS/serenity/commit/2bab266ba9 Pull-request: https://github.com/SerenityOS/serenity/pull/21789 Issue: https://github.com/SerenityOS/serenity/issues/21778
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 New Issue
Block a user