Fix issue where gifs would load as images.

This commit is contained in:
Alex Hart
2021-05-06 16:19:24 -03:00
committed by GitHub
parent bcbd365326
commit cb9ab61b6b
9 changed files with 101 additions and 113 deletions

View File

@@ -11,7 +11,7 @@ class EmojiSourceTest {
@Test
fun `Given a bunch of data pages with max value 100100, when I get the maxEmojiLength, then I expect 6`() {
val emojiDataFake = ParsedEmojiData(EmojiMetrics(-1, -1, -1), listOf(), "png", listOf(), dataPages = generatePages(), listOf())
val testSubject = EmojiSource(0f, emojiDataFake, ::EmojiPageReference)
val testSubject = EmojiSource(0f, emojiDataFake) { uri -> EmojiPage.Disk(uri) }
Assert.assertEquals(6, testSubject.maxEmojiLength)
}