testDecorate_AllowDetached_InDocument() {
    /** Computed properties to avoid compiler checks of the define value. */
    Component['ALLOW_DETACHED_DECORATION'] = true;
    const element = dom.createElement(TagName.DIV);
    sandbox.appendChild(element);
    component.decorate(element);
    assertTrue(
        'Component should call enterDocument when decorated ' +
            'with an element that is in the document.',
        component.isInDocument());
    /** Computed properties to avoid compiler checks of the define value. */
    Component['ALLOW_DETACHED_DECORATION'] = false;
  }
Computed properties to avoid compiler checks of the define value.