');
  form.addEventListener('submit', e => {
    e.preventDefault();
    formDataInEvent = new FormData(e.target);
  });

  submitter.click();
  assert_equals(formDataInEvent.get('n1'), 'v1');
  assert_false(formDataInEvent.has('n2'));
}, 'The constructed FormData object should not contain an entry for the submit button that was used to submit the form.');

test(() => {
  let form = populateForm('<input name=n1 value=v1><input type=image name=n2>');
  let formDataInEvent = null;
  let submitter = form.query