Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1041)

Side by Side Diff: third_party/WebKit/Source/platform/fonts/SymbolsIteratorTest.cpp

Issue 1780723002: Enable Emoji Fitzpatrick modifier sequences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased on renamed CharacterData file Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/fonts/SymbolsIterator.h" 5 #include "platform/fonts/SymbolsIterator.h"
6 6
7 #include "platform/Logging.h" 7 #include "platform/Logging.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include <string> 9 #include <string>
10 10
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 TEST_F(SymbolsIteratorTest, EyeSpeechBubble) 168 TEST_F(SymbolsIteratorTest, EyeSpeechBubble)
169 { 169 {
170 CHECK_RUNS({ { "πŸ‘β€πŸ—¨", FontFallbackPriority::EmojiEmoji } }); 170 CHECK_RUNS({ { "πŸ‘β€πŸ—¨", FontFallbackPriority::EmojiEmoji } });
171 } 171 }
172 172
173 TEST_F(SymbolsIteratorTest, Modifier) 173 TEST_F(SymbolsIteratorTest, Modifier)
174 { 174 {
175 CHECK_RUNS({ { "πŸ‘ΆπŸΏ", FontFallbackPriority::EmojiEmoji } }); 175 CHECK_RUNS({ { "πŸ‘ΆπŸΏ", FontFallbackPriority::EmojiEmoji } });
176 } 176 }
177 177
178 TEST_F(SymbolsIteratorTest, DingbatsMiscSymbolsModifier)
179 {
180 CHECK_RUNS({ { "β›ΉπŸ»βœπŸ»βœŠπŸΌ", FontFallbackPriority::EmojiEmoji } });
181 }
182
178 TEST_F(SymbolsIteratorTest, ExtraZWJPrefix) 183 TEST_F(SymbolsIteratorTest, ExtraZWJPrefix)
179 { 184 {
180 CHECK_RUNS({ { "\xE2\x80\x8D", FontFallbackPriority::Text }, 185 CHECK_RUNS({ { "\xE2\x80\x8D", FontFallbackPriority::Text },
181 { "\xF0\x9F\x91\xA9\xE2\x80\x8D\xE2" 186 { "\xF0\x9F\x91\xA9\xE2\x80\x8D\xE2"
182 "\x9D\xA4\xEF\xB8\x8F\xE2\x80\x8D" 187 "\x9D\xA4\xEF\xB8\x8F\xE2\x80\x8D"
183 "\xF0\x9F\x92\x8B\xE2\x80\x8D\xF0\x9F\x91\xA8", 188 "\xF0\x9F\x92\x8B\xE2\x80\x8D\xF0\x9F\x91\xA8",
184 FontFallbackPriority::EmojiEmoji } }); 189 FontFallbackPriority::EmojiEmoji } });
185 } 190 }
186 191
187 TEST_F(SymbolsIteratorTest, Arrows) 192 TEST_F(SymbolsIteratorTest, Arrows)
188 { 193 {
189 CHECK_RUNS({ { "x", FontFallbackPriority::Text }, 194 CHECK_RUNS({ { "x", FontFallbackPriority::Text },
190 { "→←", FontFallbackPriority::Math }, 195 { "→←", FontFallbackPriority::Math },
191 { "x", FontFallbackPriority::Text }, 196 { "x", FontFallbackPriority::Text },
192 { "←↑↓→", FontFallbackPriority::Math } }); 197 { "←↑↓→", FontFallbackPriority::Math } });
193 } 198 }
194 199
195 } // namespace blink 200 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698