Update web-platform-tests to revision 3f26c954fb1791782bb73bd2f37a727bd8650d55

This commit is contained in:
WPT Sync Bot 2019-11-24 08:32:33 +00:00
parent 3a21261f69
commit cf1754151c
31 changed files with 516 additions and 76 deletions

View file

@ -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>');