Skip to content

Commit

Permalink
style: 💄 [DSY-1590] Adjusting lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mlcsouza committed Oct 30, 2020
1 parent bf0a795 commit aa4cdd7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ class ShortcutActivityFunctionalTest {
Truth.assertThat(ellipsis > 0).isTrue()
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,4 @@ class ShortcutActivityTest {
Truth.assertThat(counter.text).isEqualTo("Counter click 1")
}
}

@Test
fun shortcutLabelHasEllipsisWhenTextIsTooLong() {
shortcutActivityScenario.onActivity { shortcutActivity ->
val shortcutOutlined = shortcutActivity.shortcutOutlined1
val textContainer = shortcutOutlined.labelContainer.layout
var ellipsisCount = 0
textContainer?.apply {
val lines = this.lineCount
if(lines > 0) {
ellipsisCount = this.getEllipsisCount(lines-1)
}
}

Truth.assertThat(ellipsisCount).isEqualTo(1)
}
}
}

0 comments on commit aa4cdd7

Please sign in to comment.