(evt) {
    assert_true(details7.open);
    testEvent(evt)
  });
  details7.setAttribute('open', ''); // opens details7

  details8.ontoggle = t8.step_func_done(function(evt) {
    assert_false(details8.open);
    testEvent(evt)
  });
  details8.removeAttribute('open'); // closes details8

  var toggleFiredOnDetails9 = false;
  details9.ontoggle = t9.step_func_done(function(evt) {
    if (toggleFiredOnDetails9) {
      assert_unreached("toggle event fired twice on opened details element");
    } else {
    