testOkReturnFalse() {
    dialog = createTestDialog();
    expectOkReturnFalse(dialog);
    mockCtrl.$replayAll();

    dialog.show();
    events.fireClickSequence(dialog.getOkButtonElement());
    assertOpen(
        'Dialog should not be closed because handler returned false', dialog);

    mockCtrl.$verifyAll();
  }
Tests that if the OK handler returns false, the dialog doesn't close.
     @suppress {checkTypes,visibility} suppression added to enable type checking