 a submitter.');

test(() => {
  let didCallHandler = false;
  let wasBubbles = false;
  let wasCancelable = true;
  let form = populateForm();
  document.addEventListener('formdata', e => {
    didCallHandler = true;
    wasBubbles = e.bubbles;
    wasCancelable = e.cancelable;
  });
  new FormData(form);
  assert_true(didCallHandler);
  assert_true(wasBubbles);
  assert_false(wasCancelable);
}, '"formdata" event bubbles, and is not cancelable.');

test(() => {
  let didCallHandler = false;
  let form = po