Home
last modified time | relevance | path

Searched refs:negativeButton (Results 1 – 2 of 2) sorted by relevance

/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowAlertDialog.java39 private Button negativeButton; field in ShadowAlertDialog
94 return negativeButton; in getButton()
108negativeButton = createButton(context, realAlertDialog, whichButton, text, listener); in setButton()
451 …latestAlertDialog.negativeButton = createButton(context, realDialog, AlertDialog.BUTTON_NEGATIVE, … in create()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DAlertDialogTest.java147 final Button negativeButton = shadowOf(alertDialog).getButton(AlertDialog.BUTTON_NEGATIVE); in shouldSetTheNegativeButtonAfterCreation() local
148 negativeButton.performClick(); in shouldSetTheNegativeButtonAfterCreation()
150 assertThat(negativeButton.getText().toString(), equalTo("More Negative")); in shouldSetTheNegativeButtonAfterCreation()