MCPcopy Create free account
hub / github.com/HumbleUI/Skija / testEmoji

Method testEmoji

tests/java/TextLineTest.java:155–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153 }
154
155 public void testEmoji() {
156 try (TextLine misc = TextLine.make("☺", firaCode36); // U+263A, in Fira Code
157 // TextLine misc2 = TextLine.make("☺︎", firaCode36); // U+263A U+FE0E, in Fira Code + Non-Emoji Variant Selector
158 TextLine emoji = TextLine.make("☺️", firaCode36);) // U+263A U+FE0F, has to fallback
159 {
160 assertArrayEquals(new short[] {1706}, misc.getGlyphs());
161 assertEquals(1, emoji.getGlyphs().length);
162 assertNotEquals(misc.getGlyphs()[0], emoji.getGlyphs()[0]);
163
164 // FIXME #106
165 // assertArrayEquals(new short[] {1706}, misc2.getGlyphs());
166 // assertArrayEquals(misc.getGlyphs(), misc2.getGlyphs());
167 }
168 }
169}

Callers 1

executeMethod · 0.95

Calls 5

makeMethod · 0.95
assertArrayEqualsMethod · 0.80
assertEqualsMethod · 0.80
assertNotEqualsMethod · 0.80
getGlyphsMethod · 0.45

Tested by

no test coverage detected