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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/shaping/RunSegmenterTest.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
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/shaping/RunSegmenter.h" 5 #include "platform/fonts/shaping/RunSegmenter.h"
6 6
7 #include "platform/Logging.h" 7 #include "platform/Logging.h"
8 #include "platform/fonts/OrientationIterator.h" 8 #include "platform/fonts/OrientationIterator.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "wtf/Assertions.h" 10 #include "wtf/Assertions.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 TEST_F(RunSegmenterTest, JapaneseSmallCaps) 203 TEST_F(RunSegmenterTest, JapaneseSmallCaps)
204 { 204 {
205 CHECK_RUNS_MIXED_SMALLCAPS({ 205 CHECK_RUNS_MIXED_SMALLCAPS({
206 { "いろは", USCRIPT_HIRAGANA, OrientationIterator::OrientationKeep, SmallCa psIterator::SmallCapsSameCase, FontFallbackPriority::Text }, 206 { "いろは", USCRIPT_HIRAGANA, OrientationIterator::OrientationKeep, SmallCa psIterator::SmallCapsSameCase, FontFallbackPriority::Text },
207 { "aa", USCRIPT_LATIN, OrientationIterator::OrientationRotateSideways, S mallCapsIterator::SmallCapsUppercaseNeeded, FontFallbackPriority::Text }, 207 { "aa", USCRIPT_LATIN, OrientationIterator::OrientationRotateSideways, S mallCapsIterator::SmallCapsUppercaseNeeded, FontFallbackPriority::Text },
208 { "AA", USCRIPT_LATIN, OrientationIterator::OrientationRotateSideways, S mallCapsIterator::SmallCapsSameCase, FontFallbackPriority::Text }, 208 { "AA", USCRIPT_LATIN, OrientationIterator::OrientationRotateSideways, S mallCapsIterator::SmallCapsSameCase, FontFallbackPriority::Text },
209 { "いろは", USCRIPT_HIRAGANA, OrientationIterator::OrientationKeep, SmallCa psIterator::SmallCapsSameCase, FontFallbackPriority::Text }, 209 { "いろは", USCRIPT_HIRAGANA, OrientationIterator::OrientationKeep, SmallCa psIterator::SmallCapsSameCase, FontFallbackPriority::Text },
210 }); 210 });
211 } 211 }
212 212
213 TEST_F(RunSegmenterTest, DingbatsMiscSymbolsModifier)
214 {
215 CHECK_RUNS_HORIZONTAL_NORMAL({ { "⛹🏻✍🏻✊🏼", USCRIPT_UNKNOWN, OrientationItera tor::OrientationKeep, SmallCapsIterator::SmallCapsSameCase, FontFallbackPriority ::EmojiEmoji } });
216 }
217
218
213 TEST_F(RunSegmenterTest, ArmenianCyrillicSmallCaps) 219 TEST_F(RunSegmenterTest, ArmenianCyrillicSmallCaps)
214 { 220 {
215 CHECK_RUNS_HORIZONTAL_SMALLCAPS({ { "աբգ", USCRIPT_ARMENIAN, OrientationIter ator::OrientationKeep, SmallCapsIterator::SmallCapsUppercaseNeeded, FontFallback Priority::Text }, 221 CHECK_RUNS_HORIZONTAL_SMALLCAPS({ { "աբգ", USCRIPT_ARMENIAN, OrientationIter ator::OrientationKeep, SmallCapsIterator::SmallCapsUppercaseNeeded, FontFallback Priority::Text },
216 { "αβγ", USCRIPT_GREEK, OrientationIterator::OrientationKeep, SmallCapsI terator::SmallCapsUppercaseNeeded, FontFallbackPriority::Text }, 222 { "αβγ", USCRIPT_GREEK, OrientationIterator::OrientationKeep, SmallCapsI terator::SmallCapsUppercaseNeeded, FontFallbackPriority::Text },
217 { "ԱԲԳ", USCRIPT_ARMENIAN, OrientationIterator::OrientationKeep, SmallCa psIterator::SmallCapsSameCase, FontFallbackPriority::Text } }); 223 { "ԱԲԳ", USCRIPT_ARMENIAN, OrientationIterator::OrientationKeep, SmallCa psIterator::SmallCapsSameCase, FontFallbackPriority::Text } });
218 } 224 }
219 225
220 226
221 227
222 } // namespace blink 228 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698