testShowNewLinkSwitchToUrl(document = undefined) {
    mockCtrl.$replayAll();
    setUpAnchor('', '', true);  // Must be done before creating the dialog.
    createAndShow(document);

    /** @suppress {visibility} suppression added to enable type checking */
    const webRadio =
        dialog.dom.getElement(LinkDialog.Id_.ON_WEB_TAB).firstChild;
    /** @suppress {visibility} suppression added to enable type checking */
    const emailRadio =
        dialog.dom.getElement(LinkDialog.Id_.EMAIL_ADDRESS_TAB).firstChild;
    assertTrue('Web Radio Button selected', webRadio.checked);
    assertFalse('Email Radio Button selected', emailRadio.checked);
    if (useActiveElement()) {
      assertEquals(
          'Focus should be on url input', getUrlInput(),
          dialog.dom.getActiveElement());
    }

    emailRadio.click();
    assertFalse('Web Radio Button selected', webRadio.checked);
    assertTrue('Email Radio Button selected', emailRadio.checked);
    if (useActiveElement()) {
      assertEquals(
          'Focus should be on url input', getEmailInput(),
          dialog.dom.getActiveElement());
    }

    mockCtrl.$verifyAll();
  }
Tests that when you show the dialog for a new link, you can switch
to the URL view.
@param {Document=} document Document to render the dialog into. Defaults to
    the main window's document.
@suppress {visibility} suppression added to enable type checking