Home
last modified time | relevance | path

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

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DTextViewTest.java38 private static final String INITIAL_TEXT = "initial text"; field in TextViewTest
206 textView.setText(INITIAL_TEXT); in whenSettingText_ShouldFireBeforeTextChangedWithCorrectArguments()
212 …verify(mockTextWatcher).beforeTextChanged(INITIAL_TEXT, 0, INITIAL_TEXT.length(), NEW_TEXT.length(… in whenSettingText_ShouldFireBeforeTextChangedWithCorrectArguments()
217 textView.setText(INITIAL_TEXT); in whenSettingText_ShouldFireOnTextChangedWithCorrectArguments()
223 … verify(mockTextWatcher).onTextChanged(NEW_TEXT, 0, INITIAL_TEXT.length(), NEW_TEXT.length()); in whenSettingText_ShouldFireOnTextChangedWithCorrectArguments()
238 textView.setText(INITIAL_TEXT); in whenAppendingText_ShouldAppendNewTextAfterOldOne()
241 assertEquals(INITIAL_TEXT + NEW_TEXT, textView.getText()); in whenAppendingText_ShouldAppendNewTextAfterOldOne()
246 textView.setText(INITIAL_TEXT); in whenAppendingText_ShouldFireBeforeTextChangedWithCorrectArguments()
252 …verify(mockTextWatcher).beforeTextChanged(INITIAL_TEXT, 0, INITIAL_TEXT.length(), INITIAL_TEXT.len… in whenAppendingText_ShouldFireBeforeTextChangedWithCorrectArguments()
257 textView.setText(INITIAL_TEXT); in whenAppendingText_ShouldFireOnTextChangedWithCorrectArguments()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowTextViewTest.java55 private static final String INITIAL_TEXT = "initial text"; field in ShadowTextViewTest
235 textView.setText(INITIAL_TEXT); in whenSettingText_ShouldFireBeforeTextChangedWithCorrectArguments()
241 …verify(mockTextWatcher).beforeTextChanged(INITIAL_TEXT, 0, INITIAL_TEXT.length(), NEW_TEXT.length(… in whenSettingText_ShouldFireBeforeTextChangedWithCorrectArguments()
246 textView.setText(INITIAL_TEXT); in whenSettingText_ShouldFireOnTextChangedWithCorrectArguments()
253 …verify(mockTextWatcher).onTextChanged(builderCaptor.capture(), eq(0), eq(INITIAL_TEXT.length()), e… in whenSettingText_ShouldFireOnTextChangedWithCorrectArguments()
269 textView.setText(INITIAL_TEXT); in whenAppendingText_ShouldAppendNewTextAfterOldOne()
272 assertThat(textView.getText().toString()).isEqualTo(INITIAL_TEXT + NEW_TEXT); in whenAppendingText_ShouldAppendNewTextAfterOldOne()
277 textView.setText(INITIAL_TEXT); in whenAppendingText_ShouldFireBeforeTextChangedWithCorrectArguments()
283 …erify(mockTextWatcher).beforeTextChanged(eq(INITIAL_TEXT), eq(0), eq(INITIAL_TEXT.length()), eq(IN… in whenAppendingText_ShouldFireBeforeTextChangedWithCorrectArguments()
288 textView.setText(INITIAL_TEXT); in whenAppendingText_ShouldFireOnTextChangedWithCorrectArguments()
[all …]