MCPcopy Create free account
hub / github.com/JetBrains/skija / testEmoji

Method testEmoji

tests/java/TextLineTest.java:154–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

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