Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3235dc5a authored by fbaron's avatar fbaron Committed by Federico Baron
Browse files

Fix failing DeleteDropTargetTest

Test was failing because on some devices a height of 30 is not enough for the text to be clipped

Bug: 306179709
Test: DeleteDropTargetTest
Flag: NONE
Change-Id: Ie6e37ec9b2ccc83097ed74e70e6e5048bc6199a6
parent 001a0f1c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -32,9 +32,9 @@ class DeleteDropTargetTest {
        buttonDropTarget.setTextMultiLine(false)

        // No space for text
        assertThat(buttonDropTarget.isTextClippedVertically(30)).isTrue()
        assertThat(buttonDropTarget.isTextClippedVertically(1)).isTrue()

        // A lot of space for text so the text should not be clipped
        assertThat(buttonDropTarget.isTextClippedVertically(100)).isFalse()
        assertThat(buttonDropTarget.isTextClippedVertically(1000)).isFalse()
    }
}