mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 3f26c954fb1791782bb73bd2f37a727bd8650d55
This commit is contained in:
parent
3a21261f69
commit
cf1754151c
31 changed files with 516 additions and 76 deletions
|
@ -18,6 +18,21 @@ test(() => {
|
|||
assert_equals(counter, 2);
|
||||
}, 'If constructing entry list flag of form is true, then return');
|
||||
|
||||
test(() => {
|
||||
let form = populateForm('<input><input type=submit>');
|
||||
let submitter1 = form.querySelector('input[type=submit]');
|
||||
let valid = form.elements[0];
|
||||
let counter = 0;
|
||||
valid.oninvalid = () => {
|
||||
++counter;
|
||||
};
|
||||
form.onsubmit = () => {
|
||||
valid.required = true;
|
||||
submitter1.dispatchEvent(new MouseEvent("click"));
|
||||
};
|
||||
submitter1.dispatchEvent(new MouseEvent("click"));
|
||||
assert_equals(counter, 0);
|
||||
}, "If firing submission events flag of form is true, then return");
|
||||
|
||||
test(() => {
|
||||
let form = populateForm('<input required><input type=submit><button type=submit></button>');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue