testProcessOkAndClosePreventDefault() {
    dialog = createTestDialog();
    expectOkPreventDefault(dialog);
    mockCtrl.$replayAll();

    dialog.show();
    dialog.processOkAndClose();
    assertOpen(
        'Dialog should not be closed because preventDefault was called',
        dialog);

    mockCtrl.$verifyAll();
  }
Tests that if the OK handler triggered by processOkAndClose calls
preventDefault, the dialog doesn't close (in the old implementation this
failed due to not great design, so this is sort of a regression test).
@suppress {checkTypes,visibility} suppression added to enable type checking