113 ); |
113 ); |
114 |
114 |
115 return ! isIdentical; |
115 return ! isIdentical; |
116 case 'emoji': |
116 case 'emoji': |
117 /* |
117 /* |
118 * Burning Love: Just a hunk, a hunk of burnin' love. |
118 * Why can't we be friends? Everyone can now shake hands in emoji, regardless of skin tone! |
119 * |
119 * |
120 * To test for Emoji 13.1 support, try to render a new emoji: Heart on Fire! |
120 * To test for Emoji 14.0 support, try to render a new emoji: Handshake: Light Skin Tone, Dark Skin Tone. |
121 * |
121 * |
122 * The Heart on Fire emoji is a ZWJ sequence combining ❤️ Red Heart, a Zero Width Joiner and 🔥 Fire. |
122 * The Handshake: Light Skin Tone, Dark Skin Tone emoji is a ZWJ sequence combining 🫱 Rightwards Hand, |
123 * |
123 * 🏻 Light Skin Tone, a Zero Width Joiner, 🫲 Leftwards Hand, and 🏿 Dark Skin Tone. |
124 * 0x2764, 0xfe0f == Red Heart emoji. |
124 * |
125 * 0x200D == Zero-Width Joiner (ZWJ) that links the two code points for the new emoji or |
125 * 0x1FAF1 == Rightwards Hand |
|
126 * 0x1F3FB == Light Skin Tone |
|
127 * 0x200D == Zero-Width Joiner (ZWJ) that links the code points for the new emoji or |
126 * 0x200B == Zero-Width Space (ZWS) that is rendered for clients not supporting the new emoji. |
128 * 0x200B == Zero-Width Space (ZWS) that is rendered for clients not supporting the new emoji. |
127 * 0xD83D, 0xDD25 == Fire. |
129 * 0x1FAF2 == Leftwards Hand |
|
130 * 0x1F3FF == Dark Skin Tone. |
128 * |
131 * |
129 * When updating this test for future Emoji releases, ensure that individual emoji that make up the |
132 * When updating this test for future Emoji releases, ensure that individual emoji that make up the |
130 * sequence come from older emoji standards. |
133 * sequence come from older emoji standards. |
131 */ |
134 */ |
132 isIdentical = emojiSetsRenderIdentically( |
135 isIdentical = emojiSetsRenderIdentically( |
133 [0x2764, 0xfe0f, 0x200D, 0xD83D, 0xDD25], |
136 [0x1FAF1, 0x1F3FB, 0x200D, 0x1FAF2, 0x1F3FF], |
134 [0x2764, 0xfe0f, 0x200B, 0xD83D, 0xDD25] |
137 [0x1FAF1, 0x1F3FB, 0x200B, 0x1FAF2, 0x1F3FF] |
135 ); |
138 ); |
136 |
139 |
137 return ! isIdentical; |
140 return ! isIdentical; |
138 } |
141 } |
139 |
142 |