Searched refs:ShadowDialog (Results 1 – 7 of 7) sorted by relevance
84 ShadowDialog shadow = shadowOf(dialog); in shouldSetCancelable()100 ShadowDialog shadow = shadowOf(dialog); in shouldDefaultCancelableToTrueAsTheSDKDoes()130 assertNull(ShadowDialog.getLatestDialog()); in show_setsLatestDialog()134 assertSame(dialog, ShadowDialog.getLatestDialog()); in show_setsLatestDialog()140 assertThat(ShadowDialog.getLatestDialog()).isNull(); in getLatestDialog_shouldReturnARealDialog()144 assertThat(ShadowDialog.getLatestDialog()).isSameAs(dialog); in getLatestDialog_shouldReturnARealDialog()149 assertEquals(0, ShadowDialog.getShownDialogs().size()); in shouldKeepListOfOpenedDialogs()154 assertEquals(1, ShadowDialog.getShownDialogs().size()); in shouldKeepListOfOpenedDialogs()155 assertEquals(dialog, ShadowDialog.getShownDialogs().get(0)); in shouldKeepListOfOpenedDialogs()160 assertEquals(2, ShadowDialog.getShownDialogs().size()); in shouldKeepListOfOpenedDialogs()[all …]
244 assertNull(ShadowDialog.getLatestDialog()); in show_setsLatestAlertDialogAndLatestDialog()249 assertEquals(alertDialog, ShadowDialog.getLatestDialog()); in show_setsLatestAlertDialogAndLatestDialog()310 assertThat(ShadowDialog.getLatestDialog()).isEqualTo(dialog); in shouldNotExplodeWhenNestingAlerts()313 assertThat(ShadowDialog.getLatestDialog()).isEqualTo(nestedDialog); in shouldNotExplodeWhenNestingAlerts()
384 Dialog firstDialog = ShadowDialog.getLatestDialog(); in showDialog_shouldReuseDialogs()387 Dialog secondDialog = ShadowDialog.getLatestDialog(); in showDialog_shouldReuseDialogs()395 Dialog dialog = ShadowDialog.getLatestDialog(); in showDialog_shouldShowDialog()404 Dialog dialog = ShadowDialog.getLatestDialog(); in dismissDialog_shouldDismissPreviouslyShownDialog()418 Dialog firstDialog = ShadowDialog.getLatestDialog(); in removeDialog_shouldCreateDialogAgain()424 Dialog secondDialog = ShadowDialog.getLatestDialog(); in removeDialog_shouldCreateDialogAgain()434 assertThat(ShadowDialog.getLatestDialog()).isNotNull(); in shouldCallOnCreateDialogFromShowDialog()
27 import org.robolectric.shadows.ShadowDialog;88 Dialog dialog = ShadowDialog.getLatestDialog(); in show_shouldShowDialogThatWasReturnedFromOnCreateDialog_whenOnCreateDialogReturnsADialog()98 Dialog dialog = ShadowDialog.getLatestDialog(); in show_shouldShowDialogThatWasAutomaticallyCreated_whenOnCreateDialogReturnsNull()113 Dialog dialog = ShadowDialog.getLatestDialog(); in removeUsingTransaction_shouldDismissTheDialog()179 private static ShadowDialog shadowOf(Dialog dialog) { in shadowOf()180 return (ShadowDialog) Shadow.extract(dialog); in shadowOf()
26 public class ShadowDialog { class51 ShadowDialog dialog = ShadowApplication.getInstance().getLatestDialog(); in getLatestDialog()55 public static void setLatestDialog(ShadowDialog latestDialog) { in setLatestDialog()
43 private ShadowDialog latestDialog;172 public ShadowDialog getLatestDialog() { in getLatestDialog()176 protected void setLatestDialog(ShadowDialog latestDialog) { in setLatestDialog()
17 public class ShadowAlertDialog extends ShadowDialog {