;
  }, description);
}

const expectTypeError = TypeError.prototype;
const expectNotSupportedError = 'NOT_SUPPORTED_ERR';

// https://dom.spec.whatwg.org/#concept-create-element
// 6. If definition is non-null, then:
// 6.1. If the synchronous custom elements flag is set:

test_create_element_synchronous(
  'createElement(): ',
  (w, constructor, options) => {
    w.customElements.define('a-a', constructor, options);
    return w.document.createElement('a-a');
  });

test_create_element_synchronous(
  'crea