Searched refs:expectedSurroundingText (Results 1 – 2 of 2) sorted by relevance
291 final SurroundingText expectedSurroundingText = in testInitialSurroundingText_cursorAtHead_emptyBeforeCursorText() local297 expectedTextAfterCursorLength, expectedSurroundingText); in testInitialSurroundingText_cursorAtHead_emptyBeforeCursorText()309 final SurroundingText expectedSurroundingText = in testInitialSurroundingText_cursorAtTail_emptyAfterCursorText() local315 expectedTextAfterCursorLength, expectedSurroundingText); in testInitialSurroundingText_cursorAtTail_emptyAfterCursorText()327 final SurroundingText expectedSurroundingText = in testInitialSurroundingText_noSelection_emptySelectionText() local333 expectedTextAfterCursorLength, expectedSurroundingText); in testInitialSurroundingText_noSelection_emptySelectionText()351 final SurroundingText expectedSurroundingText = in testInitialSurroundingText_overSizedSelection_keepsBeforeAfterTextValid() local358 expectedSurroundingText); in testInitialSurroundingText_overSizedSelection_keepsBeforeAfterTextValid()378 final SurroundingText expectedSurroundingText = new SurroundingText( in testInitialSurroundingSubText_keepsOriginalCursorPosition() local400 assertTrue(TextUtils.equals(expectedSurroundingText.getText(), surroundingText.getText())); in testInitialSurroundingSubText_keepsOriginalCursorPosition()[all …]
621 final SurroundingText expectedSurroundingText = in verifyTextSnapshot() local630 .contentEquals(expectedSurroundingText.getText())) in verifyTextSnapshot()633 .isEqualTo(expectedSurroundingText.getSelectionStart()); in verifyTextSnapshot()635 .isEqualTo(expectedSurroundingText.getSelectionStart()); in verifyTextSnapshot()637 .isEqualTo(expectedSurroundingText.getSelectionEnd()); in verifyTextSnapshot()638 assertThat(surroundingText.getOffset()).isEqualTo(expectedSurroundingText.getOffset()); in verifyTextSnapshot()