testShowForMailtoLink_focusTextToDisplayOnOpenIfEmpty(document = undefined) {
    mockCtrl.$replayAll();
    setUpAnchor(ANCHOR_MAILTO, ANCHOR_TEXT);
    createAndShow(
        document /* opt_document */, undefined /* opt_openInNewWindow */,
        undefined /*  opt_noFollow */,
        true /* opt_focusTextToDisplayOnOpenIfEmpty */);

    assertEquals(
        'Display text input field should be filled in', ANCHOR_TEXT,
        getDisplayInputText());
    assertEquals(
        'Email tab should be selected', LinkDialog.Id_.EMAIL_ADDRESS,
        dialog.curTabId_);
    if (useActiveElement()) {
      assertEquals(
          'Focus should be on email input', getEmailInput(),
          dialog.dom.getActiveElement());
    }

    mockCtrl.$verifyAll();
  }
Tests that when focusTextToDisplayOnOpenIfEmpty is set, if the display text
is not empty when you show the dialog for a mailto link, the display text
input is filled in, the email tab is selected and focus is in the email
input field.
@param {Document=} document Document to render the dialog into. Defaults to
    the main window's document.
@suppress {visibility,checkTypes,missingProperties} suppression added to
enable type checking