Emoji: Add Emoji 5 support.

Updates Twemoji to 2.3.0 to include Emoji 5 support.

The pride flag test is replaced with a test for the English flag, a five character sub-devision locale. The UN flag test is retained as the most recent two character locale.

An Emoji 5 "bearded person" replaces both Emoji 4 tests.

Fixes #40858.



git-svn-id: https://develop.svn.wordpress.org/trunk@40837 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Wilson
2017-05-25 07:17:57 +00:00
parent 5439e18798
commit e0013072d1
5 changed files with 22 additions and 45 deletions
+6 -6
View File
@@ -8,8 +8,8 @@ class Tests_Formatting_Emoji extends WP_UnitTestCase {
* @ticket 36525
*/
public function test_unfiltered_emoji_cdns() {
$png_cdn = 'https://s.w.org/images/core/emoji/2.2.5/72x72/';
$svn_cdn = 'https://s.w.org/images/core/emoji/2.2.5/svg/';
$png_cdn = 'https://s.w.org/images/core/emoji/2.3/72x72/';
$svn_cdn = 'https://s.w.org/images/core/emoji/2.3/svg/';
$output = get_echo( '_print_emoji_detection_script' );
@@ -25,8 +25,8 @@ class Tests_Formatting_Emoji extends WP_UnitTestCase {
* @ticket 36525
*/
public function test_filtered_emoji_svn_cdn() {
$png_cdn = 'https://s.w.org/images/core/emoji/2.2.5/72x72/';
$svn_cdn = 'https://s.w.org/images/core/emoji/2.2.5/svg/';
$png_cdn = 'https://s.w.org/images/core/emoji/2.3/72x72/';
$svn_cdn = 'https://s.w.org/images/core/emoji/2.3/svg/';
$filtered_svn_cdn = $this->_filtered_emoji_svn_cdn();
@@ -49,8 +49,8 @@ class Tests_Formatting_Emoji extends WP_UnitTestCase {
* @ticket 36525
*/
public function test_filtered_emoji_png_cdn() {
$png_cdn = 'https://s.w.org/images/core/emoji/2.2.5/72x72/';
$svn_cdn = 'https://s.w.org/images/core/emoji/2.2.5/svg/';
$png_cdn = 'https://s.w.org/images/core/emoji/2.3/72x72/';
$svn_cdn = 'https://s.w.org/images/core/emoji/2.3/svg/';
$filtered_png_cdn = $this->_filtered_emoji_png_cdn();