Home
last modified time | relevance | path

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

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DTextViewTest.java39 private static final String NEW_TEXT = "new text"; field in TextViewTest
210 textView.setText(NEW_TEXT); in whenSettingText_ShouldFireBeforeTextChangedWithCorrectArguments()
212 …verify(mockTextWatcher).beforeTextChanged(INITIAL_TEXT, 0, INITIAL_TEXT.length(), NEW_TEXT.length(… in whenSettingText_ShouldFireBeforeTextChangedWithCorrectArguments()
221 textView.setText(NEW_TEXT); in whenSettingText_ShouldFireOnTextChangedWithCorrectArguments()
223 … verify(mockTextWatcher).onTextChanged(NEW_TEXT, 0, INITIAL_TEXT.length(), NEW_TEXT.length()); in whenSettingText_ShouldFireOnTextChangedWithCorrectArguments()
231 textView.setText(NEW_TEXT); in whenSettingText_ShouldFireAfterTextChangedWithCorrectArgument()
233 assertThat(mockTextWatcher.afterTextChangeArgument.toString(), equalTo(NEW_TEXT)); in whenSettingText_ShouldFireAfterTextChangedWithCorrectArgument()
239 textView.append(NEW_TEXT); in whenAppendingText_ShouldAppendNewTextAfterOldOne()
241 assertEquals(INITIAL_TEXT + NEW_TEXT, textView.getText()); in whenAppendingText_ShouldAppendNewTextAfterOldOne()
250 textView.append(NEW_TEXT); in whenAppendingText_ShouldFireBeforeTextChangedWithCorrectArguments()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowTextViewTest.java56 private static final String NEW_TEXT = "new text"; field in ShadowTextViewTest
239 textView.setText(NEW_TEXT); in whenSettingText_ShouldFireBeforeTextChangedWithCorrectArguments()
241 …verify(mockTextWatcher).beforeTextChanged(INITIAL_TEXT, 0, INITIAL_TEXT.length(), NEW_TEXT.length(… in whenSettingText_ShouldFireBeforeTextChangedWithCorrectArguments()
250 textView.setText(NEW_TEXT); in whenSettingText_ShouldFireOnTextChangedWithCorrectArguments()
253 …r).onTextChanged(builderCaptor.capture(), eq(0), eq(INITIAL_TEXT.length()), eq(NEW_TEXT.length())); in whenSettingText_ShouldFireOnTextChangedWithCorrectArguments()
254 assertThat(builderCaptor.getValue().toString()).isEqualTo(NEW_TEXT); in whenSettingText_ShouldFireOnTextChangedWithCorrectArguments()
262 textView.setText(NEW_TEXT); in whenSettingText_ShouldFireAfterTextChangedWithCorrectArgument()
264 assertThat(mockTextWatcher.afterTextChangeArgument.toString()).isEqualTo(NEW_TEXT); in whenSettingText_ShouldFireAfterTextChangedWithCorrectArgument()
270 textView.append(NEW_TEXT); in whenAppendingText_ShouldAppendNewTextAfterOldOne()
272 assertThat(textView.getText().toString()).isEqualTo(INITIAL_TEXT + NEW_TEXT); in whenAppendingText_ShouldAppendNewTextAfterOldOne()
[all …]