mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Add tests for submit buttons with values
This commit is contained in:
parent
102cdaa7cc
commit
90d72c5de0
1 changed files with 15 additions and 0 deletions
|
@ -66,6 +66,21 @@ var simple_tests = [
|
|||
enctype: "text/plain",
|
||||
submitelement: "<input id=inputsubmit type=\"submit\">Submit</input>",
|
||||
submitaction: function(doc) { doc.getElementById("inputsubmit").click(); }
|
||||
},
|
||||
{
|
||||
name: "form submission from submit input should contain submit button value",
|
||||
input: "<button type=submit name=notclicked value=nope>not clicked</button>",
|
||||
enctype: "application/x-www-form-urlencoded",
|
||||
submitelement: "<button id=inputsubmit type=\"submit\" name=foo value=bara>Submit</button>",
|
||||
submitaction: function(doc) { doc.getElementById("inputsubmit").click(); }
|
||||
}
|
||||
,
|
||||
{
|
||||
name: "form submission from submit button should contain submit button value",
|
||||
input: "<input type=submit name=notclicked value=nope/>",
|
||||
enctype: "application/x-www-form-urlencoded",
|
||||
submitelement: "<input id=inputsubmit type=\"submit\" name=foo value=bara >",
|
||||
submitaction: function(doc) { doc.getElementById("inputsubmit").click(); }
|
||||
}
|
||||
];
|
||||
simple_tests.forEach(function(test_obj) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue